Download MetaTrader 5

how to Create Arrow Symbol Top Right Corner

To add comments, please log in or register
appsdrive1
143
appsdrive1  

Hello Everyone i want to create a Arrow symbol on the Top Right Corner. I am using this code for Label its working but i want to create Sell or BUY Arrow behind this Label.

 Create Label :

         int current_chart_id = 0;
         //--- Create Label Object on
         ObjectCreate("Label",OBJ_LABEL,0,0,0);
         ObjectSetInteger(current_chart_id,"Label",OBJPROP_COLOR,LimeGreen);
         ObjectSetString(current_chart_id,"Label",OBJPROP_TEXT,StringFormat("**Signal is :  **",22));
         ObjectSet("Label", OBJPROP_CORNER, 1);
         ObjectSet("Label",OBJPROP_XDISTANCE,10);
         ObjectSet("Label",OBJPROP_YDISTANCE,90);

Create Arrow :

               ObjectCreate("Sell_Signal",OBJ_ARROW,0,Time[0]+0 * 60 *Period(),Ask);
              //--- set object properties
               //--- arrow code
               ObjectSet("Sell_Signal",OBJPROP_ARROWCODE,242);
               //--- color
               ObjectSet("Sell_Signal",OBJPROP_COLOR,Red);
               //--- price
               ObjectSet("Sell_Signal",OBJPROP_PRICE1,Ask;
               ObjectSet("Sell_Signal",OBJPROP_WIDTH,1.2);
               //--- time
               ObjectSet("Sell_Signal",OBJPROP_TIME1,Time[0]+1*60 *Period());


 This Arrow Code Need Time and Price. Anybody please help me. Thanks i upload a simple example picture. 

Files:
To add comments, please log in or register