Hello everybody,
I am a beginner at coding. I need some help.
I am trying to create a custom indicator.
I figured out how to place the dots, now I battle to get the fuzzy logic right.
The dots are my idea of failed swing levels or exhaustion points.
What I would like to achieve is placing a down arrow if the upper dots are lower than the previous set of upper dots.
For a up arrow I need to see the lower dots to be higher than the previous set of dots.
This is not based on fractals.
Basically I am comparing current set of dots with a previous set of dots.
I ended up with array out of range errors. I think I fixed it, not sure.
I also try to print the current and last two set of dots to the screen.
I definitely have a problem, even the NormalizeDouble function does not seem to work like it suppose to.
Just sorted out the print to screen format problem.
Had to use the %.4f in the StringFormat function.
Thanks.
I am a beginner at coding. I need some help.
I am trying to create a custom indicator.
I figured out how to place the dots, now I battle to get the fuzzy logic right.
The dots are my idea of failed swing levels or exhaustion points.
What I would like to achieve is placing a down arrow if the upper dots are lower than the previous set of upper dots.
For a up arrow I need to see the lower dots to be higher than the previous set of dots.
This is not based on fractals.
Basically I am comparing current set of dots with a previous set of dots.
I ended up with array out of range errors. I think I fixed it, not sure.
Just sorted out the print to screen format problem.
Had to use the %.4f in the StringFormat function.
Thanks.
Attached File(s)
ExhaustionPointsTestProgram.mq4
18 KB
|
540 downloads
One can live in the shadow of an idea without grasping it.