| -
How to use median function for high and low
maymed.fxdI keep getting an error with median function of yesterday's high and low. Is it used like average or avgtruerange?
It needs the middle number between the high and low. How do I get that. I don't know what I'm getting but when iI call it in a price order I keep getting an error. And what is length for? I only want yesterday's value. Would length be one? How will it know I want te median of yesterday's high and low. Any help you can give me would be greatly appreciated. Thank-You. PHP Code: private Function.Median med; protected override void Construct(){ med = new Function.Median(this); m_avgtruerange2 = new AvgTrueRange(this); protected override void Initialize(){ med.length = new Serie---pression<Int32>(delegate { return length; }); m_avgtruerange2.length = new Serie---pression<Int32>(delegate { return length; }); protected override void Execute(){ m_Order0.Generate((med[1] + (med[1]*numatrsup)+extra*Point),ablots);
Last edited by deegames999; 05-30-2012 at 08:24 PM.
|
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.