in Search

IfNotDefined vs. Extend functions

Last post 04-01-2008, 7:50 by btconnolly. 2 replies.
Sort Posts: Previous Next
  •  03-31-2008, 14:51 26807

    IfNotDefined vs. Extend functions

    My formula has several conditions that would trigger a Buy or a Sell in a System Test.  Signals for some stocks take a long time after the first day of data, which is not simple time dependency as when Mov(C,60,S) is undefined for 59 days.  My Declining-Stock-Buy-Condition, for example, may rarely appear in a bullish stock and it seems that no Buy signals generate until Metastock 'sees' ALL potential Buy and Sell conditions as True once in a stock before it will 'initialize' the formula and generate its very first Buy or Sell.

    In Roy's post on 'Metastock Formula Limitations', he mentioned that, " ...Equis came up with a fix for the deficient IsDefined() function and just forgot to tell anybody about it":

    ExtFml("BBS.IfNotDefined",Mov(C,60,S),0);

    Roy described that this generates a '0' or False in the 59 bars when this formula is undefined.  Therefore other True elements of a formula are not held up from becoming initialized.  Is this .dll available from Equis and usable in MSV10.0?   If so, how do I load and use it?  How does this differ from the 'Extend' .dll that Jose is offering?

    For example,  would I have to use this ExtFml for each of the multiple elements within the 3 conditions for a Buy and 3 conditions for a Sell?   Many thanks for your help.

  •  03-31-2008, 20:51 26813 in reply to 26807

    Re: IfNotDefined vs. Extend functions

    bt,

    The BBS is part of the Bollinger Band Add-on.

    I am not aware of an Extend DLL that Roy is offering. I believe you can find it at traders consortium.

     

    Preston

     



    equismetastock@yahoogroups.com
  •  04-01-2008, 7:50 26820 in reply to 26813

    Re: IfNotDefined vs. Extend functions

    Thanks Preston -  Looks like i will have to explore the Extend.dll option
View as RSS news feed in XML