Extracting value of indior
Results 1 to 4 of 4

Thread: Extracting value of indior

  1. #1
    When I initiate a loop to extract the value of a specific indior (for arguments sake ATR) how can I extract the atr worth of the final x bars

    for instance


    for (int I =1; ilt;=Bars; I )

    latestatr = iATR(NULL,0,5,0);
    Alert (latestatr);


    For instance I know whether I wanted that the high of the past xbar it would be high[x] .... But how can you extract the value of an indior for pub? I tried iATR (x) or iATR [x] ... but to no avail.??

    Cheers
    D_T

  2. #2
    Quote Originally Posted by ;
    If I initiate a loop to extract the value of a specific indior (for arguments sake ATR) how do I extract the atr worth of the last x bars

    for example


    for (int I =1; ilt;=Bars; I )

    latestatr = iATR(NULL,0,5,0);
    Alert (latestatr);


    For example I know whether I wanted the high of the past xbar it would be elevated[x] .... But how can you extract the value of an indior for x pub? I tried iATR (x) or iATR [x] ... but to no avail.??

    Cheers
    D
    Inserted Code for (int I =1; ilt;=Bars; I ) latestatr = iATR(NULL,0,5,#91;color=Red#93;i-x#91;/color#93;-RRB-; Alert (latestatr); HTH

  3. #3
    And see if this can help you understand

    Inserted Code dual iATR( string symbol, int interval, int interval, int shift) Calculates the Indior of the average true range and returns its value. Parameters: emblem - Symbol the data of that should be used to calculate indior. NULL means the current emblem. Timeframe - Timeframe. It may be any of Timeframe enumeration values. 0 signifies the current chart interval. Interval - Averaging interval for calculation. #91;color=Red#93;shift - Index of the value taken in the indior buffer (shift relative to the current pub the given amount of periods past). #91;/color#93;

  4. #4
    Lol ... I had a feeling I wasn't thinking clearly this morn

    Thank You for your help tho sergiu

    D_T

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.