| -
ADX value discrepency
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
|
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.