Logic help - page 3

 
Try again
 

Roger:

The code is running without errors (thank you), however it is still not modifying the orders in the proper way (which is something I'll have to play with). When Profits reach greater than 30 pips, the 3rd MA should be used as the stop loss until we reach 60 pips of profit, then the 2nd moving average becomes the stop loss. I think my issue now is that the while loop is breaking and the case (trailsequencer) is increasing to the second case (and becasue the bid is greater) and the stop is modifying when it shouldn't. You've given me a good shove in the right direction.

Thank you,

BB