Indicator plots candlesticks of the desired timeframe (Monthly, Weekly, Daily) on the price chart.
Please download the attached itf file to get all the functionalities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
///////////////////////////////////// Var graph ///////////////////////////////////// v = 0 r = 0 ///////////////////////////////////////////////////////////////////////////////////////// if Mth then if day[1]>day then mhh = Highest[BarIndex - lastMonthBarIndex](High)[1] mll = Lowest[BarIndex - lastMonthBarIndex](Low)[1] lastMonthBarIndex = BarIndex mstartbar = barindex mo = dopen(BarIndex - lastMonthBarIndex) mc = dclose(1) mbmid = ((barindex-1)+mstartbar[1])/2 if mo[1]<mc then v=200 elsif mo[1]>mc then r=250 else r=250 v=200 endif if AlphaM>255 then a = 255 elsif AlphaM<0 then a = 0 else a = AlphaM endif DRAWRECTANGLE(mstartbar[1],mo[1],barindex-1,mc)coloured(r,v,0,a)style(line,3) DRAWSEGMENT(mbmid, max(mo[1],mc), mbmid, mhh)coloured(r,v,0,a)style(line,3) DRAWSEGMENT(mbmid, min(mo[1],mc), mbmid, mll)coloured(r,v,0,a)style(line,3) endif endif ///////////////////////////////////////////////////////////////////////////////////////// if wk then if DayOfWeek[1] > DayOfWeek then whh = Highest[BarIndex - wlastWeekBarIndex](High)[1] wll = Lowest[BarIndex - wlastWeekBarIndex](Low)[1] wlastWeekBarIndex = BarIndex wstartbar = barindex wo = dopen(BarIndex - wlastWeekBarIndex) wc = dclose(1) wbmid = ((barindex-1)+wstartbar[1])/2 if wo[1]<wc then v=200 r=0 elsif wo[1]>wc then v=0 r=250 else r=250 v=200 endif if AlphaW>255 then a = 255 elsif AlphaW<0 then a = 0 else a = AlphaW endif DRAWRECTANGLE(wstartbar[1],wo[1],barindex-1,wc)coloured(r,v,0,a)style(line,2) DRAWSEGMENT(wbmid, max(wo[1],wc), wbmid, whh)coloured(r,v,0,a)style(line,2) DRAWSEGMENT(wbmid, min(wo[1],wc), wbmid, wll)coloured(r,v,0,a)style(line,2) endif Endif ///////////////////////////////////////////////////////////////////////////////////////// IF Dy then if intradaybarindex[1]>intradaybarindex then jhh = Highest[BarIndex - lastdaybarindex](High)[1] jll = Lowest[BarIndex - lastdaybarindex](Low)[1] lastdaybarindex = BarIndex jstartbar = barindex jo = dopen(BarIndex - lastdaybarindex) jc = dclose(1) jbmid = ((barindex-1)+jstartbar[1])/2 if jo[1]<jc then v=200 elsif jo[1]>jc then r=250 else r=250 v=200 endif if AlphaD>255 then a = 255 elsif AlphaD<0 then a = 0 else a = AlphaD endif DRAWRECTANGLE(jstartbar[1],jo[1],barindex-1,jc)coloured(r,v,0,a)style(line,4) DRAWSEGMENT(jbmid, max(jo[1],jc), jbmid, jhh)coloured(r,v,0,a)style(line,4) DRAWSEGMENT(jbmid, min(jo[1],jc), jbmid, jll)coloured(r,v,0,a)style(line,4) endif endif ///////////////////////////////////////////////////////////////////////////////////////// return |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
hi, great job !!
Can you do it with heiken ashi candles? Thanks
Une nouvelle version a été postée. Et devrait arriver bientôt. Elle propose les 2 types de chandelier. Traditionnel et Heiken ashi.
Sorry… I have downloaded and imported gph-candle-mwd.itf file but I don’t see any boxes… it doesn’t work… Please help
Vous pouvez choisir L’unité de temps supérieur à votre graphique partir du menu de configuration de l’indicateur.
Your indicator is what I was looking for. Thank you!
However, an error is displayed by the “style” function on line 30, etc., and this cannot be used.
I tried to improve it, but I don’t know, so please help me.
remove STYLE if you are using PRT version prior to V11
On est bien d accord que l indicateur repeint ….
i DON4T UNDERSTAND THE USE OF THIS INDICATOR?
Display other timeframe candlesticks on the current chart! 🙂
On est bien d accord qu il Repeint ……
naturellement si la bougie du timeframe supérieur n’est pas terminé
Does this show 5min time frame?