Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
A custom indicator that plots the number of stocks above 50 DMA
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/15/2013(UTC) Posts: 1
|
Hi, I was wondering can we write a custom indicator which plots the number of stocks above there 50 day moving average as a percentage of total number of stocks in the given stock exchange on a daily basis . And plots it as a graph between 0 and 100% everyday. (calculations occur automatically when ever the function is called). Thanks for reading my query. and replying to it. Rgds, Anirban
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Unverified Users Joined: 7/18/2013(UTC) Posts: 2 Location: Thailand
|
Method1) Explorer and Excel
Method2) Use Security,Fml Function (Not work ,long time to do&update) Assume: Stock exchange has 3stocks. Indicator: S1:=Security("stock1",C); S2:=Security("stock2",C); S3:=Security("stock3",C); Indy:=((S1>mov(S1,50,E))+(S2>mov(S2,50,E))+(S3>mov(S3,50,E)))/3*100; Indy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
It can't be done without excell!
The code provided is flawed,you can't do that with the dow 30, nasdaq 100, or the sp500
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
A custom indicator that plots the number of stocks above 50 DMA
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.