PureBytes Links
Trading Reference Links
|
Hi,
insert:
PlotShapes( shapeUpArrow * Buy, colorGreen );
PlotShapes( shapeDownArrow* Sell, colorRed );
does the trick!
--- In amibroker@xxxxxxxxxxxxxxx, "Joel" <shadowzen@xxxx> wrote:
> Here's my code (modified a bit from it's initial intent because of
> my trouble with buy/sell signal arrows that STILL do not show up):
>
> SetPositionSize( 200, spsShares );
>
> z1 = C*StochD(15);
> z2 = TEMA(z1,3);
> zt1 = Cross(C*StochD(15),TEMA(C*StochD(15),3));
> zt2 = Cross(TEMA(C*StochD(15),3), C*StochD(15));
> Buy = zt1==1;
> Short = zt2==1;
> Sell = Short;
> Cover = Buy;
>
> Plot (z1,"z1",colorBlue);
> Plot (z2,"z2",colorRed);
>
> "Closing price = " + WriteVal( Close );
> "zt1 = " + WriteVal( zt1 );
> "zt2 = " + WriteVal( zt2 );
>
>
>
> So, why aren't I getting any arrows for buy and sell? I have
arrows
> on in both the indicator and main chart, I see zt1 go to 1 when a
> crossover occurs (same for zt2 when cross under). NO ARROWS??
>
> Help!
> Zen
>
> ps my original code was:
>
>
> z1 = C*StochD(15);
> z2 = TEMA(z1,3);
>
> Buy = cross(z1,z2);
> Sell = cross(z2,z1);
>
> Plot (z1,"z1",colorBlue);
> Plot (z2,"z2",colorRed);
>
> ... but no arrows! arrrgh!!!
> which led to the expanded test above, which again... no arrows.
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hn0fjpm/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124827838/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html">Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|