Programming Problem

 

dear guys,

first wanna thanks codersguru for his nice lessons(MQL Course)..

i have a problem with the following code (custom indicator)..

i want up arrow to be drawn on the chart if it's conditions happened and down one for the other conditions.. (like ASCTREND)

i'm new to this language so this is my best , i know it has many problems but i believe that i'm close , but not enough...

pleaseeeeeeeeeeeeee HEEELPPPPP me

Files:
acustom.mq4  4 kb
 

You're welcome!

munait:

dear guys,

first wanna thanks codersgurufor his nice lessons(MQL Course)..

i have a problem with the following code (custom indicator)..

i want up arrow to be drawn on the chart if it's conditions happened and down one for the other conditions.. (like ASCTREND)

i'm new to this language so this is my best , i know it has many problems but i believe that i'm close , but not enough...

pleaseeeeeeeeeeeeee HEEELPPPPP me

munait,

You're welcome!

Yes, you are very close, Keep going.

Please try this one and tell me what do you think.

Files:
acustom.mq4  5 kb
 

you are Brilliant . . !

Thank you very very much man..

i have one more question please, can i limit the view of the arrows to be shown only in one period, exactly in (the 240 min) ..

i'll give you my( Your ) indicator as a gift when i finish it.. it seems good for long terms..

thanks again

 

i got it..

i've found the code for limmiting the appear

ObjectSet("crossing", OBJPROP_TIMEFRAMES, OBJ_PERIOD_H4);

and it works correctly

thank you for everything ....

munait

Reason: