Download MetaTrader 5

What kind of arrows is this

To add comments, please log in or register
Do you wonder how to use widgets? Read the article!
Astrategy
1162
Astrategy 2016.08.17 13:17 
Arkadii Zagorulko
19025
Arkadii Zagorulko 2016.08.17 13:24  
https://www.mql5.com/en/docs/constants/objectconstants/wingdings
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Wingdings
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Wingdings
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Wingdings - Reference on algorithmic/automated trading language for MetaTrader 5
Stuart Browne
5811
Stuart Browne 2016.08.17 13:24  
Astrategy:
Probably a wingding / webding or bitmap 
Alain Verleyen
Moderator
30731
Alain Verleyen 2016.08.17 13:31  
It's probably 2 wingdings symbols.
Arkadii Zagorulko
19025
Arkadii Zagorulko 2016.08.17 14:12  
We need a fourth man, who says that it is wingdings symbols. :)
Astrategy
1162
Astrategy 2016.08.17 14:13  
Can i have source code of this arrow
Marco vd Heijden
Moderator
4700
Marco vd Heijden 2016.08.17 15:06  

//--->
      ObjectCreate(0,"arrow",OBJ_ARROW,0,0,0,0,0);           // Create an arrow
      ObjectSetInteger(0,"arrow",OBJPROP_ARROWCODE,82);      // Set the arrow code
      ObjectSetInteger(0,"arrow",OBJPROP_WIDTH,30);          // Set the arrow size
      ObjectSetInteger(0,"arrow",OBJPROP_TIME,TimeCurrent());// Set time
      ObjectSetDouble(0,"arrow",OBJPROP_PRICE,High[0]);      // Set price
      ChartRedraw(0);                                        // Draw arrow now
//--->


But be advised that it is actually two arrows:

//--->
      ObjectCreate(0,"arrow",OBJ_ARROW,0,0,0,0,0);           // Create an arrow
      ObjectSetInteger(0,"arrow",OBJPROP_ARROWCODE,82);      // Set the arrow code
      ObjectSetInteger(0,"arrow",OBJPROP_WIDTH,12);          // Set the arrow size
      ObjectSetInteger(0,"arrow",OBJPROP_TIME,TimeCurrent());// Set time
      ObjectSetDouble(0,"arrow",OBJPROP_PRICE,High[0]);      // Set price
  
      
      ObjectCreate(0,"dot",OBJ_ARROW,0,0,0,0,0);             // Create an arrow
      ObjectSetInteger(0,"dot",OBJPROP_ARROWCODE,159);       // Set the arrow code
      ObjectSetInteger(0,"dot",OBJPROP_WIDTH,12);            // Set the arrow size
      ObjectSetInteger(0,"dot",OBJPROP_COLOR,clrGold);       // Set the arrow color 
      ObjectSetInteger(0,"dot",OBJPROP_TIME,TimeCurrent());  // Set time
      ObjectSetDouble(0,"dot",OBJPROP_PRICE,High[0]);        // Set price
      
      ChartRedraw(0);                                        // Draw arrows now      
//--->


Astrategy
1162
Astrategy 2016.08.17 17:04  

Thank you very much Marco vd Heijden

:) 

To add comments, please log in or register