[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Wealth-Lab sold to Fidelity!



PureBytes Links

Trading Reference Links

Can someone tell me why my following formula does not plot arrows on 
my chart for the stoRSI variable in it. Thank you, much appreciated.

MR



Plot(MA(C,200),"",colorBrightGreen,styleLine);

//stoRSI indicator formula
period = 8;
r = RSI(period);
StoRSI = EMA( (r - LLV(r, period ) ) / ( (HHV(r, period) ) - LLV(r, 
period) ), 3) * 100;


//Fibonacci Retracement levels
H52 = Ref(HHV(H,60),-1);
L52 = Ref(LLV(L,60),-1);
L52bar = LastValue( BarsSince(L==L52));
H52bar=LastValue(BarsSince(H==H52));
change = H52-L52;
Retrace38 = H52 - change*0.382;
Retrace50 = H52 - Change*0.50;
Retrace62 = H52 - Change*0.628;
Retrace100 = H52 - Change*1;

Plot(C,"price",colorBlack,styleCandle);
Plot(IIf(BarIndex()>=(BarCount-1- H52bar), H52, Null), "H52", 
colorRed,styleLine);
Plot(IIf(BarIndex()>=(BarCount-1- H52bar), Retrace38, Null), "Retr 
38%", colorBrightGreen,styleLine);
Plot(IIf(BarIndex()>=(BarCount-1- H52bar), Retrace50, Null), "Retr 
50%", colorYellow,styleLine);
Plot(IIf(BarIndex()>=(BarCount-1- H52bar), Retrace62, Null), "Retr 
62%", colorBrightGreen,styleLine);
Plot(IIf(BarIndex()>=(BarCount-1- H52bar), Retrace100, Null), "Retr 
100%", colorRed,styleLine);

GraphXSpace=5; 

PlotShapes(stoRSI < 20, shapeUpArrow,colorBrightGreen ,1);
PlotShapes(StoRSI >80, shapeDownArrow,colorRed ,1);




 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/