Hi Experts,
I have traded for 4 years, but I'm still a novice at programming. I started learning how to write code a couple of days ago so that I can create my indicator for trading purposes. You can see the indicator (look at the image) which I am trying to create. Utilities of the indicator:
I have traded for 4 years, but I'm still a novice at programming. I started learning how to write code a couple of days ago so that I can create my indicator for trading purposes. You can see the indicator (look at the image) which I am trying to create. Utilities of the indicator:
- At a specific time in the day (I mean every day), it appears number 1 below Low of the bar at that time. You can see in the image, number 1 appears below the Low of the bar at 08:00. We can simply call it is Start Trading Hour. By the way, my main TF is M5.
- Then, it does not show a regular sequence of numbers 1, 2, 3, 4, 5,... It shows an even number (2, 4, 6, 8,...) sequence corresponding to the bars after bar number 1.
- After 12 bars, the number will change color because there is the time the bar on H1 closed. 12 bars on M5 = 1 bar on H1. So the color of numbers 12, 24, 36,... will be changed.
- It keeps going on until a specific time like 20:00 on that day (not yesterday or tomorrow). That is End Trading Hour. After 20:00, it won't appear any numbers.
- Tomorrow at the same time 08:00, again... repeat and repeat...
I know I have to ObjectCreate(...), OBJ_TEXT but the time and price... I don't know how to write that...
Thank you so much for helping me!