logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
metaken  
#1 Posted : Sunday, March 15, 2009 5:39:48 AM(UTC)
metaken

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!!!!
wabbit  
#2 Posted : Monday, March 16, 2009 8:52:23 AM(UTC)
wabbit

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)
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.