Download MetaTrader 5

how to create an arrow on the price chart

To add comments, please log in or register
Anil Kintala
15
Anil Kintala  
can anybody tell me how to create an arrow on a price chart when a particular condition is met.

for eg... if the ADX value isl less than +DI there should be an arrow on the price chart at this particular price.

I am tryin to use ObjectCreate("arrowi",OBJ_ARROW,0,timeofbar,0) but its of no use.

When i run the script, i can see the output on the log but there are no arrows appearing on the price chart.


thanks in advance
anil
Slava
Moderator
6961
Slava  
What is price 0? Try to use for example Close[0]+5*Points
Anil Kintala
15
Anil Kintala  
thanks for the help ... but i don see that working... i have attached the script here.. please take a look and suggest if there needs to be something modified.. ..

thanks
anil
Files:
Anil Kintala
15
Anil Kintala  
i am sorry guys.. the code is a mess... i found out the entire logic is wrong and i ll code it again...

just don bother to answer...

thanks
anil
Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
Thread start date: 2006.01.23
To add comments, please log in or register