Forums ProRealTime English forum ProOrder support Strategy SR Dow J Day Reply To: Strategy SR Dow J Day

#137432

the set target profit needs to be straight below the buy order because it uses average range & close. 

It can not be put on the bottom. It’s placed correct and uses the close when conditions are true to go long.

however, you do not use not longonmarket, so, if your are long and conditions are true to go long again are ignored (because  DEFPARAM CumulateOrders = false) , it updates the target with the new close of that bar which is incorrect. To have it correct I think you have to use not longonmarket?

If you add not longonmarket performance goes down, however, if you take every signal when in a long and losing position to close & reenter again long, it’s much better.

here again a but, because not sure why the code below makes such a difference.

or