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

Re: [amibroker] hi, there...need a hand plz....


  • Date: Sun, 14 Mar 2010 17:26:09 -0500
  • From: "Joe Landry" <jelandry@xxxxxxxxxxxxx>
  • Subject: Re: [amibroker] hi, there...need a hand plz....

PureBytes Links

Trading Reference Links



I don't know what's going wrong but I always start with "show me one that works" and here I've added 4 lines to show one that does work and puts green arrows next to the Price Line (Close).  Try this with a stock that does cross the 50 day moving average in the display range like IBM.

 

AO = MA( Avg,5) - MA( Avg , 34);

AOUpBar = AO > Ref(AO, -1);

AODownBar = AO < Ref(AO, -1);

zeroBuy = Ref (aoupbar,-2)<0 AND Ref (aoupbar,-1)<0 AND Cross(aoupbar,0) ;

PlotShapes(IIf(zerobuy,shapeUpArrow,Null),colorGreen,0,Min(0,0),-10);

// Added this to show one that works  

BuySig = Cross(Close,MA(Close,50));

Plot(Close,"Close",colorBlue,styleLine|styleThick);

Plot(MA(Close,50),"",colorBlack,styleLine);

PlotShapes(IIf(Buysig,shapeUpArrow,Null),colorGreen,0,Close,-20);

 

Hope this helps

Joe L.

----- Original Message -----
Sent: Friday, March 12, 2010 11:24 PM
Subject: [amibroker] hi, there...need a hand plz....

 

i try to create a code, but cannot generate a signal arrow...
am i wrong???
can anybody here help me?
tx to all who read this...

AO = MA( Avg,5) - MA( Avg , 34);
AOUpBar = AO > Ref(AO, -1);
AODownBar = AO < Ref(AO, -1);
zeroBuy = Ref (aoupbar,-2)<0 AND Ref (aoupbar,-1)<0 AND cross(aoupbar,0) ;
PlotShapes(IIf(zerobuy,shapeUpArrow,Null),colorGreen,0,Min(0,0),-10);



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___