I wrote 2 strategies one is only going long and other is only short.
First, I test separately this strategies with EntryHandleing = AllEntries & PerDirection = 1.
Suppose long strategy is profit 100$ and short strategy is profit 150$.
Second, I test 2 strategies on the same chart and same parameters. Result is as expected 250$ profit.
And now i'm trying to combine this strategies in one strategy. After combine i test it with EntryHandleing = UniqueEntries & PerDirection = 1 parameters. Because after combine i use different entry names for long and for shorts. i see results are not same. When i examine test result i see some positions are not opening.
For example suppose we have open long position 5 bars later strategy see there is short signal. Strategy don't close long and open new short position immediately. Instead setting profit target one tick above current price and try to open short same level(again one tick above current price) with EnterShortLimit order. If next bar don't hit this level ShortLimit order cancels and long position profit target setting bigger value. When i look at trade list i see target level hiting, long position closing with profit target but short trade not opening.
1.Am i using right parameters? EntryHandleing = UniqueEntries & PerDirection = 1
2. Is there more simple way for my reverse scenario?
Thanks.
Comment