How to get indicator drawing info

 

I am using this indicator https://www.mql5.com/en/code/777?source=terminal5_codebase and it draws arrows on the chart. If I mouse over the arrow, it shows a time and a value. How do I get that info?

 

This is what I have so far. It gets me the most recent indicator value, but I need the time:

string sSymbol=Symbol();

        double indicatorBuffer[];

        SetIndexBuffer(0,indicatorBuffer,INDICATOR_DATA);

        int bars=Bars(sSymbol,PERIOD_CURRENT);

        int to_copy=bars;

 




        //type - 0 Buy, 1 Sell

        CopyBuffer(bwaHandle, 0, 0, 10, indicatorBuffer);//geting the buy buffer

        ArraySetAsSeries(indicatorBuffer,true);

        // indicatorBuffer[0] contains a usable value sometimes.

 

wlxBWACsig
  • votes: 9
  • 2012.02.16
  • wellx | English Russian Chinese Spanish Portuguese
  • www.mql5.com
The indicator shows entry signals based on Accelerator Oscillator.
 
Use CopyTime (https://www.mql5.com/en/docs/series/copytime) and you will have an array of time values.
Documentation on MQL5: Timeseries and Indicators Access / CopyTime
  • www.mql5.com
Timeseries and Indicators Access / CopyTime - Documentation on MQL5