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

Re: [amibroker] Re: PlotShapes - help please



PureBytes Links

Trading Reference Links

Any chance you have disabled the default layer?

Cheers,
Lal

----- Original Message ----
From: c_r_south <colin_south@xxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, 22 September, 2007 1:23:32 PM
Subject: [amibroker] Re: PlotShapes - help please

Thanks Bill,

Here is one piece of code that uses PlotShapes and produces nothing on the chart.

SetChartOptions( 0,chartShowArrow s); //I put this to try to unhide arrows!

_N("_DefaultName( )");
periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
upperStochLevel = Param("Stoch High",80,50, 95,1);
lowerStochLevel = Param("Stoch Low",20,5,50, 1);
fastLine = StochK( periods , Ksmooth);
slowLine = StochD( periods , Ksmooth, DSmooth );
Plot( fastLine, "", ParamColor( "KColor", colorCycle ), ParamStyle(" KStyle") );

Plot(slowLine , "", ParamColor( "DColor", colorCycle ), ParamStyle(" DStyle") );
Buy = IIf((Ref(fastLine, -1) <= lowerStochLevel) AND Cross(fastLine, slowLine) ,1,0);
Sell = IIf((Ref(fastLine, -1) >= upperStochLevel) AND Cross(slowLine, fastLine) ,1,0);

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, fastLine*0.99, fastLine*1.01 )
);
GraphXSpace = 10;
AlertIf(Buy, "SOUND C:\\PROGRAM FILES\\AMIBROKER\ \ShortHowl. WAV", "Buy"+FullName
());
AlertIf(Sell, "SOUND C:\\PROGRAM FILES\\AMIBROKER\ \RevShortHowl. WAV",
"Sell"+FullName( ));
/*
"shape = "+WriteVal(shape, 4.0);
"sell = "+WriteVal(Sell, 4.0);
"buy = "+WriteVal(Buy, 4.0);
"fastLine = "+WriteVal(fastline ,4.1);
"Ref(fastLine) = "+WriteVal(Ref( fastline, -1));
*/

Stepping along the stochastic plot with the cursor, one can see where shape changes from
1 to 2 on buy and sell signals, but I get no arrows. This statement is true for any piece of
code which has PlotShapes.
Regards,
Colin

--- In amibroker@xxxxxxxxx ps.com, "wavemechanic" <fimdot@xxx> wrote:
>
> If you want a definite answer and not a maybe this or that, post your code so that it can
be analyzed.
>
> Bill
>
> ----- Original Message -----
> From: "c_r_south" <colin_south@ ...>
> To: <amibroker@xxxxxxxxx ps.com>
> Sent: Friday, September 21, 2007 9:28 AM
> Subject: [amibroker] PlotShapes - help please
>
>
> > My PlotShapes function has decided to stop working on all calls. I use it in conjunction
with
> > alerts which are working fine. I've scaned the help files for the function and hide/show
but
> > can't find anything which I might have done to turn off the visibility of shapes. I'm at
the
> > 'don't know where to look next' phase and would appreciate help.
> >
> >
> >
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroke r.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroke r.com/support. html
> >
> > Yahoo! Groups Links
> >
> >
> >
>




Yahoo! Answers - Get better answers from someone who knows. Try it now. __._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___