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 #

Close From 3 Days Ago
Something's buggy here.

· To: metastock@xxxxxxxxxxxxx
· Subject: Something's buggy here.
· From: divenfish@xxxxxxxxxxxxx
· Date: Sun, 28 Mar 1999 06:15:54 -0500
· Reply-To: metastock@xxxxxxxxxxxxx
· Sender: owner-metastock@xxxxxxxxxxxxx

All,

Yep, something's buggy here. I need somebody to help me verify whether it's Metastock, this machine or me. Plot the following indicator. Plotted as is, it will return the close from 3 days ago. Select 2 as the input, and the indicator will plot, but will return a N/A in the data window. Next cut/paste the second line so that it is now the third line and again select 3 as the input. Now the indicator returns the close from 2 days ago, but gives a N/A when you select 3 as the input.

Thanks,
Ken

Close From 3 Days Ago

n:=Input("periods",2,3,3);
ValueWhen(1,n=2,Ref(C,-2));
ValueWhen(1,n=3,Ref(C,-3));

 

e-w-Close_From_3_Days_Ago.gif
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!