Hi,
please, refer to CopyBuffer() function.

Documentation on MQL5: Timeseries and Indicators Access / CopyBuffer
- www.mql5.com
Timeseries and Indicators Access / CopyBuffer - Documentation on MQL5
Venkat ramana:
Alert(mSar);
I am trying to get iSar values but its always shows up as 1.0. Pl help to get the correct iSar values. Thx for the help
double mSar =0.00;
mSar = iSAR(NULL,0,0.02,0.2,0)>Close[0];Alert(mSar);
Your code doesn't really make sense.
mSar = iSAR(NULL,0,0.02,0.2,0);
Above code should assign correct iSAR value to mSAR. But you're trying to make it a boolean expression, which doesn't work.
Guess you had something in mind like:
double mSar = iSAR(NULL,0,0.02,0.2,0); if (mSar>Close[0]) Alert("whatever");
PomeGranate:
The question was posted 2 years ago. Thanks to share anyway.
Your code doesn't really make sense.
Above code should assign correct iSAR value to mSAR. But you're trying to make it a boolean expression, which doesn't work.
Guess you had something in mind like:
Alain Verleyen:
The question was posted 2 years ago. Thanks to share anyway.
Haha, I see - you're right. You're welcome anyway! ^^
The question was posted 2 years ago. Thanks to share anyway.

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
I am trying to get iSar values but its always shows up as 1.0. Pl help to get the correct iSar values. Thx for the help
double mSar =0.00;
mSar = iSAR(NULL,0,0.02,0.2,0)>Close[0];Alert(mSar);