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 #

Late Start 3 EMA
use IF statement, return nul value
To: metastock@xxxxxxxxxxxxx
Subject: Re: use IF statement, return nul value
From: hcong <hcong@xxxxxxxxxxxxxx>
Date: Sun, 28 Jan 2001 16:25:42 +0800
References:LNBBKIIKPJFAFHFNIBKOGEBJDJAA.neo1@xxxxxxxxx
3A737287.94B8159A@xxxxxxxxxxxxxxx <3A7385DE.58343F65@xxxxxxxxxxxxxx>
<001901c088f1$7266a7c0$98525c18@xxxxxxxxxxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

John:

My mistake.

This trick is only good to prevent indicator being plotted BEFORE a certain user define nos of days -D- from the beginning of the chart, but not after.


Late Start 3 EMA

days:=Input("StartDays",1,5000,50);
launch:=Cum(1)>days;
Id:=Mov(C,3,E);
If(Cum(1)>launch,id,RSI(days+1))

 

I realise this may not solve your problem, but maybe you can explorefrom this direction :).

> > One way is to force Metastock to plot an *unplottable* dummy indicator:
> > Eg:If( condition , value to plot when true , RSI(cum(1)+1) )

--
Regards.

Ong Hock Choon
hcong@xxxxxxxxxxxxxx

Source / From: TOP
http://purebytes.com/archives/metastock/

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.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!