One thing I miss from Tradestation is a colored bar that reflects the internal volume. I use tick charts for day-trading but (at least in TS) you can also keep track of the volume of contracts up and down within that bar. Volume is not the same as ticks in that one tick might trade 1 contract and the next 100.
In TS when you load a symbol and choose Ticks, there is an additional option to base volume on either ticks or volume. I am not sure if this exists in Ninja. If it doesn't, then forget about it. But I suspect it does since there are volume indicators.
I have looked through the Ninja script help area but don't have a clue how to code this myself as simple as it is. Can't even figure out how to color a bar! However, once I see the code, that will help.
I have 2 types in this one but really I ended up using the first one. If anyone would like to code that for me I would be grateful. Please forgive if it's already been done somewhere. I can't find it obviously.
Here is the TS code for this very simple Paintbar indicator:
{TickA PB by ASH}
inputs: Type(1),UpColor(yellow),DnColor( cyan) ;
variables: ColorLevel( 0), updown(0),avup(0),avdn(0),avupdown(0) ,upt(0),downt(0);
upt = upticks; downt = downticks;
updown = upticks-downticks;
avup = waverage(upt,3);
avdn = waverage(downt,3);
avupdown = waverage(upt-downt,3);
If Type = 1 then Begin
If updown>0 then Plotpaintbar(h,l,"Tk",upcolor)
else Plotpaintbar(h,l,"Tk",dncolor); End;
If Type = 2 then Begin
If avupdown > 0 then Plotpaintbar(h,l,"Tk",upcolor)
else Plotpaintbar(h,l,"Tk",dncolor); End;
End;
+++++++++++++++++++++
2. I notice an indicator that uses only 'range bars'. I can't find them in the help index and don't know what they are nor how to plot them whatever they are. But am curious! Would appreciate a little help there as well so I can explore them.
Comment