Is this the place to request coding?
https://www.jigsawtrading.com/2014/12/11/swing-charts-cumulative-delta-ninjatrader/
This is the display I’d like to emulate. Very similar to codes already avaliable in the library, but the display is different (overlaid on price chart with swing volume and price excursion displayed).
Hope you can help, Nicolas. Thanks.
Sorry, but I’m quite busy and still until the end of the Month I think..
Your request seems easy to do though, you can copy/paste the code of the Wave volume indicator from the library and adjust the x,y coordinates to display on the price chart (x coordinate should be the same, as it is barindex).
Thanks Nicolas. I’m trying but making a mess of it.
Anyone else like to help?
Post what code you have so far … makes it easier for any helpers as they don’t have to go looking via links etc.
Something may leap out as we look at the code?
Post what code you have so far … makes it easier for any helpers as they don’t have to go looking via links etc. Something may leap out as we look at the code?
Thanks GraHal,
Currently, this just plots Zigzag when applied to the price pane. Everything I change seems to mess it up.
I’d like to have the CumV reflected in the thickness of the zig line. Big CumV = thick line, small cumV = thin line. I think that would make it really easy to assess the market in a glance. Slightly different to the original request, but better in my view.
//PRC_CumulativeVolume ZigZag | indicator
//17.02.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- parameters
percentVariation = b
zz = ZigZag[percentVariation](close)
peak = zz<zz[1] and zz[1]>zz[2]
tough = zz>zz[1] and zz[1]<zz[2]
cumV = cumV+volume
if peak then
//text = cumV/1000
//drawtext("#text#K",barindex[1],cumV[1]+0.17*cumV[1],Dialog,Bold,12) coloured(0,200,0)
cumV = Volume
color = -1
//previousX = barindex[1]
//previousY = cumV[1]+0.20*cumV[1]
elsif tough then
//text = cumV/1000
//drawtext("#text#K",barindex[1],cumV[1]+0.23*cumV[1],Dialog,Bold,12) coloured(200,0,0)
cumV = Volume
color = 1
//previousX = barindex[1]
//previousY = cumV[1]+0.20*cumV[1]
endif
return zz coloured by color
The pseudocode would be something like:
T = line thickness
If cumV < 10 then T = 1
If cumV >10 and <20 then T = 2
If cumV >20 and <30 then T = 3
Plot zigzig with line thickness of T.
It looks great on a chart, but coding it is hard for me.
You got an example chart to post on here to temp the super-coders (not me) !!?? 🙂
I have it on Amibroker, but when I try it on PRT, the available line thicknesses won’t allow much of a difference in thickness. SO I’m glad you asked. I don’t think it will work.