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

[amibroker] Re: Acceleration bands - Price-Hadley



PureBytes Links

Trading Reference Links

Roman,

One slight change in your code to marry the condition
to the desired shape.

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

Regards,
Gary

--- mroman59 <mroman59@xxxxxxxxx> wrote:
> 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);
> 
> 
> 
> 
>  
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/