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

Re: [EquisMetaStock Group] Re: Function with parameters



PureBytes Links

Trading Reference Links

b> Whenever you change the values in myVariables it changes every for
b> every function that uses these variables.

bellamy_29m,
            Thank you very much BUT how can I change the values
(constants) in your indicator calles "myVariables" ?
I'm interesting in arguments as VARIABLEs and not as CONSTANTs.
Any other idea ? :)
Best regards,
              Pablo


b> Not unless your indicator is an external function.  All function
b> arguments are the variables declared within the function itself.

b> You can however use another function to store "global variables" and
b> use the fmlvar() function to retrieve them.

b> {Indicator: myVariables}
b> ShortMALength:=10;
b> LongMALength:=100;
b> myShoeSize:=8.5;

b> {Indicator: myMACD}
b> ShMA:=FmlVar("myVariables","ShortMALength");
b> LnMA:=FmlVar("myVariables","LongMALength");
b> ShMA-LnMA;

b> {Indicator: AnotherIndicator}
b> FmlVar("myVariables","ShortMALength")-FmlVar("myVariables","myShoeSize");
b> ;

b> etc

b> Whenever you change the values in myVariables it changes every for
b> every function that uses these variables.



b> --- In equismetastock@xxxxxxxxxxxxxxx, Paolo <italoarg76@xxx> wrote:
>>
>> Hi!
>>     I'd like know if it's possible to GIVE parameters to an indicator.
>> Eg.  Myindicator(2,-1)
>> In C/Basic/Pascal,etc it's possible.
>> Is it possible in Metastock ?
>> Thanks a lot.
>> Pablo
>> 
>> Now for spanish-speakers: quisiera saber si puedo pasar parametros a
>> un indicador creado por mi tal como lo haria con una funcion o
>> procedimiento de Pascal,C u otros lenguajes.
>> Se que hay hispanoparlantes entre nosotros :)
>>







 
b> Yahoo! Groups Links







Pablo Bozzolo

---
Contact info:

Movil: 221 5384617
E-mail: italoarg76@xxxxxxxx
MSN: italoarg76@xxxxxxxxxxx
ICQ: 77207033




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/rlNZQC/gOaOAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/