Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/11/2012(UTC) Posts: 45
|
I had a Symbol name
CNXNIFTY M1 : CNXNIFTY M2 : CNXNIFTY M3 :
Now I want to create a Explorer which can SUM the VOLUME of this 3 SYMBOL......
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Kaushik
You can do this in the Explorer or in a custom indicator by using the Security() function three times, once for each security.
Here's
an example of what your exploration column or indicator might look
like. I'm assuming that you have MetaStock 11 or earlier and use local
data. If you're using MS 12 or online data then the syntax may be a
little different and you will need to refer to your MetaStock User
Manual.
{VolumeX3} M1V:=Security("C:\MetaStock Data\Sample\M1",V); M2V:=Security("C:\MetaStock Data\Sample\M2",V); M3V:=Security("C:\MetaStock Data\Sample\M3",V); M1V + M2V + M3V;
Having
the correct pathname for each securirity is critical for this code to
work. I strongly suggest that you first make an indicator using this
code as a starting point. Only when you have the indicator
working properly should you use the code in an exploration. Neither an
indicator nor an exploration will work if the security pathname is
incorrect in any way.
Roy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/11/2012(UTC) Posts: 45
|
Dear Roy...
As per your guidlines I try to plot the given formula in Metastock explorer... I change the Path as per the data stored in my pc...
My data is stored in D:\Meta data\con Meta data\
But I found the error given below
Security Name Reason for Rejection Location ABIRLANUVO-M1 Error in column A: Error retrieving data for Security() function. Folder does not exist Path: D:\Meta Data\Con New Data\ Symbol: M1 D:\Meta Data\Con_New_Data ABIRLANUVO-M2 Error in column A: Error retrieving data for Security() function. Folder does not exist Path: D:\Meta Data\Con New Data\ Symbol: M1 D:\Meta Data\Con_New_Data ABIRLANUVO-M3 Error in column A: Error retrieving data for Security() function. Folder does not exist Path: D:\Meta Data\Con New Data\ Symbol: M1 D:\Meta Data\Con_New_Data
Kindly help me to resolved it...
Thank You.. In advance...
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi kaushik
MetaStock is telling you that the pathname is incorrect (Folder does not exist), and I warned you that you would get an error in that situation. I also suggested that you should create an indicator that worked before trying to build the exploration.
"D:\Meta Data\Con_New_Data" and "D:\Meta data\con Meta data\" don't look identical to me, so I suggest that you fix that error first. In your post you say that the path is "D:\Meta data\con Meta data\", but the MetaStock error message is saying that the path provided is "D:\Meta data\con Meta data\". You must fix that discrepancy.
Roy
.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/11/2012(UTC) Posts: 45
|
Dear Roy,,
First of All .. I appreciate your Quick reply on the every query which I raise on this Forum.....
I try to fixed this error but .. same massage arrived..... Now I am Looking for the appropriate approach given by you... you had mantion that to BUILD AN INDICATOR... and Then SUM... I didnt get you what i am looking for...
I used a Local data based for creating chart on Metastock.... in that Deta base.. there are some symbol which contain the word M1 or M2 or M3.. say for Example....
CNXNifty-M1 CNXNifty-M2 CNXNifty-M3 Reliance- M1 Reliance- M2 Reliance- M3
Now I need a cumulative Volume of this three different symbol in exlporation .. so Kindly help me How can I get this by creating Indicator.......
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Also keep in mind that the symbol in the Security function must match exactly the symbol that is in the datasheet for the security you are trying to call.
|
|
|
|
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.