“MACZVWAP-modified” conversion request from Tradingview
Forums › ProRealTime English forum › ProBuilder support › “MACZVWAP-modified” conversion request from Tradingview
- This topic has 6 replies, 5 voices, and was last updated 2 years ago by supertiti.
-
-
05/09/2022 at 10:01 AM #192931
Dear All,
I just found this indicator on Tradingview code (Pinescript) that I found interesting:
https://www.tradingview.com/script/dPYnTwxq-MACZVWAP-modified/
I would be interested in evaluating the outcome of this indicator on Prorealtime
I attached the following files:
- file with the screenshot from Tradingview in which I applied this indicator to PPL Corporation stock (daily)
- file with the Pinescript script
I hope that I correctly understood the forum rules and I did not mess up anything with this request, since it’s the first time I write a request on this forum.
Thanks to anyone would like to take the chance of having a look to this request
Best regards
Lorenzo
05/10/2022 at 7:42 AM #192965So that’s the MACD of the Z-score of a VWAP and with a Laguerre smoothing. I will try to look at that today. Thanks a lot for the nicely formatted code translation query! (would be better with a short description, but the original author doesn’t give any, so that’s ok for this time 😆 )
05/10/2022 at 9:26 AM #19297705/10/2022 at 10:18 PM #193017Looks to me a bit like 2 oscillators overlapping. Black line and the histogram.
After a rebuild into a strategy, can you measure how the success is when the two oscillators are furthest apart?
The same question arises with me also with, Didi indicator, have it there with abs (DDL-DDS) tried. With moderate success after optimization.
And here and or again there in a flawless programming?05/11/2022 at 9:26 AM #193037This indicator seems interesting a priori, everyone will put the values as they please, personally I set faster parameters.
Would it be possible to have the same code with the signal on the price graph
Thanks, have a good day
08/10/2022 at 7:41 AM #19884708/10/2022 at 12:39 PM #198875Bonjour,
J’ai fai ça, j’ai mis une moyenne pour que ce soit plus lisible ce qui lisse le signal évidemment
bons tradesMACZVWAP on chart1234567891011121314151617181920212223242526272829303132333435363738394041424344454647//MACZVWAP on chart indicator 10.08.2022 modifié//Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge//converted from pinescript// --- settingsfastLength = 12 //MACD Fast MA LengthslowLength = 25 //MACD Slow MA LengthsignalLength = 9 //MACD Signal Lengthlengthz = 20 //Z-VWAP LengthlengthStdev = 25 //Stdev LengthA = 1.0 //MACZ constant AB = 1.0 //MACZ constant BuseLag = 1 //Apply Laguerre Smoothing (0=false ; 1=true)gamma = 0.02 //Laguerre Gamma// p = 10// m = exponentielle// --- end of settingssource=customclosemean = summation[lengthz](volume*close)/summation[lengthz](volume)vwapsd = sqrt(average[lengthz](pow(close-mean, 2)))zscore = (close-mean)/vwapsdfastMA = average[fastLength](source)slowMA = average[slowLength](source)imacd = fastMA - slowMAmaczt=zscore*A+ imacd/std[lengthStdev](source)*Bif uselag and maczt>0 thens = macztg = gammal0 = (1 - g)*s+g*(l0[1])l1 = -g*l0+(l0[1])+g*(l1[1])l2 = -g*l1+(l1[1])+g*(l2[1])l3 = -g*l2+(l2[1])+g*(l3[1])macz=(l0 + 2*l1 + 2*l2 + l3)/6elsemacz=macztendif/////////////////////////////////////////////////////////signal = ( average[signalLength](macz) /100 ) + closeMA = average [p,m]( signal )/////////////////////////////////////////////////////////hist=macz-signalreturn signal style(line,3) as "signal MACZVWAP" , MA as " MA "1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on