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

Notification

Icon
Error

Options
Go to last post Go to first unread
hayseed  
#1 Posted : Tuesday, August 1, 2006 8:49:09 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

henry turned us on to sergei, a russian dude, with a neat dll.... that dll contains both 'write to' and 'read from' functions .....

ExtFml( "msx_ksr.WriteData", DataArray[], "FileName")

ExtFml( "msx_ksr.ReadData", "FileName")

sergei's site gives indepth and easy to follow instructions.....

as an example the write function writes the data of our choosing to a file of our choosing,

a:= Security("C:\MetaStock Data\dow 30\spy", Mov(C,10,S)) ;

ExtFml( "msx_ksr.WriteData", a, "C:\russians\spy" );

we choose the location to write, as seen above I just chose 'C:\russians\spy'…. if your trying to plot the daily macd on an intra day chart something like 'C:\russians\spymacd' would be appropriate just to keep things easy…..

and the read data compliment simply reads the data previously written....

ExtFml( "msx_ksr.ReadData", "C:\russians\spy" );

the read function needs the file you want plotted…. such as 'C:\russians\spy' or 'C:\russians\spymacd' and so on…..

this allows us to plot daily indicators on intraday charts or of course weekly indicators on daily charts.... most any indicator would work as well.....

eric had a common question about creating indexes.... patricks dll address's that, and also there is always the security data function..... just sum up the components.... if the indicator character limit becomes a problem, savings can be gained in reducing the local data folder path..... it does not have to be standard issue.... so rather than the normal folder structure you could put all of your first index components in a folder called simply '1'..... try use numbers instead of single letters....single letters can be misconstrued by computers.....

if take for instance, Security("C:\MetaStock Data\reuters symbols Indices & Indicators\Us & Canadian Indices\.ihx",C ) is hogging up too many characters it can be slimmed down to security("c:\5\1\.ihx",c) ..... where MetaStock Data is replaced by 5, reuters symbols Indices & Indicators\Us & Canadian Indices is replaced by 1 and .ihx is , well thats just the symbol for lean hogs.....

so summing it up the folder path for .ihx, the symbol for lean hogs, can be

Security("C:\MetaStock Data\reuters symbols Indices & Indicators\Us & Canadian Indices\.ihx",C )

or

security("c:\5\1\.ihx",c)

the character savings is obvious but who the heck wants a skinny hog anyway...... a metastock oxymoron thats who.........h

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.