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

Re: [amibroker] Re: TD Sequential again...



PureBytes Links

Trading Reference Links



didn't work the system out. This 13 bar countdown seems not to render good signals in my opinion. The generalized code by Dimitris gives pretty good signals. Here is the code a little adjusted with buy,sell signals and buy sell price, rgds,Ed
 
 
SetBarsRequired(10000,10000);
 
blp = 0;slp = 0;
for(x=9;x<15;x++) { 
 
 b2=Sum(C<Ref(C,-4),x)==x;
 bbb = b2==0 AND Ref(b2,-1);
 blp=blp+bbb;
 PlotShapes((shapeHollowSmallCircle)*b2,x);
 
}
 
for(x=9;x<15;x++) { 
 
 s2=Sum(C>Ref(C,-4),x)==x;
 sss=s2==0 AND Ref(s2,-1);
 slp=slp+sss;
 PlotShapes((shapeHollowSmallCircle+shapePositionAbove)*s2,x);
 
}
 
Buy = blp; BuyPrice = C;
Sell = slp; SellPrice = C;
 
GraphXSpace = 5;
SetChartOptions(0, chartShowDates);
Plot(C,"\nLast",colorWhite,64);
 
PlotShapes(IIf(Buy,shapeUpTriangle,shapeNone),colorAqua,0,L,-15);
PlotShapes(IIf(Buy,shapeHollowCircle,shapeNone),colorWhite,0,BuyPrice,0);
PlotShapes(IIf(Sell,shapeDownTriangle,shapeNone),colorYellow,0,H,-15);
PlotShapes(IIf(Sell,shapeHollowCircle,shapeNone),colorWhite,0,SellPrice,0);


__._,_.___


**** 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

__,_._,___