Hello
the ea ist allmost finish
i have a little problem
i want set in a variable a pip intiger
i need this as double
example
distanz = 300;
if(distanz > 0.003
how can i set this with funktion Digits?
so that the ea works on euro and JPY ?
this is the last thing
thx for help
if i print the distanz with using _Digits come this messsage
2022.09.08 13:09:23.501 2022.08.02 17:06:08 ,M15: 1250
I did not understand anything
Please use the German forum. We have difficulty understanding your English.

- www.mql5.com
PIP, Point, or Tick are all different in general.
What is a TICK? - MQL4 programming forum (2014)
Unless you manually adjust your SL/TP for each separate symbol, using Point means code breaks on 4 digit brokers, exotics (e.g. USDZAR where spread is over 500 points), and metals. Compute what a PIP is and use it, 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)
distanz = 300;
if(distanz > 0.003
Use integer variable for the distance in Points and then multiply it with SymbolInfoDouble(sym, SYMBOL_TRADE_TICK_SIZE).
this way you get the gap of 300 points in ticks of a symbol - no matter how many digits the quotes have.

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
the ea ist allmost finish
i have a little problem
i want set in a variable a pip intiger
i need this as double
example
distanz = 300;
if(distanz > 0.003
how can i set this with funktion Digits?
so that the ea works on euro and JPY ?
this is the last thing
thx for help
if i print the distanz with using _Digits come this messsage
2022.09.08 13:09:23.501 2022.08.02 17:06:08 ,M15: 1250