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

[amibroker] Help with Buy/Sell Rules based on my indicator



PureBytes Links

Trading Reference Links

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=12h6s2vud/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124827125/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</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/