- Trailing stop failed EA
- Put a Trailing Stop
- How to close all of your open positions at the same trailing stop price?
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Yes, except that you prevent it.
if(BuyCount==0){
- Jones John: I also want to know can the trailing stop start trailing from profit and not begin below the order open price or make the breakeven trail the price?Of course, it can; code it to do what you want. Define"profit" each individual or all open orders combined: Lots Weighted Average Price = ∑ op(i) × lot(i) ÷ ∑ lot(i). This is the break even price of all orders combined.
OrderOpenPrice question . - MQL4 programming forum
looking for sample code on how to calculate the price BE for a few Buy and Sell orders simultaneously - Pips - MQL4 programming forum
William Roeder #:
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Yes, except that you prevent it.
- Of course, it can; code it to do what you want. Define"profit" each individual or all open orders combined: Lots Weighted Average Price = ∑ op(i) × lot(i) ÷ ∑ lot(i). This is the break even price of all orders combined.
OrderOpenPrice question . - MQL4 programming forum
looking for sample code on how to calculate the price BE for a few Buy and Sell orders simultaneously - Pips - MQL4 programming forum
Hello William Thank you for your reply.
1. Noted will make sure not to make the same mistake
2. On the Buycount==0 when I increase the number to let's say 1 the EA executes 2 buy trades at the same time.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use