PureBytes Links
Trading Reference Links
|
Chuck
You can input only numbers as far as I am aware.
However, by assigning numbers to do a certain type of moving average you
could accomplish what you require.
eg
matype:=input("enter MAA type 1=simple, 2= exponential"),1,2,2);
maout:=if(matype=1,mov(c,periods,S),
if(matype=2,mov(c,periods,E),{otherwise}0));
this will generate a simple or exponential MA depending on input
Regards ... Martin
Chuck Engstrom wrote:
> Is it possible to create an INPUT to offer selection among the various
> methods of calculating a moving average? I would be grateful for any
> suggestions or a simple example.
>
> Thanks--
>
> Chuck Engstrom
> Kennedyville, MD
|