- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
----- 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: |