Any chance you have disabled the default layer? Cheers, Lal
----- Original Message ---- From: c_r_south <[EMAIL PROTECTED]> To: [email protected] 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 [EMAIL PROTECTED] ps.com, "wavemechanic" <[EMAIL PROTECTED]> 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: <[EMAIL PROTECTED] 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 > > > > > > > <!-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --> ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
