Not sure how the RSI gets into the plot of the MA, but here is what
you asked for:

YesterdaysRSI = Ref(RSI(2),-1);

Hbar = HHV(C,90);
Lbar = LLV(C,90);
Diff = Hbar - Lbar;
Todaysposition = ((C-Lbar)/Diff) * 100;

Plot(MA(Todaysposition,11), "Position MA", colorBlue, styleThick);

You can also use parameter statements to be able to adjust the MA time
frame from within the graph parameters if desired.  Change variable
names as desired.



--- In [email protected], "upsidetarget" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> I am a recovering Metastock user and could use some help with the
amibroker syntax. 
> How would I express:
> 
> RSI(2) value one period ago
> 
> this one is a little harder...
> 
> It involves the highest 90 period close, and the lowest 90 period
close, where the current 
> period close is shown as a 0-100 value between the two. i.e. 100
equals the highest 90 
> period close.
> 
> The actual indicator I am trying to output is an 11 period simple
moving average of the 
> above.
> 
> Thanks for your  help,
> 
> Michael
>


Reply via email to