double currentTakeProfit = PositionGetDouble(POSITION_TP); if(currentTakeProfit == 0) { // set initial take profit here currentTakeProfit = ...; } if(CurrentStopLoss>SL) { trade.PositionModify(PositionTicket,(CurrentStopLoss-20*_Point),currentTakeProfit); }Note by convention local scope variables start with lower case.
lippmaje:
Note by convention local scope variables start with lower case.
CHAMPION. Thanks heaps!
Note by convention local scope variables start with lower case.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
First time poster.
Behold my trailing stop function. It moves my SL by 10. It also moves my TP by 10 as well, which is a lot better than it completely being removed if I add a 0 on the end at the:
Bid-takeProfit* _Point);
location.
QUESTION: How do I not move my TP. I looked everywhere for an answer and couldnt find it. Find attached function below.
Will provide more if necessary.