Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 4/30/2005(UTC) Posts: 13
|
I am new to Metastock and I could use some coding help. I am building an indicator that starts out with the following:
1 I want to take the volume of the S&P and calculate a 50 SMA. Then I want to take (Current Volume / 50 SMA Volume*10).
2 Next I want to take the same process as above and run it for the OEX Volume.
This would be a good starting point for me to figure out the rest.... Thanks for the help!
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
I will assume that you reuters datalink as your vendor and that you are using MetaStock 9.0
*** I have not tested this ***
{for SP500}
DA:=Security(.SPX,Volume);
DA/(Mov(DA,50,S)*10)
For the other one just swap out symbols.
I hope that is what you wanted :)
Patrick
|
|
|
|
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.