Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
Paul
529
Paul 2014.12.10 16:33 

This code will draw an arrow over a candle.  

ObjectCreate(StringConcatenate("DwnDSymblD",TimeCurrent()), OBJ_ARROW, 0, Time[0],vH); 
ObjectSet(StringConcatenate("DwnDSymblD",TimeCurrent()), OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN); 
ObjectSet(StringConcatenate("DwnDSymblD",TimeCurrent()), OBJPROP_COLOR, White); 




 Could someone show me how to make a dot instead of an arrow?


Thanks!

whroeder1
13640
whroeder1 2014.12.10 17:17  
Yellowbeard:  Could someone show me how to make a dot instead of an arrow?
... OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN); 
change your arrowcode to a wingding of your choice
Paul
529
Paul 2014.12.10 17:37  

Thanks again, WHRoeder,

  That worked.

Is there a way to add spacing between the dot and the high of the candle?  So that the dot is not covering the candle.

         ObjectCreate(StringConcatenate("UpBSymblB",TimeCurrent()), OBJ_ARROW, 0, Time[0],vH);           
         ObjectSet(StringConcatenate("UpBSymblB",TimeCurrent()), OBJPROP_ARROWCODE, 108);             
         ObjectSet(StringConcatenate("UpBSymblB",TimeCurrent()), OBJPROP_COLOR, Lime); 
honest_knave
969
honest_knave 2014.12.10 19:27  
ObjectCreate(StringConcatenate("UpBSymblB",TimeCurrent()), OBJ_ARROW, 0, Time[0],vH+_Point);           
ObjectSet(StringConcatenate("UpBSymblB",TimeCurrent()), OBJPROP_ARROWCODE, 108);             
ObjectSet(StringConcatenate("UpBSymblB",TimeCurrent()), OBJPROP_COLOR, Lime); 
ObjectSet(StringConcatenate("UpBSymblB",TimeCurrent()), OBJPROP_ANCHOR, ANCHOR_BOTTOM); 
Paul
529
Paul 2014.12.10 22:31  

Thanks honest knave,

  That worked!

/
To add comments, please log in or register