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.

SiTimeBlock


This indicator is to be used in the Threshold solver to identify various blocks of time or specific times of the day.  See the Outputs for BloodHound section for the various times that can be identified.
I.E.  Identifying blocks of time is useful for creating an Exit signal to flatten any open position before the market closes.  Identifying a specific time is useful for resetting a Function node that maybe blocking trade signals, but want to reset it at a certain time so trade signals will resume again.

The SiTimeBlock indicator was created to overcome some limitations with NinjaTrader’s Session templates and the Time Session solver.  NinjaTrader does not allow custom Session templates to be transferred to other computers.  This limitation prevents a BloodHound file that uses a Time Session solver with a custom Session template from working correctly on another computer, unless the custom Session template is also created on the other computer.  This indicator used in the Threshold solver eliminates that problem.

Parameters


This is the starting time for the block of time to be identified.
This is the ending time for the block of time to be identified.
Enable or disable each day of the week the block of time applies to.
This sets the color of the text that prints on the chart.  If you do not want to see the text set the color to transparent.
TimeBlock Chart Text

Select the location on the chart you would like to see the text.
This color is applied to the chart between midnight up to the Start Time. See the yellow background color on the image above. This will typically be pre market/trading hours.
This color is applied to the chart between the Start Time and the End Time. See the gray background color on the image above. This will typically be the market/trading hours.
This color is applied to the chart between the End Time until midnight. See the purple background color on the image above. This will typically be after market/trading hours.

Outputs for BloodHound

TimeBlock communicates with BloodHound with BoolSeries. A BoolSeries is a True or False value.

This output identifies the bar that matches the time of the Start Time parameter.  On that bar, this BoolSeries becomes True, and the Threshold solver will generate a signal on the bar that matches the Start Time.
This output identifies the bar that matches the time of the End Time parameter. On that bar, this BoolSeries becomes True, and the Threshold solver will generate a signal on the bar that matches the End Time.
This output identifies all the bars between midnight up to the Start Time, but not the Start Time bar.  On those bars, this BoolSeries becomes True, and the Threshold solver will generate a signal on all the bars between midnight and the Start Time.
This output identifies all the bars between the Start Time and End Time parameters.  On those bars, this BoolSeries becomes True, and the Threshold solver will generate a signal on all the bars between the Start Time and End Time.
This output identifies all the bars after the End Time up to midnight, but not the End Time bar.  On those bars, this BoolSeries becomes True, and the Threshold solver will generate a signal on all the bars after the End Time up to midnight.
This output identifies the first bar after midnight.  On that bar, this BoolSeries becomes True, and the Threshold solver will generate a signal on the first bar after midnight.
I.E. This is useful for resetting Function nodes when a new day starts, for logic that needs to reset on a daily basis.

Video Tutorial

This video is from the June 17th 2016 workshop, which took place prior to the official release of this indicator.
For more benefit please watch in full screen mode, as this video is recorded in HD.