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

[EquisMetaStock Group] Re: Plotting vertical line ( indicator )



PureBytes Links

Trading Reference Links

Try this indicator:

---8<----------------------------------

{ http://www.metastocktools.com }

{ User inputs }
bars1:= Input("Bars since last day for signal 1:",0,5250,10);
bars2:= Input("Bars since last day for signal 2:",0,5250,20);
{
bars3:= Input("Bars since last day for signal 3:",0,5250,30);
bars4:= Input("Bars since last day for signal 4:",0,5250,40);
bars5:= Input("Bars since last day for signal 5:",0,5250,50);
bars6:= Input("Bars since last day for signal 6:",0,5250,60);
}

{ Signals }
signal1:=Cum(1)=LastValue(Cum(1))-bars1;
signal2:=Cum(1)=LastValue(Cum(1))-bars2;
{
signal3:=Cum(1)=LastValue(Cum(1))-bars3;
signal4:=Cum(1)=LastValue(Cum(1))-bars4;
signal5:=Cum(1)=LastValue(Cum(1))-bars5;
signal6:=Cum(1)=LastValue(Cum(1))-bars6;
}

{ Plot as histogram in own window }
signal1;signal2;
{signal3;signal4;signal5;signal6}

---8<----------------------------------


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "pernin22" <pernin22@xxx> 
wrote:
>
> Hi all,
> 
> How would you code this indicator : plot a vertical line on the
> 10th and the 20th bars since to day ?  AND ......  just on these
> two bars.
> 
> Tried with BarsSince but bad result : I get ALL bars plotted since
> the 10th one  :-(
> 
> Thanks for your help.











------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

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