in Search

problem in getting Daily data when using Minutes data.....

Last post 03-16-2009, 8:52 by wabbit. 1 replies.
Sort Posts: Previous Next
  •  03-15-2009, 5:39 29185

    problem in getting Daily data when using Minutes data.....

    when I use the minutes data and wanna get the daily value from other security, I use the following script:

    Ddata := (Security("C:\MetaStock Data\data\xxxx",Ref(C,-1)));
    if (H<Ddata,1,0)
    <----this H is for Minutes bar..~

    it prompt me a error like that:

    "Error retrieving data for Security() function.  No security with a compatible periodicity found in folder Path C:\MetaStock Data\data\xxxx"

    I use MetaStock Pro in fact....

    how can I fix this??......

    Many thx!!!!
  •  03-16-2009, 8:52 29192 in reply to 29185

    Re: problem in getting Daily data when using Minutes data.....

    When you use the Security() function, MS will look for the security data with the same time frame as the open chart.  If you're looking at a 1 min chart, MS will look for 1min data in the security nominated.

    If you want to combine time periods, you can use Roy Larsen's codes (available from his website: http://www.metastocktips.co.nz/ ) or some time compression functions are available in various MS add-ins (the exact list doesn't spring to mind right now)


    Hope this helps.

    wabbit Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

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

View as RSS news feed in XML