Hi all,
attached is the new version of the indicator;
it now draws "Fib levels" for up to 9 TP targets on each side of the CZ Breakout areas;
When a TP input is >=10, it is considered as FIXED PIPs, <10 is a factor of the size of the Breakout area (CZ box+bufferpips);
0 will not draw that TP level;
The first 5 TP default levels are standard fib extensions, as detailed by Mer earlier:
extern double TP1 = 1.000;
extern double TP2 = 1.618;
extern double TP3 = 2.618;
extern double TP4 = 4.236;
extern double TP5 = 6.854;
The other ones TP6 to TP9 are "spare" (0 so not drawn)
You can also change the color of the TP levels (TPLevelColor).
Set it to "None" to hide the Fib levels.
The Fib lines will be adjusted to the continuation lines every 10 bars;
This is a limitation of MT4 Fib objects, which draws the Fib levels with a length that is 10 times the duration between the start and end time parameters.
The Fib lines will therefore not necessarily end exactly when a new box forms, but possibly a few bars earlier.
I still have the Box count (and probably the total and avg pips) wrong, and i cannot figure out why...
There is something wrong with what "ObjectsTotal()" returns, and i cannot explain why, except an mt4 bug.
The "objects list" window does show all drawn objects, however ObjectsTotal() won't give the expected result.
Therefore the count loop misses a good round of the existing objects!
Any help from coders welcome!
Sq
attached is the new version of the indicator;
it now draws "Fib levels" for up to 9 TP targets on each side of the CZ Breakout areas;
When a TP input is >=10, it is considered as FIXED PIPs, <10 is a factor of the size of the Breakout area (CZ box+bufferpips);
0 will not draw that TP level;
The first 5 TP default levels are standard fib extensions, as detailed by Mer earlier:
extern double TP1 = 1.000;
extern double TP2 = 1.618;
extern double TP3 = 2.618;
extern double TP4 = 4.236;
extern double TP5 = 6.854;
The other ones TP6 to TP9 are "spare" (0 so not drawn)
You can also change the color of the TP levels (TPLevelColor).
Set it to "None" to hide the Fib levels.
The Fib lines will be adjusted to the continuation lines every 10 bars;
This is a limitation of MT4 Fib objects, which draws the Fib levels with a length that is 10 times the duration between the start and end time parameters.
The Fib lines will therefore not necessarily end exactly when a new box forms, but possibly a few bars earlier.
I still have the Box count (and probably the total and avg pips) wrong, and i cannot figure out why...
There is something wrong with what "ObjectsTotal()" returns, and i cannot explain why, except an mt4 bug.
The "objects list" window does show all drawn objects, however ObjectsTotal() won't give the expected result.
Therefore the count loop misses a good round of the existing objects!
Any help from coders welcome!
Sq
Attached File(s)
sqDynamicBreakoutBox.mq4
26 KB
|
1,343 downloads