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

RE: [amibroker] will some one give me a hand



PureBytes Links

Trading Reference Links

Thanks a lot MR

I think I found it, but there is no bar at the chart with  zooming in and out , I see a red line stick down or green line stick up ?

What to do ? to make it as the pic below

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kris45mar
Sent: 25 November, 2005 6:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] will some one give me a hand

 

OK kmasoud

Go to the Amibroker archives on Yahoo groups.
Have a look at these message numbers:

69510
69532
69566
69567
69570

69623
69624
69626
69639

You can also go to www.google.com and search for
site:www.purebytes.com "tsokakis" "parabolics"

Have fun.

ChrisB

kmmasoud <kmmasoud@xxxxxxxxxxxx> wrote:

I couldn't fine " Dimitris Tsokakis and Parabolics" in formulae archives

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kris45mar
Sent: 23 November, 2005 5:39 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] will some one give me a hand

 

kmmasoud <kmmasoud@xxxxxxxxxxxx> wrote:

For the top charts in blue do a search in the archives for Dimitris Tsokakis and Parabolics. There are a number of posts and AFL formulae for this. I think this may been around 2003/2004, not sure.

This is one his last formulae for the parabolic curve:

*****

//Historical best-fit parabolics
Plot(C,"C",1,64);
perc=3;//sensitivity calibration
x=BarIndex();xx=SelectedValue(x);
t1=SelectedValue(ValueWhen(PeakBars(H,perc)==0,x));
H1=SelectedValue(ValueWhen(PeakBars(H,perc)==0,H));
t11=SelectedValue(ValueWhen(TroughBars(L,perc)==0,x));
H11=SelectedValue(ValueWhen(TroughBars(L,perc)==0,L));
g=t1>t11;
shape=IIf(g,shapeDownArrow*(x==t1),shapeUpArrow*(x==t11));
Color=IIf(g,colorRed,colorBrightGreen);
PlotShapes(shape,color);
t=IIf(g,x-t1,x-t11);
diff1=IIf(g,H1*(xx-t1),H11*(xx-t11));
Lma=SelectedValue(MA(C,50));
f1=0;f2=IIf(Lma<100,1,0)+3*int(log10(Lma));
fa=0;fb=0;step=f2/100;
for(f=f1;f<f2;f=f+step)
{
parabolic=IIf(g,H1-f*t^2,H11+f*t^2);
S1=SelectedValue(Sum(abs(parabolic-H),xx-t1));
S11=SelectedValue(Sum(abs(parabolic-L),xx-t11));
diff=IIf(g,S1,S11);
if(diff<diff1)
{
diff1=diff;fa=f;
}
}
for(f=Max(fa-step,0);f<fa+step;f=f+0.01*step)
{
parabolic=IIf(g,H1-f*t^2,H11+f*t^2);
S1=SelectedValue(Sum(abs(parabolic-H),xx-t1));
S11=SelectedValue(Sum(abs(parabolic-L),xx-t11));

diff=IIf(g,S1,S11);
if(diff<diff1)
{
diff1=diff;fb=f;
}
}
p=IIf(g,H1-fb*t^2,H11+fb*t^2);

Plot(IIf(x>=Max(t1,t11),p,-1e10),"",color,1);
Title=Name()+", "+WriteIf(t1>t11,"f_desc","f_asc")+"="+WriteVal
(fb,1.4);//+"[f2="+WriteVal(f2)+",step="+WriteVal(step);
GraphXSpace=3;

*****

Regards

ChrisB


Yahoo! FareChase - Search multiple travel sites in one click.


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS

 

 




 


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS