|September 16th, 2014, 10:51 AM||#1 (permalink)|
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: ES
Posts: 29 since Oct 2011
Thanks: 8 given, 6 received
I am needing some help to create a momentum/time strategy that automatically enters a trade based on how quickly bars are printing. Strategy would allow the user to define the number of bars that must be printed and what the total time is it took for the bars to print and then would automatically enter the trade, with direction given based on rising bars or falling bars. I use RJay's renko bars primarily.
I would like to have the allow the user to define the number of bars that need to print and the time printed between bars to be less than or equal to the time defined by the user.
Example, market opens at 6:30 AM PST, TF takes 20 minutes to print 3 green uptick bars, then selling comes in and 3 down tick bars print within 20 seconds of each other. The user would be able to define the time between the bars <user defined time> seconds total and the number of bars in a row that would have to meet the time objective in order for the trade to occur <# bars in row>. On the close of the # of bars within the allotted time the system would automatically enter the trade based on rising or failing market and would use Ninjatrader defined ATM for exit and stops. User can also specify the hours in which the strategy is active, ie only trade between 630am PST and 800 am PST.
I am not very knowledgeable on the programming end and any help would be appreciated.