Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
problem in getting Daily data when using Minutes data.....
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/3/2009(UTC) Posts: 2
|
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\[censored]x",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\[censored]x"
I use MetaStock Pro in fact....
how can I fix this??......
Many thx!!!!
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
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/
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
problem in getting Daily data when using Minutes data.....
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.