MT4 Fractal Box
Forums › ProRealTime English forum › ProBuilder support › MT4 Fractal Box
- This topic has 12 replies, 2 voices, and was last updated 6 years ago by Nicolas.
-
-
02/07/2018 at 12:27 PM #61854
Good Morning Nicolas,
Will you please be able to convert the attached MT4 indicator for me to use on PRT?
I currently use the Bill Williams Fractal ( attached) but find the MT4 indicator showing less but more reliable breaks.
Thanks in advance.Fractal-Box-V5.1_
1 user thanked author for this post.
02/08/2018 at 4:27 PM #62040I made the conversion of the indicator. You can find it in this post: Fractals Box
02/09/2018 at 2:23 AM #62090Thank you very much for your help. Your’e a genius!
How do I remove the vertical lines within the box? With the line in place only the body of a candle is visible.
Is it also possible to highlight value on Y-axis of the high and low fractal, and a way to change the colour of the box to suit individual preference.
PS: trying to covert a few traders to PRT…They are all used to the MT4 indicator!!!!
Cheers mate!
02/09/2018 at 3:31 PM #62136It is not possible to remove the vertical lines, sorry. You can play with alpha transparency (a setting I included in the manual parameter). To highlight the last fractals on the price axis, you can change the RETURN instruction like this:
1return hil, loland set them to invisible.
About the box color, you need to change the r,g,b variables in the code with the ones that suit your preference. RGB color table example: http://cloford.com/resources/colours/500col.htm
02/12/2018 at 5:31 AM #62320Hi Nicolas, Thank you and hope you had a great weekend!
I can set the “alpha” to 0 which removes the vertical lines. When I change the return instruction as above, I am not getting it on the price axis.
Pls see attached pic. What am I doing wrong??
Also couldn’t change colours of the box.
How do I modify to change colours in the settings and not have to modify indicator when changing colours?
02/12/2018 at 6:30 AM #6232802/12/2018 at 8:38 AM #62331I can set the “alpha” to 0 which removes the vertical lines.
Great! I was not expecting that 🙂
It is not possible to change the color fill of objects sorry..
To get the good fractals points values on the chart, change the code according to this one:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253//PRC_FractalsBox | indicator//08.02.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledgedefparam drawonlastbaronly=true// --- settings//LookBackBars = 100//MaxPipsBox = 0//MaxBoxPips = 15//alpha = 100// --- end of settings//fractalscp = 2if high[cp] >= highest[2*cp+1](high) thenhil = high[cp]hh = hilelsehil=0endifif low[cp] <= lowest[2*cp+1](low) thenlol=low[cp]ll = lolelselol=0endifif barindex>LookBackBars thenfor li28 = LookBackBars downto 0 doif(hil[li28]<>0) thenprice4=hil[li28]endifif(lol[li28]<>0) thenprice12=lol[li28]endifif(MaxPipsBox and price4-price12>MaxBoxPips*pipsize) thenr=240g=0b=0elser=0g=0b=255endifdrawrectangle(barindex[li28+cp],price4,barindex[li28+cp+1],price12) coloured(r,g,b,alpha)nextdrawrectangle(barindex[0],price4,barindex[li28+cp+1],price12) coloured(r,g,b,alpha)endifreturn hh,llI added 2 new variables named hh and ll.
1 user thanked author for this post.
02/13/2018 at 3:48 AM #62514Hi Nicolas,
Actually I prefer the fractal box of your 1st version. When I add the variables to get the Value listed on price Axis the box somewhat changes to the second version.
Hope this makes sense. Basically I want to use your original indicator and make changes to the return instructions to highlight price. Adding the variables hh,ll reverts back to your second version!
if I tried “return hil, lol” it then gives me vertical lines.
Thanks and sorry to be a pain!!!
02/13/2018 at 11:42 AM #62556I did not change anything about the boxes calculation. Bear in mind that the boxes are plotted in the past, just like Fractals. The new hh and ll variables are only the price levels of the last known fractals.
1 user thanked author for this post.
02/13/2018 at 12:28 PM #62573I used hh = hil and ll = lol and return hh,ll
The result is a different looking box. I have attached some pics.
I cant use return hil,lol ( then I get vertical lines )
PS: the new version lets me change colour of the box!!
I know your’e probably busy doing more important things but pls look into this when time permits.
Thanks Nicolas
02/13/2018 at 1:48 PM #62595You are not changing the color of the boxes but the fill color between the 2 fractals (hh and ll in this case) and that’s why you are thinking it’s a box (these 2 price levels are filled with a color between them).
Once again 🙂 it looks different because it draws the current fractals levels at the moment they are discovered and not in the past like in the original MT4 code. But they are the true fractals price levels, the levels you want to be written on the Y-axis, that’s why I added them.
02/14/2018 at 12:05 PM #6271602/14/2018 at 2:56 PM #62736 -
AuthorPosts
Find exclusive trading pro-tools on