request: variation on wave volume chart
Forums › ProRealTime English forum › ProBuilder support › request: variation on wave volume chart
- This topic has 8 replies, 3 voices, and was last updated 6 years ago by Real Pro.
-
-
04/06/2018 at 3:39 AM #67379
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.
04/13/2018 at 8:56 AM #6824804/13/2018 at 7:23 PM #68309Sorry, 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).
1 user thanked author for this post.
04/14/2018 at 10:58 AM #6834104/14/2018 at 11:16 AM #6834204/14/2018 at 11:34 AM #68348Post 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.
1234567891011121314151617181920212223242526272829303132333435//PRC_CumulativeVolume ZigZag | indicator//17.02.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge// --- parameterspercentVariation = bzz = ZigZag[percentVariation](close)peak = zz<zz[1] and zz[1]>zz[2]tough = zz>zz[1] and zz[1]<zz[2]cumV = cumV+volumeif peak then//text = cumV/1000//drawtext("#text#K",barindex[1],cumV[1]+0.17*cumV[1],Dialog,Bold,12) coloured(0,200,0)cumV = Volumecolor = -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 = Volumecolor = 1//previousX = barindex[1]//previousY = cumV[1]+0.20*cumV[1]endifreturn zz coloured by color04/14/2018 at 12:16 PM #68350The 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.
04/14/2018 at 12:18 PM #6835204/14/2018 at 1:22 PM #68353 -
AuthorPosts
Find exclusive trading pro-tools on