النتائج 1 إلى 2 من 2
  1. #1
    الصورة الرمزية abdelaal
    abdelaal غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Sep 2013
    الإقامة
    مصر
    المشاركات
    5

    افتراضي طلب تعديل هذا المؤشر

    هذا المؤشر صممه لي اخونا مستر دولا من فتره وهو لاضافه خطوط عرضيه
    https://forum.arabictrader.com/t239015.html

    اريد ان تكون االارقام داخل المؤشر فقط وحذف المتغير الخارجي مثل
    كود PHP:
     //+------------------------------------------------------------------+
     //|                                                                  |
     //|                                                                  |
     //|                                      www.arabictrader.com/vb     |
     //|                                                                  |
     //|                                          [email protected]   |
     //+------------------------------------------------------------------+
        
    #property copyright "MR.dollar "
    #property link      "[email protected]"

    #property indicator_chart_window

    input string info="Add (,)between numbers";
    input string Lines_Numbers=

    "0.714,0.726,0.7381,0.7503,0.7626,0.7750,"
    "0.973,0.987,1.0011,1.0153,1.0296,1.044,1.0585,1.0731,1.0878,1.1026,1.1175,1.1325,"
    "1.209,1.2246,1.2403,1.2561,1.272,1.288,1.3041,"
    "108.78,110.26,111.75,113.25,114.76,116.28,117.81,"
    ;


    input int Line_Width=3;
    input color Line_Color=Red;

    double point;




     
    void OnInit()
     {                        
      if(
    Digits<4)
      {
       
    point=0.01;
      }
      else
      {
       
    point=0.0001;
      }
      
     }
     
     
    void OnDeinit(const int reason
     {
      for(
    int i=ObjectsTotal()-1;i>=0;i--)
      {
       
    string name=ObjectName(i);
       if(
    StringFind(name,"CustomHLine",0)>=0)
        
    ObjectDelete(name);
      }
     }

    //+------------------------------------------------------------------+
    int OnCalculate(const int rates_total,
                    const 
    int prev_calculated,
                    const 
    datetimetime[],
                    const 
    doubleopen[],
                    const 
    doublehigh[],
                    const 
    doublelow[],
                    const 
    doubleclose[],
                    const 
    longtick_volume[],
                    const 
    longvolume[],
                    const 
    intspread[])

    {

      
    Comment("Programmed by MR.dollar"+"\n"+"www.arabictrader.com/vb");
     
     
    string Numbers[];
     
     
    ushort sep=StringGetCharacter(",",0);
     
    StringSplit(Lines_Numbers,sep,Numbers);
     
     
    int num_size=ArraySize(Numbers);
     
    int size=0;
     for(
    int i=0;i<num_size;i++)
     {
      
    drawHLine("CustomHLine"+Numbers[i],StringToDouble(Numbers[i]),Line_Color);  
     }
       
         
         

     
     return(
    rates_total);
       
    }

    void drawHLine(string namedouble price,color _Color)
     {
      if(
    ObjectFind(name) == -1)
      {
       
    ObjectCreate(nameOBJ_HLINE00,price);
       
    ObjectSet(nameOBJPROP_COLOR_Color);
       
    ObjectSet(nameOBJPROP_STYLESTYLE_SOLID);
       
    ObjectSet(nameOBJPROP_WIDTHLine_Width);
      }
      else if(
    ObjectGet(name,OBJPROP_PRICE1)!=price)
      {
       
    ObjectDelete(name);
      }
      
      
      
     }  
         
         

    //+------------------------------------------------------------------+ 
    وشكرا

  2. #2
    الصورة الرمزية MR.dollar
    MR.dollar غير متواجد حالياً مشرف المتداول العربي
    تاريخ التسجيل
    Jun 2009
    الإقامة
    مصر
    المشاركات
    13,851

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة abdelaal مشاهدة المشاركة
    هذا المؤشر صممه لي اخونا مستر دولا من فتره وهو لاضافه خطوط عرضيه
    https://forum.arabictrader.com/t239015.html

    اريد ان تكون االارقام داخل المؤشر فقط وحذف المتغير الخارجي مثل
    كود PHP:
     //+------------------------------------------------------------------+
     //|                                                                  |
     //|                                                                  |
     //|                                      www.arabictrader.com/vb     |
     //|                                                                  |
     //|                                          [email protected]   |
     //+------------------------------------------------------------------+
        
    #property copyright "MR.dollar "
    #property link      "[email protected]"
     
    #property indicator_chart_window
     
    input string info="Add (,)between numbers";
    input string Lines_Numbers=
     
    "0.714,0.726,0.7381,0.7503,0.7626,0.7750,"
    "0.973,0.987,1.0011,1.0153,1.0296,1.044,1.0585,1.0731,1.0878,1.1026,1.1175,1.1325,"
    "1.209,1.2246,1.2403,1.2561,1.272,1.288,1.3041,"
    "108.78,110.26,111.75,113.25,114.76,116.28,117.81,"
    ;
     
     
    input int Line_Width=3;
    input color Line_Color=Red;
     
    double point;
     
     
     
     
     
    void OnInit()
     {                        
      if(
    Digits<4)
      {
       
    point=0.01;
      }
      else
      {
       
    point=0.0001;
      }
      
     }
     
     
    void OnDeinit(const int reason
     {
      for(
    int i=ObjectsTotal()-1;i>=0;i--)
      {
       
    string name=ObjectName(i);
       if(
    StringFind(name,"CustomHLine",0)>=0)
        
    ObjectDelete(name);
      }
     }
     
    //+------------------------------------------------------------------+
    int OnCalculate(const int rates_total,
                    const 
    int prev_calculated,
                    const 
    datetimetime[],
                    const 
    doubleopen[],
                    const 
    doublehigh[],
                    const 
    doublelow[],
                    const 
    doubleclose[],
                    const 
    longtick_volume[],
                    const 
    longvolume[],
                    const 
    intspread[])
     
    {
     
      
    Comment("Programmed by MR.dollar"+"\n"+"www.arabictrader.com/vb");
     
     
    string Numbers[];
     
     
    ushort sep=StringGetCharacter(",",0);
     
    StringSplit(Lines_Numbers,sep,Numbers);
     
     
    int num_size=ArraySize(Numbers);
     
    int size=0;
     for(
    int i=0;i<num_size;i++)
     {
      
    drawHLine("CustomHLine"+Numbers[i],StringToDouble(Numbers[i]),Line_Color);  
     }
       
         
         
     
     
     return(
    rates_total);
       
    }
     
    void drawHLine(string namedouble price,color _Color)
     {
      if(
    ObjectFind(name) == -1)
      {
       
    ObjectCreate(nameOBJ_HLINE00,price);
       
    ObjectSet(nameOBJPROP_COLOR_Color);
       
    ObjectSet(nameOBJPROP_STYLESTYLE_SOLID);
       
    ObjectSet(nameOBJPROP_WIDTHLine_Width);
      }
      else if(
    ObjectGet(name,OBJPROP_PRICE1)!=price)
      {
       
    ObjectDelete(name);
      }
      
      
      
     }  
         
         
     
    //+------------------------------------------------------------------+ 
    وشكرا

    إذا أردت الارقام داخل المؤشر يكفي أن تحذف فقط الأمر Input
    مرفق المؤشر
    الملفات المرفقة الملفات المرفقة


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17