basic strategy ninjatrader 8
Project detail
basic strategy ninjatrader 8 gap filling
i need to code a simple strategy for ninjatarder 8,
Make a buy when the price opens below the close of the previous day’s close, when you detect a gap, you can use the indicator priordayOHLC integrated in ninjatarder for this function, as soon as the price exceeds the high of the previous bar by 1 tick. a purchase, which places a stoploss about 10 ticks away from the minimum of the entry candle, and 2 targets, 1 target when the price touches the exponential moving average of 20 periods and the other target at the close of the previous day,
make a sell when the price opens above the close of the previous day’s close, when it detects a gap, you can use the indicator priordayOHLC integrated in ninjatarder for this function, as soon as the price exceeds the low of the previous bar by 1 tick make a sale, which places a stoploss about 10 ticks away from the maximum of the entry candle, and 2 targets, 1 target when the price touches the exponential moving average of 20 periods and the other target at the close of the previous day,
And finally, have the entry in the strategy configuration to select the number of counters for the entry, and the number of contracts to close for target 1 and target 2,
that the hours in which the strategy works can be configured, for example that it only make entries from: 8:30 am- 8:35 am. and then carry out a total closing of the operations at 3:00 pm in the event that you have not reached any target