Is there any way to code this and how would it be done....basically trying to have a dynamic profit protect at different levels of market moves....
1st Move at +40 pips from opening position = Move Stop to 0 Breakeven
2nd Move at +80pips = Move Stop to +20pips
3rd Move at +120pips = Move Stop to +40pips
For Moves and Stops beyond the 3rd Move above, have an algorithm to adjust stops according to the algorithm below...
For each additional +60pip increment move, adjust stop to 25% of the total move...
Example
at +180, move stop to +45
at +240, move stop to +60
at +300 move stop to +75
at +360 move stop to +90
and so on until a take profit is hit...
1st Move at +40 pips from opening position = Move Stop to 0 Breakeven
2nd Move at +80pips = Move Stop to +20pips
3rd Move at +120pips = Move Stop to +40pips
For Moves and Stops beyond the 3rd Move above, have an algorithm to adjust stops according to the algorithm below...
For each additional +60pip increment move, adjust stop to 25% of the total move...
Example
at +180, move stop to +45
at +240, move stop to +60
at +300 move stop to +75
at +360 move stop to +90
and so on until a take profit is hit...