For those of you who follow Peter Reznicek on Shadowtrader broadcast, you should know how to setup the market internals. In case you don't, here's the video to do that.
Before thinkscript was available on the TOS platform, you can only see the Advance/Decline line seperately and try to guess what the net number is. Now, you can just do a very simple script to get the net A/D line to show up on the graph.
For the NYSE AD line, pull up a graph of $ADVN. Edit the studies and create a new study. In the text area, put this in:
Plot AdvDecLine = Close - Close("$DECN");
For the Nasdaq AD line, pull up a graph of $ADVN/Q. Edit the studies and create a new study. In the text area, put this in:
Plot AdvDecLine = Close - Close("$DECN/Q");
Subscribe to:
Post Comments (Atom)
4 comments:
VERY GOOD ! WE NEED MORE STUFF PLEASE
Not much here yet.
Looking for the code to the Darvas Box study. Seems inconsistent with his book. If you have the code for toscharts Darvas Box Study, please post it so I can break down the logic.
Thanks.
raig
I feel like to add a color. Give it a try and let me know if you like it:
Plot AdvDecLine = Close - close("$DECN");
plot ZeroLine = 2;
plot Diff = AdvDecLine;
input length = 21;
plot Avg = Average (Diff,length);
diff.AssignValueColor(if Diff > 0 then Color.UPTICK else Color.DOWNTICK);
Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Is there any way to calculate the A/D of a specific sector w/ thinkscript?
Post a Comment