I want to avoid the "profit target on same bar as entry" pitfall.
In my strategy, I told it to enter a position and I did NOT set a profit target.
Then, I told it later that if BarsSinceEntry > 1, to go ahead and set a profit target.
My theory was this would prevent Ninja from entering and exiting on the same bar, since it doesn't know the OHLC order with minute data.
It doesn't work. Ninja seems to read the SetProfitTarget command and immediately identify it with a target starting from the entry point, instead of only looking for targets after the command was initiated.
I would like a work around or solution please.
Mike

Comment