Forums ProRealTime English forum ProOrder support Wait for Price over/under code help! Reply To: Wait for Price over/under code help!

#48089

Ok thank again for the response.

On my original code there would only be one trade taken for any MA cross over. Either C1 or C2. Why is it now launching more than one trade?

Maybe i’ve not explained it correctly. I don’t want to restrict the length of the trade.

I’ll explain again more clearly. When a cross over occurs I want to wait x number of candles sticks to see if the price is above the price it was when the cross over occurred. If it is then the system should take the trade at that moment, if it isn’t then don’t take a trade and wait for the next cross over to occur. Other than that I don’t want anything else to change to the system, if a trade is taken it should then continue until either my stop loss is hit or the exit condition is met.