Hello All,

I recently started learning programming in ST and I am coding for a stratergy where it should look at ADX values, I am using them as below but the value whcih I get from the code (~80) and the value which I see on the graph for this period (~20) is completly diffent for the same bar.

Can anyone help me with this ?

// in the variable declaration part
private AvgTrueRange m_avgtruerange1;
private Function.ADX m_adx1;


// in the constructor
m_avgtruerange1 = new AvgTrueRange(this);
m_averagefc1 = new AverageFC(this);

// in the initialize method
m_avgtruerange1.length = new Serie---pression<Int32>(delegate { return 14; });
m_adx1.length = new Serie---pression<Int32>(delegate { return 14; });
m_adxvalue.DefaultValue = 0;

// the read the value , like below in the execute method
m_adxvalue.Value = m_adx1[0];


Thanks in advance.

Thanks,
Santhosh ML