Firstly let me say to create a new strategy is quite easy with the GUI setup you have in NT7 - bravo!
However, I thought I had the details right for entry and exit but it seems not.
My strategy:
If I have two bars that consecutively close at their highs -> BUY (and inversely for the SELL side).
Profit target = x-ticks / Stop Loss = x-ticks.
If there are, for example, 9 bars in a row that consecutively close at their highs I want to continue opening positions i.e. the strategy is only backwards looking to the bar that just closed and the one before it. The real trouble I'm facing is getting my profit target and stop losses to work.
If say, the first two bars closed at their highs I want to be Long 1 and with that have OCO orders with a profit target of 1 tick + stop loss of x-ticks. I then hit my profit target so I now have no positions open but then another bar closes on its highs therefore I'd open a brand new position with a new profit target of 1 tick + stop loss of x-ticks.
However, if there are two bars that close at their highs (which would make me Long 1) and then immediately following it I have two bars that close at their lows (which theoretically would make me Short 1); I'd want to exit my long (sell 1) and enter a short (sell another 1).
Please help me get my head around this; as I said I thought I had it figured out but running a backtest I saw my entries were all wrong.
Many thanks.


Comment