Download MetaTrader 5
To add comments, please log in or register
Have you installed MetaTrader 5? Find out more about it!
bugs09
36
bugs09 2014.04.23 06:47  
Jimdandy:

When you pass that arrow to the chart with an indicator buffer it is drawn at a certain time and price location it becomes part of the chart just like the candles.
You can not click on that arrow or a candle and move it like a graphical object.

It is part of the chart now... it is not ON the chart it is IN the chart ...
If you click on it you will get the properties of the indicator and the option to delete the indicator..

If you Place an arrow on a chart using ObjectCreate() then yes you can put it wherever you designate and yes you can grab it and move it on your chart.
It is ON your chart not IN your chart.... subtle differences yet very important..
PipPIp...Jimdandy


Thank you so much for such a nice and detailed explanation.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 07:46  
bugs09:


Thanks you angevoyageur that really helped.


I hope you are not being sarcasm.



SetIndexBuffer(2, g_ibuf_188); // a standard way decompiled code written
SetIndexStyle(2, DRAW_ARROW, EMPTY, 3, Alert_Long_Color);
SetIndexArrow(2, SYMBOL_ARROWUP); 

SetIndexBuffer(2, NamedRoutine); // example of a normal way code written
SetIndexStyle(2, DRAW_ARROW, EMPTY, 3, Alert_Long_Color);
SetIndexArrow(2, SYMBOL_ARROWUP); 

By the way, next time, make sure the code is written in normal way.

qjol
3243
qjol 2014.04.23 11:27  
bugs09:

This was not supposed to be used as code. I just wanted to him know the method I was using in my code.

it doesn't matter don't post it
/ /12
To add comments, please log in or register