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

[amibroker] Indicator problem.



PureBytes Links

Trading Reference Links

Just thought of another way:


GraphXSpace=1;
Plot(C,"",colorDefault,styleBar);

back=Param("back",0,0,30);
Cond=BarIndex()==LastValue(BarIndex())-back;

Hx=IIf(cond,H*1.2,Null);
Ox=Cx=Lx=IIf(cond,H*1.1,Null);
Oy=Hy=Ly=Cy=IIf(cond,H*1.2,Null);

PlotOHLC(Ox,Hx,Lx,Cx,"",colorGreen,styleBar);
PlotOHLC(Oy,Hy,Ly,Cy,"",colorGreen,styleBar);


Johan



--- In amibroker@xxxxxxxxxxxxxxx, "johsun" <johanskatt@xxxx> wrote:
> The only way I can think of is to use two histogram plots, one in 
> the same color as your background, partially blocking out the 
other.
> 
> Plot(C,"",colorDefault,styleBar);
> 
> bkgCol=colorWhite;//change to your bkgcolor
> 
> back=Param("back",0,0,30);
> Cond=BarIndex()==LastValue(BarIndex())-back;
> 
> Plot(IIf(cond,1.1*H,Null),"",bkgCol,
> styleHistogram|styleNoRescale);
> 
> Plot(IIf(cond,1.1*H,Null),"",colorGreen,
> styleNoLine|styleNoRescale);//so you'll have a visible value label
> 
> Plot(IIf(cond,1.2*H,Null),"",colorGreen,
> styleHistogram|styleNoRescale); 
> 
> 
> Regards, Johan
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "hertyil" <herty@xxxx> wrote:
> > Anyone know how to plot a truly vertical line, that is on the 
same 
> > bar's axis. Say from 1.1*High to 1.2*High ?
> > 
> > Herbert



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