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

[amibroker] Re: PLOTSHAPES problem



PureBytes Links

Trading Reference Links

hello Gary,

"Gary A. Serkhoshian" <serkhoshian777@xxxx> wrote:
> Hi,
>  
> You need to either do the following:
> function fSelectDayAgo( n )
> {
> return IIf( DateNum()==LastValue(ValueWhen(DateNum()!=Ref(DateNum(),-1), DateNum(), n)), 1, 0);
> }
> arrSelectedDay = fSelectDayAgo(5);
> 
> PlotShapes( IIf( arrSelectedDay, shapeCircle, shapeNone ), colorGreen); // <--this doesn't plot anything
> 
> //while this does:
> 
> Plot( arrSelectedDay, "PP", colorRed, styleHistogram);
> OR
>  
> Keep your code as is but change the plotshapes line:
>  
> PlotShapes( IIf( arrSelectedDay, shapeCircle, shapeNone ), colorGreen,0,0,0);
>  
> PlotShapes needs a ygraph reference.  When you have your plot on styleownscale with no min max range I assume it doesn't know where to plot.  so, you have to add the three extra fields to specify.
>  
> Hope this helps,
> Gary

I changed this line but still nothing appears. I have this code before

//--Indicator-End--

line, at the built-in Price indicator. I also copied this code to make this a separate "indicator", but still nothing happens.. still stuck..

cheers,
BM


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

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/