[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 55

 
xruss >> :

Everlost, please help me, i can't get this code to work((( i'm like a dog, i understand everything in a textbook, but i can't say and write it in mql4.

I wanted to bypass the flags and do things differently - i can't write them.

i have such trades:

the whole problem is that open trades can end at SL and TP before the Cls_B=true or Cls_C=true(.

i need to make a deal not open before the condition Cls_B=true or Cls_C=true is fulfilled. i'm already out of my mind with this algorithm. soon the orderlies will come for me((((

In the order open condition, put what you want

if(Cls_B || Cls_C) открываем ордер
 

I have this question.

I need to display the minimum and maximum of the day on a five-minute chart. Can I take this data from a daily candle and display it on m5?

Or there are more convenient ways?

 
this is the way, in my opinion, the most convenient way.
 

What would it look like in the code, roughly?)

 
there is a ready-made indicator
 
https://www.mql5.com/ru/code/8797
 

Thank you so much! Just what I needed!

 

And another question :)

How can you implement the colouring of candles in different colours?

An example is shown in the illustration.



 
komposter >> :

You can draw arrow objects on the graph.

Can you give me a more detailed answer? I need one indicator to be able to be displayed both in a separate window and on the price chart.

 
luka >> :

And another question :)

How can you implement the colouring of candles in different colours?

Example in the picture.



To create a graphical object.

Reason: