..regret I´m a Rookie just starting/trying with AB :-((

-----Ursprüngliche Nachricht----- 
Von: "rkp1" <[email protected]>
An: <[email protected]>
Gesendet: Dienstag, 3. März 2009 16:41
Betreff: [amibroker] Daily Indicators with x TimeFrameSet lookbacks


I hope I can explain what I'd like help with clearly enough. Using AB's 
TimeFrame capabilities I can create an arbitrary x bar 
indicator, say an 11 bar RSI:

TimeFrameSet( 11 * inDaily );
rsi11 = RSI();
TimeFrameRestore();

What I would like to do is create a value for each daily bar, based on an x bar 
length, and store it in an array, so it can be used 
on a daily chart.

As an example, an indicator based on 5 bars normally produces enough bars to 
fill a weekly timeframe chart. I would like to create a 
value for say Monday, based on  5 bar groupings, then a value for the next day 
Tuesday, based on a 5 bar grouping from Tuesday 
looking back, etc.

What would be an efficient way to code this, and can looping be avoided?

Thanks,

Ralph


Reply via email to