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

RE: [amibroker] Multiple file Import



PureBytes Links

Trading Reference Links

Dimitris,
Thanks a lot.  It works fine.

Dick H

--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> I suppose you want the 1st red/green day.
> 
>  t=20;x=DEMA(StochD(40),t);
> tA=50;xA=DEMA(StochD(40),tA);
> Cond1=Ref(x,-1)==LLV(x,3);
> Plot(50*Cond1,"COND1",colorBrightGreen,2);
> Cond2=Ref(x,-1)==HHV(x,3);
> Plot(50*Cond2,"COND2",colorRed,2);
> k1=BarsSince(Cond1);
> k2=BarsSince(Cond2);
> Plot((k2>k1)*10,"K2>K1",colorBrightGreen,2);
> Plot((k2<k1)*10,"K2<K1",colorRed,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",(x1>Ref(x1,-1))*colorBrightGreen+(x1<Ref(x1,-1))
> *colorRed,8);
> Plot(x,"X",colorBlack,8);
> GraphXSpace=2;
> Filter=COND1 OR COND2;
> AddColumn(COND1,"COND1",1.0);//the 1st green day
> AddColumn(COND2,"COND2",1.0);//the 1st red day
> 
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "areehoi" <hoierman@xxxx> wrote:
> > Hi All:
> > Somtime back a post was made of the followinf formula described 
as 
> an 
> > indicator for swing traders (Message # 62207). Request was made 
to 
> > convert this into an Exploration.  Has anyone done this?? If so 
it 
> > would be most appreciated if you would be so kind as to post the 
> > exploration.  Thanks
> > 
> > Dick H.
> > 
> > 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.*/



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