When you post code please use the CODE button (Alt-S) !
Mehmet Bekir:
I'm trying to make a expert advisor via mql5 but I'm taking these errors anyone can help ?
';' - open parenthesis expected SMC_Swing_Trader.mq5 114 73
add brackets after Point like so Point()
same on every line with that error.

code button.
Mehmet Bekir #: this is the whole code
Your code seems to be the result of generating it with ChatGPT (or other A.I.) as it has mixed MQL4 and MQL5 code.
If that is the case, then we will not help you, because it generates horrible code. Consider the Freelance section for such requests.
Trading applications for MetaTrader 5 to order
- 2024.12.23
- www.mql5.com
The largest freelance service with MQL5 application developers
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
search the website. we do not spoon feed newbies here.
and just like the moderator said, I agree, looks like you have mixed mt4 and mt5 code together. I agree with moderator, I think that you did NOT create this code yourself.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'm trying to make a expert advisor via mql5 but I'm taking these errors anyone can help ?
trade.Buy(lotSize, Symbol(), ask, ask - StopLoss * Point, ask + TakeProfit * Point);
')' - open parenthesis expected SMC_Swing_Trader.mq5
trade.Sell(lotSize, Symbol(), bid, bid - StopLoss * Point, bid + TakeProfit * Point);
',' - open parenthesis expected SMC_Swing_Trader.mq5 84 66
')' - open parenthesis expected SMC_Swing_Trader.mq5 84 92
if (PositionSelect(i))
implicit conversion from 'number' to 'string' SMC_Swing_Trader.mq5 97 28
double newStopLoss = currentPrice - TrailingStop * Point;
';' - open parenthesis expected SMC_Swing_Trader.mq5 106 73
double newStopLoss = currentPrice + TrailingStop * Point;
';' - open parenthesis expected SMC_Swing_Trader.mq5 114 73