double PointValue(int pointvalue_lotsize) // { // danger double PointValues; // type casting PointValues = PointValue_Calculate=(((MarketInfo(Symbol(),MODE_TICKVALUE)*Point)/MarketInfo(Symbol(),MODE_TICKSIZE))*pointvalue_lotsize); return PointValues; }
double PointValue(double pointvalue_lotsize) ..

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
Hello,
I am trying to calculate Point Value and the code is working fine with Indicator but when i try same code with EA function it not working.
Indicator code :
Trying to convert into EA function :
Indicator Output for EURUSD : 1 Lot => 1.000 , 0.1 => 0.100 , 0.01 => 0.010
EA Function Output : 1 Lot => 1 Lot (PointValue(1)) => 1.000, 0.1 Lot (PointValue(1)) => 0.000, 0.01 Lot (PointValue(1)) => 0.000
Why it not working for EA function like Indicator?