Risk Disclosure

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View full risk disclosure.

Time Session Solver


The Time Session solver uses NinjaTrader’s Session Manager (CC > Tools > Session Manager) to define blocks of time that can be used in your BloodHound logic.  Custom blocks of time, called a Session template, can be created and saved using the Session Manager.  Some typical uses for this solver would be; restricting BloodHound signals during certain times of day, block trading, and flatten trades, in Raven, before the market closes.

When BloodHound is set to ‘Calculate on bar close’ = True, the bar must close before this solver can detect the bar is inside or outside the Session time.  IE, Chart: 8 Range.  Session template Start time: 9:00am and End time: 3:00pm.  When the time hits 3:00pm and the 8 Range bars is still building, the solver will not know the current time is outside the 9am-3pm Session until the bar closes, and the bar may not close until 3:12pm.  This is important to consider when using this solver in a Exit logic to flatten positions in Raven before the market closes.

NinjaTrader can not export Session templates. Therefore, custom Sessions can not be transferred to another computer. Any custom Session template will need to be created in the other computer first, before loading a BloodHound file with a custom Session template.

Parameters

This section is common to all solvers.  A description can be found here.
This section is common to all solvers.  A description can be found here.

Options

Click the button to open the NinjaTrader Session Manager.  From the Session Manager, select a Session template to use, or create a new custom Session template to use.  The Session template defines the block of time this solver will identify.

Output

This parameter will generate a Long & Short output when the bar time is inside the Session’s Start and End time.  Set this to 1 when you want to identify the bar is inside the Session template time.  A common use for this output is to restrict signals during the Session times.

This parameter will generate a Long & Short output when the bar time is outside the Session’s Start and End time.  Set this to 1 when you want to identify the bar is outside the Session template time.  A common use for this output is in a Exit logic to flatten any position when a bar is outside the Session times.

Video Tutorials

A short example for restricting trade signals, and flattening trades after a curtain time.



Daniel Roe from Trade-the-Plan.com created this video.



End of Day Exit Logic (from the Tips & Tricks videos)



This video shows how to use the Time Session solver to allow signals during three different time periods of the day.