Download MetaTrader 5

Readout of indicator values

To add comments, please log in or register
Follow the news. View our company's official channel!
taifun
11
taifun 2012.02.14 15:56 
Hi,

I´m looking for a way to read out values of indicators, like RSI or average movement, to try out scripting an expert advisor.

Anyone know how to do that?

I am beginner/advanced-beginner in mysql, so I´d be grateful for an example script code.

Thanks!
Robert
418
Robert 2012.02.14 18:43  
taifun:
Hi,

I´m looking for a way to read out values of indicators, like RSI or average movement, to try out scripting an expert advisor.

Anyone know how to do that?

I am beginner/advanced-beginner in mysql, so I´d be grateful for an example script code.

Thanks!

Hi Taifun,

You can display the values of indicators in the EA by using COMMENTS to display them directly on the chart or use PRINT statements to print them to your logs.

Quick examples:

Comment ("Indicator Value1 = ",Value1);

Print( ("Indicator Value1 = ",Value1);

Hope this helps,

Robert






To add comments, please log in or register