Hello guys, i need programme this: IF LAST TICK > 2 pips = ................. (5 digits brooker) how can i do it? thank you.
- How to define open price of last trade.......
- Kaufman AMA break out EA
- Pip tracker
Maybe . . .
static double LastTickValue = 0; if (LastTickValue == 0) LastTickValue = Bid; else { if (Bid > LastTickValue + (2 * DigitAdjust * Point) ) //2 pips adjusted for 4/5 digit brokers using DigitAdjust { // do stuff } }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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