Friday, May 15, 2009

A Simple TICK subpanel







Do you need a FREE thinkscript for TICK that you can apply to a subpanel? Well here it is ladies and gents. Copy and Paste.


-------------------------------------------begin code

declare lower;

plot data = High("$tick");
Plot Data2 = Low ("$tick");
plot ZeroLine = 0;
plot up = 800;
plot down = -1000;
Plot Noise = 600;
Plot Noise2 = -600;
zeroline.setDefaultColor(color.blue);
Noise.setDefaultColor(color.yellow);
noise2.setDefaultColor(color.yellow);
up.setDefaultColor(color.uptick);
down.setDefaultColor(color.uptick);
data.AssignValueColor(if data >= 800 then Color.upTICK else Color.blue);
data.setLineWeight(2);
Data.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
data2.assignValueColor(if data2 <= -1000 then Color.downtick else Color.blue);
data2.setLineWeight(2);
Data2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
ZeroLine.SetDefaultColor(GetColor(0));

-------------------------------------------end code
blog comments powered by Disqus