- find the price of the last closed position
- Questions from a "dummy"
- Difference between a close and open.
-
Perhaps you should read the manual. Timeseries and Indicators Access
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
PIP, Point, or Tick are all different in general.
What is a TICK? - MQL4 programming forum #35 (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) -
Was this so hard you couldn't do it?
double openPrice = iOpen( _Symbol, _Period, 0), closePrice = iClose(_Symbol, _Period, 1), difference = openPrice - closePrice, pip = _digits % 2 ? _Point : _Point * 10, pipDifference = difference / pip;

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