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
The TakeProfitLastPos() function.
This function returns the TakeProfit price level of the last open position or -1. The TakeProfitLastPos() function accepts the following optional parameters:
Do you know if there is any way to change the lot size of a pending order in MQL4?
No. You delete the old order and create a new one with the required volume.
Can you tell me if there is any way to change a pending order's lot in MQL4?
The developers didn't do it deliberately - to avoid problems!
Please advise how to create graphical objects in an EA that trades on two currency pairs, which mark on each chart the opening and closing positions for each currency pair. An EA which is loaded on a single chart will automatically create these marks only on that chart. Maybe there is such a function designed to be used in multi-currency EAs ?
Please advise how to create graphical objects in an EA that trades on two currency pairs, which mark on each chart the opening and closing positions for each currency pair. An EA which is loaded on a single chart will automatically create these marks only on that chart. Maybe there is such a function designed to be used in multi-currency EAs ?
There is no such function. Objects can only be created and managed on the chart to which the EA is attached.
TakeProfitLastClosePos() function.
Returns the TakeProfit price level of the last closed position or -1. The TakeProfitLastClosePos() function accepts the following optional parameters:
TakeProfitLastClosePos() function.
Returns the TakeProfit price level of the last closed position or -1. The TakeProfitLastClosePos() function accepts the following optional parameters:
Is there a function that changes the take profit after some time has passed since the position was opened?
is there a function that changes the take profit after some time after the position has been opened?
ModifyOrder()
There, below are some examples of how to use it...