Download MetaTrader 5
To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
Paul
529
Paul 2014.12.26 21:07 

With the following code, I can place a dot at the bottom of a candle, for a specific value.  I would like to place a second dot below the first, for a second value.  Can anyone show me how to accomplish this?  I would also like to know how to add spacing between the first dot and the candle, so that the dot is not touching the candle.


Thanks!

         ObjectCreate(StringConcatenate("MidASymblA",TimeCurrent()), OBJ_ARROW, 0, Time[1],vLa+_Point);       
         ObjectSet(StringConcatenate("MidASymblA",TimeCurrent()), OBJPROP_ARROWCODE,  108);              
         ObjectSet(StringConcatenate("MidASymblA",TimeCurrent()), OBJPROP_COLOR, White);  
         ObjectSet(StringConcatenate("MidASymblA",TimeCurrent()), OBJPROP_ANCHOR, ANCHOR_TOP);
   
         ObjectCreate(StringConcatenate("MidASymblAs",TimeCurrent()), OBJ_ARROW, 0, Time[1],NSpread+_Point);       
         ObjectSet(StringConcatenate("MidASymblAs",TimeCurrent()), OBJPROP_ARROWCODE,  108);              
         ObjectSet(StringConcatenate("MidASymblAs",TimeCurrent()), OBJPROP_COLOR, White);  
         ObjectSet(StringConcatenate("MidASymblAs",TimeCurrent()), OBJPROP_ANCHOR, ANCHOR_TOP);
Carl Schreiber
6377
Carl Schreiber 2014.12.26 23:09  

Yellowbeard,

really, isn't this something you can find out yourself?

ObjectCreate() has price variable which you have to set. If you want it in relation to another price start from there and add or subtract a portion or what ever..

/
To add comments, please log in or register