PureBytes Links
Trading Reference Links
|
Hi v,
most of Dimitris's code IS fantastic... :)
this was mentioned in the thread beginning at message #38424(I did a search
for 'coeff' and 'trendbars' in the CHM archives; do you have access to
these?)
I would ask him...but, in general, you would need a Filter and AddColumn
statement(s) to make it an Exploration. Eg,
Filter=1;
AddColumn(C,"Close",1.2);
And, I wouldn't stop there if I were evaluating it; I would add Buy and Sell
statements and Backtest it.
-john
----- Original Message -----
From: "vichooo_1999" <vichooo_1999@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, April 10, 2004 11:41 AM
Subject: [amibroker] Re: indicator for swing trading
I got this afl from somewhere I dont remember. But its fantastic. Only
thing is I am not able to convert it into an explorer. Can anyone help
please?
The afl is:
t=20;x=DEMA(StochD(40),t);Plot(x,"",1,8);
tA=50;xA=DEMA(StochD(40),tA);//Plot(xA,"",7,8);
Cond1=Ref(x,-1)==LLV(x,3);Plot(50*Cond1,"",5,2);
Cond2=Ref(x,-1)==HHV(x,3);Plot(50*Cond2,"",4,2);
k1=BarsSince(Cond1);k2=BarsSince(Cond2);
Plot((k2>k1)*10,"",5,2);Plot((k2<k1)*10,"",4,2);
Coeff=2;
trendbars=20;// calibrate here the start of variable smoothing
t1=IIf(k2>k1 AND k2>trendbars,t+coeff*k1,IIf(k1>k2 AND k1>trendbars,
t+coeff*k2,t));
x1=DEMA(StochD(40),t1);
Plot(x1,"",(x1>Ref(x1,-1))*5+(x1<Ref(x1,-1))*4,8);
GraphXSpace=2;
/*Target:-Medium term--this is not for v short term or intraday but
for swing(!!)or position traders.
buy when red becomes green and sell when green becomes red...excellent
signal to judge the trend.*/
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|