MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 A B C D E F G H I J K L M N O P R S T U V W Y Z #

Vertical Line by Jose Silva

From: pernin22 <pernin22__aT__yahoo.fr>
To: equismetastock__aT__yahoogroups.com <equismetastock__aT__yahoogroups.com>
Date: Monday, July 17, 2006, 12:29:00 PM
Subject: [EquisMetaStock Group] Plotting vertical line ( indicator )

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

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: Jose Silva <josesilva22__aT__yahoo.com>
To: equismetastock__aT__yahoogroups.com <equismetastock__aT__yahoogroups.com>
Date: Monday, July 17, 2006, 8:54:53 PM
Subject: [EquisMetaStock Group] Re: Plotting vertical line ( indicator )

Try this indicator:

Vertical Line

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

jose '-)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: pernin22 <pernin22__aT__yahoo.fr>
To: equismetastock__aT__yahoogroups.com <equismetastock__aT__yahoogroups.com>
Date: Tuesday, July 18, 2006, 7:22:04 AM
Subject: [EquisMetaStock Group] Re: Plotting vertical line ( indicator )

Jose,

Thanx a lot, works perfectly : it's just magic how you do things.
Source / From: TOP
Metastockusers[at]yahoogroups[dot]com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.