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

RE: [amibroker] Re: How to code sequential events ?



PureBytes Links

Trading Reference Links

How difficult would it be to rewrite this as a function....because it 
will provide flexibility for testing...

Thanks for your help


--- In amibroker@xxxxxxxxxxxxxxx, HarveyHP <harveyhp@xxxx> wrote:
> Many thanks for this, Dimitris.  Much appreciated.  Sorry to 
trouble you.
> HHP
> ===================
> 
> At 03:46 AM 06/04/2004, you wrote:
> >Here it is
> >
> >We may calculate the value of tomorrow´s Close necessary to touch
> >tomorrows Ti3 from the code
> >
> >  p=10;s=0.8;f=2/(p+1);
> >// Ti3
> >e1=EMA(C,p);
> >e2=EMA(e1,p);
> >e3=EMA(e2,p);
> >e4=EMA(e3,p);
> >e5=EMA(e4,p);
> >e6=EMA(e5,p);
> >c1=-s*s*s;
> >c2=3*s*s+3*s*s*s;
> >c3=-6*s*s-3*s-3*s*s*s;
> >c4=1+3*s+s*s*s+3*s*s;
> >Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
> >//The value of tomorrow´s Close Ct that touches tomorrow´s Ti3 is
> >Ct=
> >(1-f)*((c1*f^5+c2*f^4+c3*f^3+c4*f^2)*e1+(c1*f^4+c2*f^3+c3*f^2+c4*f)
> >*e2+(c1*f^3+c2*f^2+c3*f+c4*1)*e3+(c1*f^2+c2*f+c3*1)*e4+(c1*f+c2*1)
> >*e5+c1*e6)/(1-(C1*f^6+C2*f^5+C3*f^4+C4*f^3)) ;//relation III
> >Plot(C,"Close",1,8);Plot(Ti3,"Ti3",4,1);Plot(Ct,"Ct",5,1);
> >
> >Dimitris Tsokakis
> >
> >--- In amibroker@xxxxxxxxxxxxxxx, HarveyHP <harveyhp@xxxx> wrote:
> > > Dimitris,
> > > Thank you for checking.  This is strange - perhaps someone wise 
in
> >the ways
> > > of computers can suggest a solution, or even a reason.  The 
other
> >three
> > > .txt files and the .gif I can left-click and open in IE right 
away,
> >or
> > > right-click and save to disk with no trouble at all, but no 
matter
> >what I
> > > do "Ti3next.txt" remains stubborn.  When I left-click there is a
> >delay,
> > > then "This page cannot be displayed", and attempting to right-
click
> >and
> > > save produces "A connection to the server could not be
> >established", again
> > > after a delay.  I have made numerous attempts over three days.  
Yet
> >this
> > > file is only 1 Kb in size while the other three are 2, 5, and 6 
Kb
> >for the
> > > .txt files and 35 Kb. for the .gif.
> > > HHP
> > > =============================
> > >
> > > At 10:18 AM 05/04/2004, you wrote:
> > > >HHP,
> > > >I just openen all 5 files without problem.
> > > >Dimitris Tsokakis
> > > >--- In amibroker@xxxxxxxxxxxxxxx, HarveyHP <harveyhp@xxxx> 
wrote:
> > > > > Has anyone else had difficulty in accessing the
> > > >file "Ti3next.txt"?  I made
> > > > > several attempts last night and tonight but get the response
> > > >that "A
> > > > > connection to the server could not be established".  The 
other
> > > >files in the
> > > > > folder were copied with no problem.
> > > > >
> > > > > HHP
> > > > > ==========================
> > > > >
> > > > > At 03:00 AM 05/04/2004, you wrote:
> > > > > >The statistics were much better than expected. We can say 
now
> >that
> > > >we
> > > > > >can predict the Cross(Ti3a,Ti3b) without mistake.
> > > > > >See the details at
> > > > > >
> > > > > >http://finance.groups.yahoo.com/group/amibroker-ts/files/A%
> >20Ti3%
> > > > > >20application/
> > > > > >Cross(Ti3a,Ti3b) predictions.txt
> > > > > >Dimitris Tsokakis
> > > > > >
> > > > > >--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS"
> > > ><TSOKAKIS@xxxx>
> > > > > >wrote:
> > > > > > > A new Ct.txt is added at
> > > > > > > http://finance.groups.yahoo.com/group/amibroker-
ts/files/A%
> > > >20Ti3%
> > > > > > > 20application/
> > > > > > > The code gives the necessary tomorrows Close for a Ti3
(pa),
> >Ti3
> > > >(pb)
> > > > > > > cross.
> > > > > > > The calculation is direct, [no approximations used] and 
the
> > > > > >accurate
> > > > > > > result comes immediately.
> > > > > > > From various examples I think I can anticipate the
> >tomorrow's
> > > > > >cross,
> > > > > > > I will run some statistics and revert...
> > > > > > > Dimitris Tsokakis
> > > > > >
> >



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