I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to modify or renew TP levels by step move by market price.
- Any great idea about HEDGING positions welcome here
- Self-learning the MQL5 language from scratch
- I give up on split position
rustammm1979:
I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to modify or renew TP levels by step move by market price.
I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to modify or renew TP levels by step move by market price.
your question is unclear. you should rethink about your question and write it down on a notepad and consider if you would understand it -- before posting it again.
But maybe you mean a trail stop? look on codebase. There is dozens of different trail stops, based on price, multiple moving averages and other styles of trail stops, you could ever need.
rustammm1979:
I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to modify or renew TP levels by step move by market price.
I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to modify or renew TP levels by step move by market price.
Two options are available to you for modifying SL/TP values of a position:

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