Lol ... I had a feeling I wasn't thinking clearly this morn
Thank You for your help tho sergiu
D_T
Lol ... I had a feeling I wasn't thinking clearly this morn
Thank You for your help tho sergiu
D_T
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;
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); HTHOriginally Posted by ;
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