Relative Content

Tag Archive for mql5

Is it possible to prevent two buttons from stacking in the same position in MQL5?

I am a trading developer.
I am developing a GUI with mql5 and there are two tags on top. When I click on a tag, it hides the current section and shows another section. But there are two buttons (show, hide) in the same position. Here, when you click the show button, you can see that another hidden button is activated.
This seems to be because this hidden button has a higher priority than the other show button.
I need to fix this issue. Please help!

parameter conversion not allowed in Mql5 expert

if (isBullish || isBearish) { string symbolName = _Symbol; if (!trade.OrderSend(symbolName, orderType, LotSize, orderPrice, 10, sl, tp, “”, 0, 0, clrNONE)) { Print(“Error placing order: “, trade.ResultRetcode()); } else { PrintFormat(“Order placed successfully: %s %s at price %f, SL: %f, TP: %f, Volume: %f”, (isBullish ? “Buy” : “Sell”), (isBullish ? “Stop” : “Stop”), orderPrice, […]

Expert advisor running profit but also taking loss

I have written a code that I use to take profit in XAUUSD for 1 minute time frame. the problem with this EA is that it can make a profit when it follow the trend line, but when reversal came I keep taking losses, thus diminishing my profit. is there any way to fix my code ?