in Search

Hello

Last post 09-10-2007, 20:28 by uasish. 6 replies.
Sort Posts: Previous Next
  •  08-12-2007, 7:50 24999

    Hello

    Hello, I am a newbie in this forum.

    I know the syntax of MetaStock functions and also have some practice with C++ (not a professional one, but as a hobby). Of course I have also experience using MetaStock.

    Now, I  am learning C# and I would like to practice my new skills with MetaStock, so I need to learn about the metastock files, how to call its functions, etc. Could someone give me some guidelines for the beginning (resources, references, etc.) ?.

    Thank you very much (and I wish you good trade :)).

  •  09-07-2007, 22:47 25266 in reply to 24999

    Re: Hello

     Do a Google search on "Metastock formula"  and you should get a bunch of  indicator formulas
     to play with.
    hxxp://www.metastocktools.com/index.html#tools
    hxxp://www.bertigianluca.it/finanza/metastock_formulas/metastock_formulas_index.htm
    hxxp://www.brave.net.au/ms/list_indicators.php
    are 3 examples.

  •  09-08-2007, 0:04 25271 in reply to 24999

    Re: Hello

    Hi nadero,

    Welcome to the Fourm.

    nadero:
    I know the syntax of MetaStock functions and also have some practice with C++ (not a professional one, but as a hobby). Of course I have also experience using MetaStock.

    Now, I  am learning C# and I would like to practice my new skills with MetaStock, so I need to learn about the metastock files, how to call its functions, etc. Could someone give me some guidelines for the beginning (resources, references, etc.) ?


    You can write functions inside MetaStock using the MetaStock Formula Language; which is a simple programming language designed for TRADERS to add functionality to their charts, exploratons etc.  The langauge has a very simple syntax and is virtually unbreakable, but the cost for this simolicity is that it is very limited in its functionality when compared to other programming languages.

    To extend beyond the limitations of the MetaStock Formula Langauge you will need the MetaStock Developers Kit which will allow you to write your own custom functions in C/C++, PowerBasic or Delphi Pascal, C# is not supported but some very savvy programmers have found ways around this and have started writing some MS stuff in C#.  IF you already have a C++ IDE then stick with this as it it will mean that you can have your functiosn up and running sooner than having to build workaround solutions in C#.  In these external functions you can write MSX (MetaStock External functions) or MSFL (MetaStock File Library funtions)(if you can get the MDK Write version, you can create your own MS data records too).  One thing you will have to consider is that the internal functions of MetaStock are not available to be called from external functions, so any functionality you want has to be coded from scratch, so the learning curve is steep from the very start.

    To start learning about writing MetaStock Formula Language indicators explorations etc, start by reading the MS Uses Manual that came with your version of MetaStock; read it cover to cover a few times, then download the free Equis Formula Primer from the downloads section.  Work through the exercises contained therein.  All during this phase of your learning, have alook through the indicators, explorations etc that are built-in to your version of MS, some are password protected but the others can be used as examples to demonstrate some of the required principles.

    To start learning how to write external functions and library functions, start by purchasing the MDK and then reading the MDK Users Manual a few times and look through the example files very carefully.  It wont make much sense at the start (or maybe it will?) but eventually you will get better by practicing writing some simple functions.

    If ever you get stuck, you can always post your best attempt of your code here at the Forum, along with a full explanation of what you are trying to achieve and a full explanation of what is going wrong, and any relevant error messages, and I am sure someone will promptly assist.


    Hope this helps.

    wabbit Big Smile [:D]


    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status : wabbit.com.au SkyPE online status
    My SkyPE account : wabbit.com.au

  •  09-09-2007, 14:02 25282 in reply to 25271

    Re: Hello

    wabbit:
    One thing you will have to consider is that the internal functions of MetaStock are not available to be called from external functions, so any functionality you want has to be coded from scratch, so the learning curve is steep from the very start.


    That strikes me as quite odd . . . you too?


    When you see that in order to produce, you need to obtain permission from men who produce nothing - when you see that money is flowing to those who deal, not in goods, but in favors - when you see that men get richer by graft and by pull than by work, and your laws don't protect you against them, but protect them against you - when you see corruption being rewarded and honesty becoming a self-sacrifice - you may know that your society is doomed. - Ayn Rand
  •  09-09-2007, 18:58 25285 in reply to 25282

    Re: Hello

    PTJim:
    wabbit:
    One thing you will have to consider is that the internal functions of MetaStock are not available to be called from external functions, so any functionality you want has to be coded from scratch, so the learning curve is steep from the very start.


    That strikes me as quite odd . . . you too?


    Not really.  MetaStock allows the external function to have access to the MS data structure by reference, so now all of the data for the current open chart can be processed externally.  To call the MS functions from the external function would mean having to make calls back to MS, then re-receive the data values (for which no structure currently exists) and then the external function would have to send back the results of its own computations to MS for display.  If MS formula calls were allowed, I could see the possibility of either crashing MS or seriously corrupting the chart data; so it is much more simple and stable to prevent the coder from having access and forcing them to rewrite the functions themselves.

    It doesn't mean the required information cannot be sent to the external call as an argument value; if the exernal code requires the 200 bar EMA, just send this data as part of the external function call.


    Hope this helps.

    wabbit Big Smile [:D]


    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status : wabbit.com.au SkyPE online status
    My SkyPE account : wabbit.com.au

  •  09-10-2007, 14:51 25298 in reply to 25285

    thanks

    Thank you for your kindly answers.

    By the way I would like to know in wich files are estored simbols (horizontal lines, vertical lines, fibonacci arcs, etc.) and also to know wich format they have. I would like make my first program to modify those simbols.

    Thanks again.

  •  09-10-2007, 20:28 25303 in reply to 25285

    Re: Hello

    Wabbit,

    Having no knowledge in computer language ,i would like to get a confirmation from you;

    1) TradeSim uses this feature of Mark Pyle's GV / Roy's Equity Curve ?

    If so,why then the Back Testing cant be improved in MS.

    Asish

View as RSS news feed in XML