[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 633

 
Time - 10 bars passed, line colour changed on the 11th, 10 more bars passed, it changed again
 
Wertyk:
By time - 10 bars have passed, at the 11th bar the line colour has changed, another 10 bars have passed and it has changed again

This should be done in MQL5, it's easier there. There is a special branch for this purpose. https://www.mql5.com/ru/job
 

Thank you for your attention.

I will try it in MT4 and see if it works

 

I dare to repeat my question as I did not get an answer the first time. can someone help me with my code?

questions and the code itself here https://www.mql5.com/ru/forum/111497/page630

thank you for your participation

 
olvol:

I dare to repeat my question as I did not get an answer the first time. can someone help me with my code?

questions and the code itself here https://www.mql5.com/ru/forum/111497/page630

thank you for your participation


Good code, competent. Maybe there's just a problem with the logic. Well, you have to think about it. I can advise you to take a look at Igor Kim's indicator, which draws sessions. It is available in CodeBase and on his site for free access.
 

Looking for an example of using wingdings font with OBJ_ARROW. The strange thing is that the font cannot be attached to arrows, only to a text object, but it seems to be attached here.

https://docs.mql4.com/ru/constants/wingdings

 

I think I found an example here https://www.mql5.com/ru/articles/1503/page2, but then it appears that there is an error in the documentation - the wingdings font can also work with OBJ_LABEL.

 
Vinin:
Good code, competent. Maybe there's just a problem with the logic. Well, you have to think about it. I can advise you to take a look at Igor Kim's indicator, which draws sessions. It is available in CodeBase and on his site for free access.
There is also a gip' s session indicator, perhaps the most advanced of those published.
 

Vinin:

Хороший код, грамотный. Может только с логикой проблема. Так это уже думать надо. Могу посоветовать посмотреть индикатор Игоря Ким, который сессии рисует. В CodeBase лежит, да и у него на сайте есть в свободном доступе.

granit77

There's also the gip's session indicator, probably the most advanced published.


iBarShift (NULL,PERIOD_M1,SessStartCount)

 
granit77:
There is also the gip's session indicator, probably the most advanced published.


I want to improve it and use my own)) but thanks for the link anyway) it's really interesting, maybe I'll change it in time, I'll make something similar)))
Reason: