Disliked{quote} Hello pips4life, I have explained my query on an image attached. Please can you take a look? Thank you Kind Regards, Moti {image}Ignored
* Explore what each variable does by just changing it and try to observe what happens.
* If you have the source code, even if you're not a programmer, just explore it. You don't have to make any changes, though you might prefer different defaults, which is quite easy to do. Most non-programmers are intimidated to even try, but this is unwarranted. If you want to make changes, then so long as you keep a backup of the original file, you can always restore the original. If you're not making any changes, you have nothing to fear.
To explore the source code if you have it:
- In the MT4 Navigator, find this Indicator 'P4L BoxFibo'. Right-Mouse-click over it and choose "Modify"
It opens the source file in the MetaEditor. My indicators usually have lots of comments; some don't.
- Use the Search->Find command to look for keywords, such as the parameter name you want more info on.
You asked, are the time-window parameters ok? You see that the StartTime matches (00:00), but you notice that while EndTime is 09:00, you see that the window has ended the rectangle at the H1 bar it marks as 08:00.
In the source, or in the "About" tab when you add the indicator to your chart, I have a basic description with the first line:
"This indicator draws boxes around *completed* time-windows from: StartTime(inclusive) to EndTime(exclusive)"
The meaning of "EndTime(exclusive)" is that the time window goes up to, but NOT including, the EndTime. It says 09:00. On an H1 chart, the bar it marks at 08:00 is a bar with all the ticks from 08:00:00 to 08:59:59. The time-window includes all that data but is exclusive of the actual 09:00:00 bar Open.
If you change to an M1 chart, you will see that the rectangle ends at 08:59 (and the rectangle does include the High/Low data for that 08:59 M1 bar). By appearance, the rectangle always ends 1-bar shy of the EndTime target, which is 1 second before that EndTime... always 08:59:59.
You asked about: SupressIndicatorForTFsAbove_minutes = 60;
(I see now that I misspelled 'Suppress')
The source code has further comments about that also. This indicator is intended for H1 charts and below, which are 60-minute charts. That's why the default is to disable it when using a TF *above* 60 minutes.
It is barely appropriate for H4, so if you really wanted it on an H4 chart, you could change this variable (but the Fibos are going to have lines that are too wide, so it's not going to look good). (A feature of the way the button is implemented, is that you can change to an H4 chart, and although it's suppressed because H4 is above 60 minutes, then toggle the button Off, then On! You will see the Boxes & Fibos on your H4 chart. You will see the Fibo lines are going to be a bit too long to the right.
You asked about:
ShiftFiboTime2By_seconds = 3600.
The source code has comments:
Line 42: New var 'ShiftFiboTime2By_seconds'(3600) affects how far to the right the Fibo lines extend. 3600 is fairly consistent across <= H1 timeframes.
Line 85: // ShiftFiboTime2By_seconds: The larger the number, the farther to the right the Fibo lines extend (depending upon TimeFrame). 3600 is consistent across <=H1
I admit, the variable name is not that clear. What I observed in previous versions is that some versions used "2200", some "2500", and I thought that if this value is something that people want to control in the code, I will make it a variable that a user can easily change. 3600 seconds (1 hour) is the most consistent across timeframes from H1 down to M1, so that's what I made as the default. I suggest you experiment on a lower TF chart like M5 or M1, and notice how a smaller number (e.g. 2200) will shorten how far the Fibo lines extend to the right of the Box.
3