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

Re: [amibroker] Price Chart Area blank and menu items grayed out



PureBytes Links

Trading Reference Links

Thanks a lot.....

:)

--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Works in Guru commentary.....
> 
> 
> 
> /* Detecting double tops */
> 
> percdiff = 5; /* peak detection threshold */
> 
> fwdcheck = 5; /* forward validity check */
> 
> mindistance = 10;
> 
> validdiff = percdiff/400;
> 
> PK= Peak( H, percdiff, 1 ) == High;
> 
> //
> 
> Tr=Trough(L,percdiff,1)== Low;
> 
> //
> 
> x = Cum( 1 );
> 
> XPK1 = ValueWhen( PK, x, 1 );
> 
> XPK2 = ValueWhen( PK, x, 2 );
> 
> //
> 
> xTR1=ValueWhen( Tr, x, 1 );
> 
> xTr2 = ValueWhen( Tr, x, 2 );
> 
> //
> 
> peakdiff = ValueWhen( PK, H, 1 )/ValueWhen( PK, H, 2 );
> 
> //
> 
> Troughdiff=ValueWhen( tr, L, 1 )/ValueWhen( tr, L, 2 );
> 
> //
> 
> doubletop = PK AND abs( peakdiff - 1 ) < validdiff AND (Xpk1 -
> 
> Xpk2)>mindistance AND High > HHV( Ref( H, fwdcheck ), fwdcheck - 
1 );
> 
> //
> 
> doubleBot=tr AND abs( troughdiff - 1 ) < validdiff AND (Xtr1 -
> 
> Xtr2)>mindistance AND Low < LLV( Ref( L, fwdcheck ), fwdcheck - 1 );
> 
> //
> 
> Buy = doubletop;
> 
> Sell = doublebot;
> 
> 
> 
> 
> 
> WriteIf( Highest( doubletop ) == 1, "AmiBroker has detected some 
possible
> double top patterns for " + Name() + "\nLook for green arrows on 
the price
> chart.", "There are no double top patterns for " + Name() );
> 
> WriteIf(Highest( doublebot)==1,"AmiBroker has detected some 
possible double
> bottom patterns for " + Name() + "\nLook for red arrows on the price
> chart.", "There are no double bottom patterns for " + Name() );
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "Hans" <hansib@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, August 30, 2004 5:57 AM
> Subject: [amibroker] Change DoubleTops to DoubleBottoms
> 
> 
> > Hello,
> > I need some help....
> > I get this code at amibroker/library to get double tops. I tried 
to
> > modify it (Low instead of High and LLV instead of HHV) to 
get "double
> > Bottoms".... without success. I hope anyone can help me....
> > Many thanks
> > Hans
> >
> > /* Detecting double tops */
> > percdiff = 5; /* peak detection threshold */
> > fwdcheck = 5; /* forward validity check */
> > mindistance = 10;
> > validdiff = percdiff/400;
> > PK= Peak( H, percdiff, 1 ) == HIGH;
> >
> > x = Cum( 1 );
> > XPK1 = ValueWhen( PK, x, 1 );
> > XPK2 = ValueWhen( PK, x, 2 );
> >
> > peakdiff = ValueWhen( PK, H, 1 )/ValueWhen( PK, H, 2 );
> > doubletop = PK AND abs( peakdiff - 1 ) < validdiff AND (XPK1 -
> > XPK2)>mindistance
> > AND HIGH > HHV( Ref( H, fwdcheck ), fwdcheck - 1 );
> > buy = doubletop;
> > sell = 0;
> >
> > writeif( highest( doubletop ) == 1, "AmiBroker has detected some
> > possible
> > double top patterns for " + name() + "\nLook for green arrows on 
the
> > price
> > chart.", "There are no double top patterns for " + name() );
> > grazie
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/