Questions from Beginners MQL4 MT4 MetaTrader 4 - page 139
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
I am running the Expert Advisor in the Strategy Tester. When modifying a BUYSTOP order, it generates an error:
I do not understand why. The price at which my order is offered to move is 40 higher than the Ask price, StopLevel =30. The price is normalized, what else is required?
I am running the Expert Advisor in the Strategy Tester. When modifying a BUYSTOP order, it generates an error:
I do not understand why. The price at which my order is offered to move is 40 higher than the Ask price, StopLevel =30. The price is normalized, what else is required?
Please advise how to make a function for setting the required number of orders! for example, to open a specified number of orders without more. in mql4
if(OrdersTotal() < OrdersMax) OrderSend(...); else Alert("The required number of orders opened"); if this is used then several successive orders are opened ! not orders if there is another signal to trade so how to make it open the required number of orders if there are further signals to trade after the first open order ! ?
Why isn't anyone helping, please?
if(OrdersTotal() < OrdersMax) OrderSend(...); else Alert("The required number of orders opened"); if this is used then several consecutive orders will be opened ! not orders if there is another signal to trade so how to make it open the required number of orders if there are further signals to trade after the first open order ! ?
Guys, advise where to find or help me to correct trailing stop, which works this way:
For example, an BUY order with TP = 100 and SL = 200 was opened, and when the price went to BUY and passed 50 points, then SL becamethe opening price, while TP was moved to 50 points and so on constantly????
int cnt = OrdersTotal();
int lMinProfit = 0; // Min. pips
int lTrailingStop = 40; // Trailing position level (the number of points from the previous SL distance)
int lTrailingStep = 20; // Trailing stop level (the number of points after which it will trigger)
It could be shorter by 5 lines, but I'm too lazy to think...
Hello Comrades! Please help with setting the "button" object, I need to place code in the EA so that directly on the chart the button in the pressed or not pressed state would return a bool value. Thank you in advance!
here's