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 #

MACD Crosses my Trigger
----- Original Message -----
From: "Moshe Shalom" <moshe_shalom@xxxxxxxxxx>
To: "Metastock List" <metastock@xxxxxxxxxxxxx>
Sent: zondag 26 maart 2000 19:08
Subject: Exploration with variables

Hi to all wisers,

How can I explore with a changing parameter. For example:

Run MACD with a 14 days period instead of the hard coded 9 periods without changing manually the number in all the explorer places. I tried to use the input() but for some reason it did not ask me the question that I defined.

Many thanks to all,

Moshe Shalom
Israel


Re: Exploration with variables

. To: "Metastock-List" <metastock@xxxxxxxxxxxxx>
. Subject: Re: Exploration with variables
. From: "A.J. Maas" <anthmaas@xxxxxxxxx>
. Date: Sun, 26 Mar 2000 22:26:05 +0200
. Organization: Ms-IRB
. Reply-To: metastock@xxxxxxxxxxxxx
. Sender: owner-metastock@xxxxxxxxxxxxx

The Input() Function(MSK-man. p.271-273) cannot be used directly in the Explorer (MSK-man. p.351). It is reserved to be used in a custom indicator. However, the custom indicator's default value can be used in an exploration.

Since you have created a {faulty} custom indicator, than just re-code it. By referencing the Input() Function using the fml() CALL Function (MSK-man.p.226-227 and 208-209 and 212), you can still use its {by you at design time} assigned Default value.
 


MACDcustom

MAprd:=Input( "Periods", 5 {Minimum}, 30 {Maximum}, 14 {Default} );
YourTrig:=Mov( MACD(), MAprd, E );
MACD();
YourTrig

 

 
When creating the Exploration just click the Function-button and look under the Custom Indicators heading for both of the above custom indicator Functions, and "Open" each of them one by one, to Paste them into your column TABs (MSK-man. p.347-348).
 


MACD Crosses my Trigger

Cola:
Name: Close
C


Colb:
Name: MACD
FML( "MACDcustom , MACD" )


Colc:
Name: MACDTrigger
FML( "MACDcustom , YourTrig" )


Filter:
Colb > Colc
{or FML( "MACDcustom , MACD" ) > FML( "MACDcustom , YourTrig" ) }

 

 
Regards,
Ton Maas
ms-irb@xxxxxxxxxxxxxxxx
Dismiss the ".nospam" bit (including the dot) when replying.
Homepage http://home.planet.nl/~anthmaas

[18060]
 
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!