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

Re: Exploration with variables



PureBytes Links

Trading Reference Links

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.

Custom Indicator :
Name: MACDcustom
Formula:
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) .  

Exploration:
Name: MACD crosses my Trigger
Columns: 
    Cola:
Name: Close
Formula:
C
    Colb:
Name: MACD
Formula:
FML( "MACDcustom , MACD" ) 
    Colc:
Name: MACDTrigger
Formula:
FML( "MACDcustom , YourTrig" )
    Filter:
Formula:
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


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