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

Re: [EquisMetaStock Group] Change the setting of function


  • Date: Sat, 20 Mar 2010 17:56:52 -0000
  • From: "formulaprimer" <formulaprimer@xxxxxxxxx>
  • Subject: Re: [EquisMetaStock Group] Change the setting of function

PureBytes Links

Trading Reference Links

You just change the default functions by making your own custom formula for the indicator or changing the default setting if it will allow you. example for OBTR Rapid your can change the default settings
FmlVar("On Balance True Range MACD Hist","SIGNALMA") another example is bollinger bands BBandTop(DA, Prds, E S T TRI VAR W, Deviations)

TrueRangeHigh:=Max( Ref(CLOSE,-1), HIGH );
TrueRangeLow:=Min( Ref(CLOSE,-1), LOW );
OBTR:=Cum(If(C > Ref(C,-1),C-TrueRangeLow, If(C < Ref(C,-1),C-TrueRangeHigh,0)));

ShortMA:= Input("ShortMA -",1,200,8);
LongMA:= Input("LongMA -",1,200,17);
SignalMA:= Input("SignalMA - ",1,200,9);
MACDOBTR:=Mov(OBTR,ShortMA,E) - Mov(OBTR,LongMA,E);
If(MACDOBTR>=Ref(MACDOBTR,-1),MACDOBTR,0);
If(MACDOBTR<Ref(MACDOBTR,-1),MACDOBTR,0);
Mov(Mov(MACDOBTR,ShortMA,E)-Mov(MACDOBTR,LongMA,E), SignalMA,E);


--- In equismetastock@xxxxxxxxxxxxxxx, Abdulhadi Eidaroos <hdeee@xxx> wrote:
>
> Thank you Rob and formulaprimer for your replys
> 
> It means that FML return only the default values.
> 
> OK, if I use the predefined fuctions comes with several pakages, e.g. Alghaomega pakage
> I can't use such pakages' functions in explorer and system tester!, It seems weak .
> 
> Am I right?
> 
> Thanks all.
> 
>  
> 
> 
> 
> ________________________________
> From: Rob Tinley <gazumped2@xxx>
> To: equismetastock@xxxxxxxxxxxxxxx
> Sent: Fri, March 19, 2010 5:55:14 AM
> Subject: Re: [EquisMetaStock Group] Change the setting of function
> 
>   
>  
> Any Exploration that uses a formula with input values will only use the default values.
> If you want to use different values then change the defaults prior to running the Explorer
>  
>  
> -- On Fri, 19/3/10, Abdulhadi Eidaroos <hdeee@xxxxxx com> wrote:
> 
> 
> >From: Abdulhadi Eidaroos <hdeee@xxxxxx com>
> >Subject: [EquisMetaStock Group] Change the setting of function
> >To: equismetastock@ yahoogroups. com
> >Received: Friday, 19 March, 2010, 6:24 AM
> >
> >
> >  
> >Hi 
> >I am looking for a way to change the setting of a function in Metastock, when I call it by fml
> >
> >For example, if I have Schaff Trend Cycle Oscillator v1.0, which is:
> >
> >
> >{ variables input } 
> >pdsCy:=Input( "Schaff cycle periods",2,252, 10); 
> >pdsSh:=Input( "Short periods",1,252, 5); 
> >pdsLg:=Input( "Long periods",2,2520, 8); 
> >  
> >{ Schaff Trend Cycle } 
> >MCD:=Wilders( MP(),pdsSh) -Wilders( MP(),pdsLg) ; 
> >ST:=(MCD-LLV( MCD,pdsCy) ) 
> >/(HHV(MCD,pdsCy) -LLV(MCD, pdsCy))*100; 
> >STC:=Wilders( ST,pdsCy/ 2); 
> >  
> >{ automatic trigger levels } 
> >pk:=Ref(STC, -1)>STC AND Ref(STC,-1)>Ref(STC,-2); 
> >pkVal:=If(pk, Ref(STC,- 1),0); 
> >pkAvg:=Cum(pkVal) /(Cum(pk) +.000001) ; 
> >pkAvg:=If(pkAvg= 0,100,pkAvg) ; 
> >tr:=Ref(STC, -1); 
> >trVal:=If(tr, Ref(STC,- 1),0); 
> >trAvg:=Cum(trVal) /(Cum(tr) +.000001) ; 
> >  
> >{ plot on own window } 
> >pkAvg;trAvg; STC 
> >  
> >The question is, how I can call the function by FML, and set the input variables. 
> >This is actually helpful in applying, explorer and system tester. 
> >  
> >So, please help! 
> > 
> >
> >
>




------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    equismetastock-digest@xxxxxxxxxxxxxxx 
    equismetastock-fullfeatured@xxxxxxxxxxxxxxx

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