Help - Using iMAOnArray?
Results 1 to 2 of 2

Thread: Help - Using iMAOnArray?

  1. #1
    Hi guys,

    I have try to use iMAOnArray on ATR Value and that I think it does not work. Can you guys help me . Below is the code example

    for(Count=Restrict;Countgt;20;Count--)

    ATRValueArray[Count] = iATR(NULL,0,20,Count);

    ATRMAValue = iMAOnArray(ATRValueArray,0,20,0,MODE_SMA,0

    I've coded an indior to show me the reading but I think I didn't find the expected number that is coming out.

    How could I programmed it?

  2. #2
    Quote Originally Posted by ;
    Hi guys,

    I have attempt to use iMAOnArray on ATR Value and that I believe it doesn't work. Would you guys help me . Below is your code illustration

    for(Count=Restrict;Countgt;20;Count--)

    ATRValueArray[Count] = iATR(NULL,0,20,Count);

    ATRMAValue = iMAOnArray(ATRValueArray,0,20,0,MODE_SMA,0);

    I've coded an indior to show me the reading but I believe I didn't find the expected number that is coming out.

    How could I correctly programmed it?
    Are you convinced of what you're attempting to do? This code will give you a 20 period average of the 20 period average of the range of each phase. When it is, I'd set it up like this

    for(Count=Limit;Countgt;20;Count--)

    ATRValueArray[Count] = iATR(NULL,0,20,Count);

    for(Count=Limit;Countgt;20;Count--)

    ATRMAValue[Count] = iMAOnArray(ATRValueArray,0,20,0,MOD E_SMA,Count);


    The reason being is I believe you want to load up the ATR array, before you may preform another average on it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.