MQL4 - automated forex trading   /  

Forum

How do I get the SAR value in an EA that is plotted to the chart?

Back to topics list To post a new topic, please log in or register

avatar
7
jskillings 2006.09.24 07:46 
I would like to get the current SAR value that is plotted to the chart.

double SARCurrent = iSAR(NULL, 0, SARStep, SARMaximum, 0);

This call doesn't seem to get this value.

Any help would be appriciated.

Thank you.
Using Neural Networks In MetaTrader

Using Neural Networks In MetaTrader

This article shows you how to easily use Neural Networks in your MQL4 code taking advantage of best freely available artificial neural network library (FANN) employing multiple neural networks in your code.


avatar
155
richplank 2006.09.24 09:59 
Perhaps using the Symbol() function without arguments rather than NULL will work?

avatar
7
jskillings 2006.09.24 17:32 
NULL just uses the current symbol of the attached chart. I've tried it both ways, actually and they behave the same. I am getting a value, it's just not the value that is plotted to the chart.

avatar
118
rfiche 2006.09.25 21:14 
Killings,

be sure "SARStep" and "SARMaximum" are double variables.
Back to topics list  

To add comments, please log in or register