When you post code please use the CODE button (Alt-S) !
NOTE-1: Traders and coders are working for free:
- if it is interesting for them personally, or
- if it is interesting for many members on this forum.
Freelance section of the forum should be used in most of the cases.
NOTE-2: your code seems AI-generated, so it can be hardly helped (would need considerable human review/corrections before being usable in a live trading environment).

- 2025.01.13
- www.mql5.com

- 2025.01.13
- www.mql5.com
double pip = Point;
-
Perhaps you should read the manual, or press F1 in the editor. MQL5 Reference
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.There is no such predefined variable Point.
-
PIP, Point, or Tick size are all different in general.
Ticks, PIPs or points in the GUI. Make up your mind. - MQL4 programming forum #1 (2014)
Percentage in point - WikipediaUnless you manually adjust your SL/TP for each separate symbol, using Point means code breaks on 4 digit brokers (if any still exists), exotics (e.g. USDZAR where spread is over 500 points), and metals. Compute what a logical PIP is and use that, not points.
How to manage JPY pairs with parameters? - MQL4 programming forum (2017)
Slippage defined in index points - Expert Advisors and Automated Trading - MQL5 programming forum (2018)
tip: highlight function name at the line where the compiler says there's a problem, and press F1
use any of the options
double pip = _Point;
or
double pip = Point();
or
double pip = SymbolInfoDouble(_Symbol, SYMBOL_POINT);
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
here is the code