NaiTON.PTK: always 0 ??
Always post all relevant code (using Code button) or attach the source file. Where is the assignment? Where do you print your result?
NaiTON.PTK:
MathAbs(iOpen(_Symbol,PERIOD_CURRENT,0) - iClose(_Symbol,PERIOD_CURRENT,0))
MathAbs(iOpen(_Symbol,PERIOD_CURRENT,0) - iClose(_Symbol,PERIOD_CURRENT,0))
double size=MathAbs(iOpen(_Symbol,PERIOD_CURRENT,0) - iClose(_Symbol,PERIOD_CURRENT,0)); Comment("Size "+size);
store it in a double type not an int
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
why
always 0 ??
how to fix it?