count arrows on chart
-
good day, please help me create an ea that will will count the arrows displayed on the chart and visualize the results as follows,
e.g up arrows = 53,
down arrows =21 -
@tsheppo Are you using a custom indicator to create those arrows or is your project doing it?
-
@l-andorrà i'll be using a custom indicator
-
@tsheppo Then it depends on how that indicator stores that information, as buffers or objects. Can you please share it in mq4 version to take a look?
-
@l-andorrà 0_1602106379365_AFI Stochastic.mq4
there you go, i think it uses buffers
-
@tsheppo Ok. The indicator can be correctly identified by fxDReema. Do you want to count arrows from the moment you begin to use the EA onwards or counting them back?
-
counting them back, as history reference
-
@tsheppo Then you need a loop. I'm afraid this is not my field of expertise. Can mr. roar tale a look at this case, please?
-
@roar , please help
-
@tsheppo why are you counting the arrows? Surely the number is larger if the indicator has been running for 1 year than 1 day, that kind of thing shouldnt affect your strategy.
The system would have some sense if we set a maximum age for the arrows, like 100 candles, but fxdreema doesnt seem to allow checking the age.
I could spend hours and hours of my time to solve this for you, but I dont think the final result would be actually useful to anyone, not even you. I'm sorry.
-
@roar, what i actually want to do is count the arrows each day from 00:00 to 23:00 and compare the arrow direction to the next candle direction so that i can see the win ratio of the binary strategy i'm working on.