PRC_HPT Heikin Ashi Smoothed change
Forums › ProRealTime English forum › ProBuilder support › PRC_HPT Heikin Ashi Smoothed change
- This topic has 6 replies, 3 voices, and was last updated 5 years ago by Razz.
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
01/11/2020 at 2:20 PM #1164261234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253//PRC_HPT Heikin Ashi Smoothed | indicator//25.04.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge//translated from MT4 indicator code//---settings//MaPeriod=6//MaPeriod2=2//---end of settingsonce maOpen=Openonce maClose=Closeonce maLow=Lowonce maHigh=Highif barindex>0 thenmaOpen=(maOpen[1]*(MAperiod-1)+Open)/MAPeriodmaClose=(maClose[1]*(MAperiod-1)+Close)/MAPeriodmaLow=(maLow[1]*(MAperiod-1)+Low)/MAPeriodmaHigh=(maHigh[1]*(MAperiod-1)+High)/MAPeriodhaOpen=(ExtMapBuffer5[1]+ExtMapBuffer6[1])/2haClose=(maOpen+maHigh+maLow+maClose)/4haHigh=Max(maHigh, Max(haOpen, haClose))haLow=Min(maLow, Min(haOpen, haClose))if (haOpen<haClose) then //0,191,255r=0g=139b=0ExtMapBuffer7=haLowExtMapBuffer8=haHighelser=255g=10b=0ExtMapBuffer7=haHighExtMapBuffer8=haLowendifExtMapBuffer5=haOpenExtMapBuffer6=haCloseExtMapBuffer1=weightedaverage[MAperiod2](ExtMapBuffer7)ExtMapBuffer2=weightedaverage[MAperiod2](ExtMapBuffer8)ExtMapBuffer3=weightedaverage[MAperiod2](ExtMapBuffer5)ExtMapBuffer4=weightedaverage[MAperiod2](ExtMapBuffer6)endifDRAWCANDLE(ExtMapBuffer3,ExtMapBuffer2,ExtMapBuffer1,ExtMapBuffer4) coloured(r,g,b)short = ExtMapBuffer7[1]>ExtMapBuffer8[1] and ExtMapBuffer7[2]<ExtMapBuffer8[2] and ExtMapBuffer7[0]>ExtMapBuffer8[0]long = ExtMapBuffer7[1]<ExtMapBuffer8[1] and ExtMapBuffer7[2]>ExtMapBuffer8[2] and ExtMapBuffer7[0]<ExtMapBuffer8[0]RETURN long as "long signal", short as "short signal"
I want the indicator to only be displayed as a histogram, for example. green candles +2 red candles -2. Unfortunately I didn’t get it changed, can someone help me?
Thank you01/11/2020 at 2:31 PM #116427Try adding replacing lines 52 and 53 with:
1234567x = 0Is Long thenx = 2elsif Short thenx = -2EndifReturn xthen use properties to set it as a histogram.
01/11/2020 at 2:33 PM #116428Also comment out line 48 and all references to unused variables.
01/11/2020 at 5:06 PM #11643801/11/2020 at 5:14 PM #11644001/11/2020 at 5:21 PM #11644501/11/2020 at 5:28 PM #116447 -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
Find exclusive trading pro-tools on
Similar topics: