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

[amibroker] Re: Scalping Using RT Tick Data



PureBytes Links

Trading Reference Links

You need more details in the plotshapes. See the help screens for AFL
and I always put the conditions in brackets so that things are read 
the way I want them

PlotShapes( (stoRSI < 20) * shapeUpArrow,colorBrightGreen
,0,L,0);

graham

--- In amibroker@xxxxxxxxxxxxxxx, "Gary A. Serkhoshian" 
<serkhoshian777@xxxx> wrote:
> 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@xxxx> 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 --------------------~--> 
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/