صفحة 467 من 686 الأولىالأولى ... 367417457461462463464465466467468469470471472473477517567 ... الأخيرةالأخيرة
النتائج 6,991 إلى 7,005 من 10285
  1. #6991
    الصورة الرمزية MR.dollar
    MR.dollar غير متواجد حالياً مشرف المتداول العربي
    تاريخ التسجيل
    Jun 2009
    الإقامة
    مصر
    المشاركات
    13,851

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة barachot مشاهدة المشاركة
    السلام عليكم اخى اسامه
    كنت طلبت هذ الطلب من فتره ولاكن لم تأخذ بالك منه وهو
    فأذا كان السعر اقل من الموفنج يبدأ عملية البحث كما موضح بالصوره من 200 الى 800 شمعه
    عن اقل سعر فوق الموفنج مباشرة
    والعكس اذا كان السعر اعلى من الموفنج يأتى بأعلى سعر تحت الموفنج مباشرة بنفس حلقة البحث ايضا من 200 الى 800
    وجزاك الله خيرا على مجهوداتك
    وعليكم السلام ورحمة الله وبركاته
    مثال
    كود PHP:
    for(int i=200;i<=800;i++)
    {
     
    double ma=iMA(Symbol(),0,14,0,MODE_SMA,PRICE_CLOSE,i);
     if(
    Close[i]>ma)
     {
      if(
    Close[i]<MinClose)MinClose=Close[i];
     }

    وبنفس الطريقة للسعر أسفل الموفينج أفريج

  2. #6992
    الصورة الرمزية barachot
    barachot غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Mar 2013
    الإقامة
    مصر
    المشاركات
    61

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة MR.dollar مشاهدة المشاركة
    وعليكم السلام ورحمة الله وبركاته
    مثال
    كود PHP:
    for(int i=200;i<=800;i++)
    {
     
    double ma=iMA(Symbol(),0,14,0,MODE_SMA,PRICE_CLOSE,i);
     if(
    Close[i]>ma)
     {
      if(
    Close[i]<MinClose)MinClose=Close[i];
     }

    وبنفس الطريقة للسعر أسفل الموفينج أفريج
    شكرا على الرد استاذ اسامه
    ولاكن الداله مش مفهومه بعض الشيئ
    اولا حضرتك مش معرف الداله
    ثانيا المفروض قيمة الداله ترجع عن طريق return
    ثالثا انا مش فاهم اى المقصود بالمتغير MinClose لان الداله لا تحتاج الى متغيرات خارجيه
    لو سمحت لو فيه اكثر توضيح لكى نستفاد بصوره عامه

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة barachot مشاهدة المشاركة
    شكرا على الرد استاذ اسامه
    ولاكن الداله مش مفهومه بعض الشيئ
    اولا حضرتك مش معرف الداله
    ثانيا المفروض قيمة الداله ترجع عن طريق return
    ثالثا انا مش فاهم اى المقصود بالمتغير MinClose لان الداله لا تحتاج الى متغيرات خارجيه
    لو سمحت لو فيه اكثر توضيح لكى نستفاد بصوره عامه
    في المثال السابق لم أقم بعملها دالة لكن كود مباشر والمتغير MinClose سيحفظ قيمة أقل إغلاق للسعر أعلى الموفينج أفريج
    هذا مثال لطريقة عملها في دالة منفصله
    كود PHP:
    double GetMinClose()
    {
     
    double MinClose;

    for(
    int i=200;i<=800;i++)
    {
     
    double ma=iMA(Symbol(),0,14,0,MODE_SMA,PRICE_CLOSE,i);
     if(
    Close[i]>ma)
     {
      if(
    Close[i]<MinClose)MinClose=Close[i];
     }
    }
     return(
    MinClose);


  4. #6994
    الصورة الرمزية barachot
    barachot غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Mar 2013
    الإقامة
    مصر
    المشاركات
    61

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة MR.dollar مشاهدة المشاركة
    في المثال السابق لم أقم بعملها دالة لكن كود مباشر والمتغير MinClose سيحفظ قيمة أقل إغلاق للسعر أعلى الموفينج أفريج
    هذا مثال لطريقة عملها في دالة منفصله
    كود PHP:
    double GetMinClose()
    {
     
    double MinClose;

    for(
    int i=200;i<=800;i++)
    {
     
    double ma=iMA(Symbol(),0,14,0,MODE_SMA,PRICE_CLOSE,i);
     if(
    Close[i]>ma)
     {
      if(
    Close[i]<MinClose)MinClose=Close[i];
     }
    }
     return(
    MinClose);

    للأسف استاذى اسامه الداله لم تعمل وتعطى النتيجه 0 دائما

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة barachot مشاهدة المشاركة
    للأسف استاذى اسامه الداله لم تعمل وتعطى النتيجه 0 دائما
    ضع قيمة مبدئية ل MinClose برقم كبير كمثال
    كود PHP:
    double MinClose =999999

  6. #6996
    الصورة الرمزية barachot
    barachot غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Mar 2013
    الإقامة
    مصر
    المشاركات
    61

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة MR.dollar مشاهدة المشاركة
    ضع قيمة مبدئية ل MinClose برقم كبير كمثال
    كود PHP:
    double MinClose =999999
    ايوه هو ده استاذ اسامه اللى انا عارفه تمام اشتغلت الداله على الرغم ان فيها فكره
    جزاك الله كل خير

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة barachot مشاهدة المشاركة
    ايوه هو ده استاذ اسامه اللى انا عارفه تمام اشتغلت الداله على الرغم ان فيها فكره
    جزاك الله كل خير
    شكرا لك . بالتوفيق

  8. #6998
    الصورة الرمزية صلاح الدين الفوركساوى
    صلاح الدين الفوركساوى غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jul 2012
    الإقامة
    مصر
    المشاركات
    740

    افتراضي

    السلام عليكم استاذى الكريم اسامه

    هذا الاكسبيرت ساعدنى فيه الاخ جميل بارك الله تعالى فيه كما اخبرت حضرتك قبل ذلك

    الاكسبيرت بيعتمد على الشموع

    كلما كانت الشمعه صاعدة يقوم بتعليق امر شراء واذا كانت الشمعه هابطة يقوم بتعليق امر بيع معلق

    وهو بيضاعف دائما على طول الطريق بأن يضيف لوت لاكبر لوت تم فتحه

    ولكنى أقتبست هذا الكود من أحد اكسبيرتاتك

    كود:
          if(LastOrderType()==1)
             {
              newlot=NormalizeDouble((LastLot()),LotDigits);   
             }
           else 
             {
              newlot=NormalizeDouble((MaxLot()+Lots),LotDigits);
    والفكرة التى اردت ان اضيف الكود من أجلها انه اذا كانت اخر شمعه هابطة والتى قبلها صاعدة فأنه يقوم بأضافه لوت ثم اذا استمر الشموع فى الصعود يستمر فى فتح اخر صفقة فى الحجم فقط ولا يضاعف

    يضاعف اذا عكس فقط

    المشكله انى ركبت هذا الشرط ولم يعمل بالشكل المطلوب

    مش عارف اين الخطأ بالظبط ؟؟

    ممكن تساعدنى استاذى الغالى اسامه بالله عليك

    مرفق الاكسبيرت
    الملفات المرفقة الملفات المرفقة
    توقيع العضو
    سبحان الله وبحمده ... سبحان الله العظيم

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة صلاح الدين الفوركساوى مشاهدة المشاركة
    السلام عليكم استاذى الكريم اسامه

    هذا الاكسبيرت ساعدنى فيه الاخ جميل بارك الله تعالى فيه كما اخبرت حضرتك قبل ذلك

    الاكسبيرت بيعتمد على الشموع

    كلما كانت الشمعه صاعدة يقوم بتعليق امر شراء واذا كانت الشمعه هابطة يقوم بتعليق امر بيع معلق

    وهو بيضاعف دائما على طول الطريق بأن يضيف لوت لاكبر لوت تم فتحه

    ولكنى أقتبست هذا الكود من أحد اكسبيرتاتك

    كود:
          if(LastOrderType()==1)
             {
              newlot=NormalizeDouble((LastLot()),LotDigits);   
             }
           else 
             {
              newlot=NormalizeDouble((MaxLot()+Lots),LotDigits);
    والفكرة التى اردت ان اضيف الكود من أجلها انه اذا كانت اخر شمعه هابطة والتى قبلها صاعدة فأنه يقوم بأضافه لوت ثم اذا استمر الشموع فى الصعود يستمر فى فتح اخر صفقة فى الحجم فقط ولا يضاعف

    يضاعف اذا عكس فقط

    المشكله انى ركبت هذا الشرط ولم يعمل بالشكل المطلوب

    مش عارف اين الخطأ بالظبط ؟؟

    ممكن تساعدنى استاذى الغالى اسامه بالله عليك

    مرفق الاكسبيرت
    وعليكم السلام ورحمة الله وبركاته
    المطلوب إذا كانت الشمعه صاعده وآخر صفقه أي في الشمعة السابقه بيع فإنه يزيد حجم اللوت صحيح ؟
    الكود صحيح لكن ربما الخطأ المكان الذي وضعته فيه . أرفق الإكسبرت مضاف له الكود بنفس هذه الطريقه لكن ستضيف الشرط مره للبيع ومره للشراء وبالتأكيد ستغير قيمة 1 تجعلها 0 في حالة زيادة حجم لوت البيع

  10. #7000
    الصورة الرمزية صلاح الدين الفوركساوى
    صلاح الدين الفوركساوى غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Jul 2012
    الإقامة
    مصر
    المشاركات
    740

    افتراضي

    تمام كلامك مظبوط اخى اسامه

    المطلوب بالظبط ...

    اذا اغلقت اخر شمعه على صعود واللى قبلها كان هبوط فى هذه الحالة يقوم بزيادة لوت

    واذا أغلقت اخر شمعه على صعود واللى قبلها ايضا صعود فلايزيد اى شىء لاخر لوت تم فتحه

    والعكس ايضا فى حالة الهبوط

    الزيادة فقط فى حالة ان اخر شمعه ليست مثل اللى قبلها

    حاولت اظبطها كما الاكسبيرت المرفق فلم تفلح معى

    مش عارف اين الخطأ

    لو أمكن تساعدنى فىها مستر اسامه

    وجزاك الله تعالى خيرا مقدما
    الملفات المرفقة الملفات المرفقة
    آخر تعديل بواسطة صلاح الدين الفوركساوى ، 17-01-2016 الساعة 03:43 AM
    توقيع العضو
    سبحان الله وبحمده ... سبحان الله العظيم

  11. #7001
    الصورة الرمزية kira-h
    kira-h غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Oct 2011
    الإقامة
    المغرب
    المشاركات
    1,334

    افتراضي

    السلام عليكم
    من فضك مستر دولار مساعدة برمجية في طريقة معرفة عدد مرات تكرار نفس الإشارة على التوالي خلال فترة زمنية معينة
    والتكرار هنا يتم كسره اذا اتت إشارة عكسية

    للتوضيح اكثر لدينا مؤشر يعطي إشارات أسهم صاعدة up وأسهم بيع هابطة dn
    مثلا تكررت الاشارة up عدد 3 مرات متتالية ثم اتت إشارة dn مرتين متتاليتين ثم أتت الاشارة up مرتين متتاليتين خلال آخر 3 شهور، إذن اقصى عدد تكرار للاشارة up هو 3 مرات فقط، وأقصى عدد تكرار الاشارة dn هو مرتين فقط،

    تحياتي وتقديري
    آخر تعديل بواسطة kira-h ، 17-01-2016 الساعة 09:47 PM
    توقيع العضو
    متداول فوركس، ومبرمج mql

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة صلاح الدين الفوركساوى مشاهدة المشاركة
    تمام كلامك مظبوط اخى اسامه

    المطلوب بالظبط ...

    اذا اغلقت اخر شمعه على صعود واللى قبلها كان هبوط فى هذه الحالة يقوم بزيادة لوت

    واذا أغلقت اخر شمعه على صعود واللى قبلها ايضا صعود فلايزيد اى شىء لاخر لوت تم فتحه

    والعكس ايضا فى حالة الهبوط

    الزيادة فقط فى حالة ان اخر شمعه ليست مثل اللى قبلها

    حاولت اظبطها كما الاكسبيرت المرفق فلم تفلح معى

    مش عارف اين الخطأ

    لو أمكن تساعدنى فىها مستر اسامه

    وجزاك الله تعالى خيرا مقدما
    تفضل هذا مثال
    الملفات المرفقة الملفات المرفقة

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

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة kira-h مشاهدة المشاركة
    السلام عليكم
    من فضك مستر دولار مساعدة برمجية في طريقة معرفة عدد مرات تكرار نفس الإشارة على التوالي خلال فترة زمنية معينة
    والتكرار هنا يتم كسره اذا اتت إشارة عكسية

    للتوضيح اكثر لدينا مؤشر يعطي إشارات أسهم صاعدة up وأسهم بيع هابطة dn
    مثلا تكررت الاشارة up عدد 3 مرات متتالية ثم اتت إشارة dn مرتين متتاليتين ثم أتت الاشارة up مرتين متتاليتين خلال آخر 3 شهور، إذن اقصى عدد تكرار للاشارة up هو 3 مرات فقط، وأقصى عدد تكرار الاشارة dn هو مرتين فقط،

    تحياتي وتقديري
    وعليكم السلام ورحمة الله وبركاته
    مثال لأي مؤشر وليكن إسمه Arrow
    كود PHP:
    int MaxUp,MaxDn;
    int current_up,current_dn;
    for(
    int i=0;i<Bars;i++)
    {
     
    double arrow_up=iCustom(Symbol(),0,"arrow",0,i);
     
    double arrow_down=iCustom(Symbol(),0,"arrow",1,i);
     if(
    arrow_up<5000)
     {
      
    current_up++;
      
    current_dn=0;
      if(
    current_up>MaxUp)MaxUp=current_up;
     }
     if(
    arrow_down<5000)
     {
      
    current_dn++;
      
    current_up=0;
      if(
    current_dn>MaxDn)MaxDn=current_dn;
     }

    أكبر تكرار لظهور سهم صاعد سيكون MaxUp وأكبر تكرار لظهور سهم هابط سيكون MaxDn

  14. #7004
    الصورة الرمزية kira-h
    kira-h غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Oct 2011
    الإقامة
    المغرب
    المشاركات
    1,334

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة MR.dollar مشاهدة المشاركة
    وعليكم السلام ورحمة الله وبركاته
    مثال لأي مؤشر وليكن إسمه Arrow
    كود PHP:
    int MaxUp,MaxDn;
    int current_up,current_dn;
    for(
    int i=0;i<Bars;i++)
    {
     
    double arrow_up=iCustom(Symbol(),0,"arrow",0,i);
     
    double arrow_down=iCustom(Symbol(),0,"arrow",1,i);
     if(
    arrow_up<5000)
     {
      
    current_up++;
      
    current_dn=0;
      if(
    current_up>MaxUp)MaxUp=current_up;
     }
     if(
    arrow_down<5000)
     {
      
    current_dn++;
      
    current_up=0;
      if(
    current_dn>MaxDn)MaxDn=current_dn;
     }

    أكبر تكرار لظهور سهم صاعد سيكون MaxUp وأكبر تكرار لظهور سهم هابط سيكون MaxDn
    جزاك الله خيرا استاذي الفاضل،
    توقيع العضو
    متداول فوركس، ومبرمج mql

  15. #7005
    الصورة الرمزية السمحان
    السمحان غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Oct 2015
    الإقامة
    السعودية
    المشاركات
    310

    افتراضي

    كود PHP:
    #property copyright "open trade"
    #property link      ""

    extern int MagicNumber 20;
    int G_magic_80 30;
    extern int TimeFrame 60;
    extern string Pair "---Pair Management---";
    extern string Suffix "pro";
    extern bool OneSpring FALSE;
    extern bool UseDynamicPairs TRUE;
    extern string Symbol1 "GBPJPY";
    extern string Symbol2 "CHFJPY";
    extern bool InitialHedge TRUE;
    extern string ManualSignal "--- Signals Catching Management---";
    extern bool AutoSignalDetect TRUE;
    extern int Buy_1_Sell_2 1;
    extern string Filter "--- Signals Filters ---";
    extern int Strict_1_Medium_0 1;
    bool Gi_160 FALSE;
    bool Gi_164 FALSE;
    extern string Corr "---Correlation Setting---";
    extern bool UseCorrelation TRUE;
    extern double cPeriod 20.0;
    int G_timeframe_188 0;
    extern double MinCorr 0.9;
    extern string Reverse "---Reverse Management---";
    extern bool OppositeGridwhenR FALSE;
    extern bool CloseWhenReverse FALSE;
    extern bool UseLossPOnlywhenR FALSE;
    extern string MM "---Money Management---";
    extern bool UseMoneyManagement TRUE;
    extern double RiskPercent 10.0;
    extern bool Aggressive_Groodge FALSE;
    extern bool AutoProfit TRUE;
    extern double ProfitPercent 0.0;
    extern double LossPercent 0.0;
    extern bool UseAutoRatio TRUE;
    extern double Ratio 1.8;
    extern string MMM "---Manual Money Management---";
    extern double lots 0.01;
    extern double ProfitTargetUSD 0.0;
    extern double MaxLossUSD 0.0;
    extern string PendingOrders "---Pending Orders---";
    bool Gi_316 TRUE;
    extern int TotalPendingorders 5;
    extern double GridRatioLot 3.0;
    extern int PendingStep 20;
    extern double PipDivergence 50.0;
    extern int TrailStop 30;
    extern bool OppositeGrid FALSE;
    extern string Data "---ScreenShot & Alert---";
    extern bool AlertWhenprofit TRUE;
    extern bool AlertWhenreverse TRUE;
    extern bool AlertWhenentry TRUE;
    extern bool ScreenSWhenR TRUE;
    extern bool ScreenSWhenProfit TRUE;
    extern string STOP "---Stop Trading---";
    extern bool StopTrading FALSE;
    string Gs_unused_392 "---Bollinger Band Settings---";
    double G_period_400 20.0;
    int G_timeframe_408 0;
    double Gd_412 2.0;
    int Gi_420;
    double Gd_424;
    bool Gi_432;
    double Gd_436;
    double Gd_444;
    double G_period_452 200.0;
    int G_ticket_460;
    string Gsa_464[18];
    double Gda_468[18][18];
    double Gd_472;
    string G_symbol_488;
    string G_symbol_496;
    string Gs_dummy_504;
    string Gs_dummy_512;
    string Gs_dummy_520;
    bool Gi_528;
    bool Gi_532;
    double G_lots_536;
    double G_lots_544;
    int Gi_552;
    double G_ibands_556;
    double G_ibands_564;
    double Gd_572;
    bool Gi_652 FALSE;
    string Gs_unused_656 "";
    string Gs_664;
    string Gs_672;
    double Gd_680;
    bool Gi_unused_688 FALSE;
    double G_imacd_692;
    double G_imacd_700;
    double G_imacd_708;
    double G_imacd_716;
    double Gd_788;
    int Gi_796;
    int Gi_800;
    int Gi_804;
    int Gi_808;
    double G_imacd_828;
    double G_imacd_836;
    double G_imacd_860;
    double G_imacd_868;
    int Gi_876;

    // E37F0136AA3FFAF149B351F6A4C948E9
    int init() {
       if (!
    IsTesting()) {
          
    ObjectsDeleteAll();
          
    f0_28("Signal""Please Wait while Loading ..."Blue1420200);
       }
       
    G_magic_80 MagicNumber;
       if ((!
    IsTradeAllowed()) && (!IsExpertEnabled())) {
          
    ObjectsDeleteAll();
          
    f0_28("Signal""Trade is not allowed. Enable checkbox #Allow live trading# in the expert properties."Red1420200);
       }
       
    ArrayInitialize(Gda_4680);
       return (
    0);
    }

    // 52D46093050F38C27267BCE42543EF60
    int deinit() {
       
    ObjectsDeleteAll();
       
    Comment("");
       return (
    0);
    }

    // EA2B2676C28C0DB26D39331A336C6B92
    int start() {
       
    string symbol_8;
       
    double Ld_48;
       
    double Ld_56;
       
    int ticket_72;
       if (
    IsTesting()) {
          
    OneSpring TRUE;
          
    TimeFrame Period();
       }
       if (
    OneSpring) {
          
    Symbol1 Symbol();
          
    Symbol2 Symbol();
          
    UseDynamicPairs FALSE;
       }
       
    G_magic_80 MagicNumber;
       
    G_timeframe_188 TimeFrame;
       
    G_timeframe_408 TimeFrame;
       if (
    Strict_1_Medium_0 == 0) {
          
    Gi_164 TRUE;
          
    Gi_160 FALSE;
       } else {
          
    Gi_164 FALSE;
          
    Gi_160 TRUE;
       }
       if (!
    InitialHedge) {
          
    UseAutoRatio FALSE;
          
    Ratio 1;
          
    OppositeGrid FALSE;
          
    OppositeGridwhenR FALSE;
       }
       if (
    OppositeGrid || OppositeGridwhenR) {
          
    CloseWhenReverse FALSE;
          
    UseLossPOnlywhenR FALSE;
       }
       if ((!
    IsDemo()) && (!IsTesting())) {
          
    f0_28("Signal""You can not run this EA on a Live Account !!!"Red2410102);
          return (
    0);
       }
       if (!
    UseCorrelationMinCorr = -1;
       if (
    UseCorrelation && MinCorr 0.99 && f0_30() == 0) {
          
    f0_28("Signal""Invalid Correlation ..."Red2410102);
          return;
       }
       if ((!
    G_timeframe_188 == || G_timeframe_188 == PERIOD_M1 || G_timeframe_188 == PERIOD_M5 || G_timeframe_188 == PERIOD_M15 || G_timeframe_188 == PERIOD_M30 || G_timeframe_188 == PERIOD_H1 ||
          
    G_timeframe_188 == PERIOD_H4 || G_timeframe_188 == PERIOD_D1 || G_timeframe_188 == PERIOD_W1 || G_timeframe_188 == PERIOD_MN1) && f0_30() == 0) {
          
    f0_28("Signal""Invalid Correlation Time Frame ..."Red2410102);
          return;
       }
       if ((!
    G_timeframe_408 == || G_timeframe_408 == PERIOD_M1 || G_timeframe_408 == PERIOD_M5 || G_timeframe_408 == PERIOD_M15 || G_timeframe_408 == PERIOD_M30 || G_timeframe_408 == PERIOD_H1 ||
          
    G_timeframe_408 == PERIOD_H4 || G_timeframe_408 == PERIOD_D1 || G_timeframe_408 == PERIOD_W1 || G_timeframe_408 == PERIOD_MN1) && f0_30() == 0) {
          
    f0_28("Signal""Invalid Bollinger Time Frame ..."Red2410102);
          return;
       }
       if (
    StopTrading == TRUE)
          if (
    f0_30() > 0Gi_652 TRUE;
       if (
    Gi_652) {
          
    f0_2();
          
    G_symbol_488 "";
          
    G_symbol_496 "";
          
    Gd_472 0;
          
    Gi_808 0;
          
    Gi_804 0;
          
    Gi_796 0;
          
    Gi_800 0;
       }
       if (
    f0_30() == && StopTrading == FALSE) {
          
    Gi_652 FALSE;
          
    Gi_432 FALSE;
       }
       if (
    MarketInfo(Symbol(), MODE_LOTSTEP) == 0.01) {
          
    Gi_unused_688 TRUE;
          
    Gi_552 2;
       } else {
          
    Gi_unused_688 FALSE;
          
    Gi_552 1;
       }
       
    string Ls_0 "";
       if (
    StringLen(Symbol()) > 6Ls_0 Suffix;
       
    Gsa_464[0] = "USDCHF" Ls_0;
       
    Gsa_464[1] = "USDJPY" Ls_0;
       
    Gsa_464[2] = "EURUSD" Ls_0;
       
    Gsa_464[3] = "GBPUSD" Ls_0;
       
    Gsa_464[4] = "EURJPY" Ls_0;
       
    Gsa_464[5] = "EURCHF" Ls_0;
       
    Gsa_464[6] = "EURGBP" Ls_0;
       
    Gsa_464[7] = "USDCAD" Ls_0;
       
    Gsa_464[8] = "AUDUSD" Ls_0;
       
    Gsa_464[9] = "GBPCHF" Ls_0;
       
    Gsa_464[10] = "GBPJPY" Ls_0;
       
    Gsa_464[11] = "CHFJPY" Ls_0;
       
    Gsa_464[12] = "NZDUSD" Ls_0;
       
    Gsa_464[13] = "EURCAD" Ls_0;
       
    Gsa_464[14] = "AUDJPY" Ls_0;
       
    Gsa_464[15] = "EURAUD" Ls_0;
       
    Gsa_464[16] = "AUDNZD" Ls_0;
       
    Gsa_464[17] = "NZDJPY" Ls_0;
       if (
    f0_3() > && f0_30() > && (!StopTrading) && (!Gi_652)) {
          
    Gi_432 TRUE;
          if (
    Gi_316f0_11();
       }
       if (
    f0_3() == && f0_30() > 0f0_2();
       if (
    f0_30() == 0) {
          if (
    UseDynamicPairs) {
             
    Gi_876 ArraySize(Gsa_464);
             for (
    int index_16 0index_16 Gi_876index_16++) {
                for (
    int Li_20 index_16 1Li_20 Gi_876 1Li_20++) {
                   if (
    Gi_432 == FALSE) {
                      if (
    MarketInfo(Gsa_464[index_16], MODE_ASK) > 0.0 && MarketInfo(Gsa_464[Li_20], MODE_ASK) > 0.0) {
                         
    Gda_468[index_16][Li_20] = f0_22(Gsa_464[index_16], Gsa_464[Li_20], 0);
                         
    Sleep(10);
                         if (!
    UseCorrelationMinCorr = -1;
                         if (
    Gda_468[index_16][Li_20] <= MinCorr) continue;
                         
    Gd_472 Gda_468[index_16][Li_20];
                         
    G_symbol_488 Gsa_464[index_16];
                         
    G_symbol_496 Gsa_464[Li_20];
                         if (!(
    AutoSignalDetect)) break;
                         if (
    f0_7(G_symbol_488G_symbol_496) == "BUY" && Gd_472 MinCorr) {
                            if (
    f0_29(G_symbol_488) == "BUY" && InitialHedge && Gi_160) {
                               
    symbol_8 G_symbol_496;
                               
    G_symbol_496 G_symbol_488;
                               
    G_symbol_488 symbol_8;
                            }
                            
    index_16 Gi_876;
                            break;
                         }
                         if (!(
    f0_7(G_symbol_488G_symbol_496) == "SELL" && Gd_472 MinCorr)) continue;
                         if (
    f0_29(G_symbol_488) == "SELL" && InitialHedge && Gi_160) {
                            
    symbol_8 G_symbol_496;
                            
    G_symbol_496 G_symbol_488;
                            
    G_symbol_488 symbol_8;
                         }
                         
    index_16 Gi_876;
                         break;
                      }
                      if ((!
    StopTrading) && (!Gi_652)) {
                         
    f0_28("Signal""Please Check Symbol Suffix!!!"Red2410102);
                         return;
                      }
                   }
                }
             }
             if (
    Gd_472 MinCorr && (!StopTrading) && (!Gi_652) && f0_30() == 0) {
                
    f0_28("Signal""Waiting for a good Correlation..."Red2410102);
                return;
             }
             if (
    AutoSignalDetect && f0_7(G_symbol_488G_symbol_496) == "" && (!StopTrading) && (!Gi_652) && f0_30() == 0) {
                
    f0_28("Signal""Waiting for a good signal..."Red2410102);
                return;
             }
          } else {
             
    Ls_0 "";
             if (
    StringLen(Symbol()) > 6Ls_0 Suffix;
             
    G_symbol_488 Symbol1 Ls_0;
             
    G_symbol_496 Symbol2 Ls_0;
             if (
    MarketInfo(G_symbol_488MODE_ASK) > 0.0Gd_472 f0_22(G_symbol_488G_symbol_4960);
             else {
                if ((!
    StopTrading) && (!Gi_652)) {
                   
    f0_28("Signal""Please Check Symbol Suffix!!!"Red2410102);
                   return;
                }
             }
          }
       }
       if (
    AutoSignalDetect) {
          if (
    f0_7(G_symbol_488G_symbol_496) == "BUY" && StopTrading == FALSE && (!Gi_652)) Gi_528 TRUE;
          else 
    Gi_528 FALSE;
          if (
    f0_7(G_symbol_488G_symbol_496) == "SELL" && StopTrading == FALSE && (!Gi_652)) Gi_532 TRUE;
          else 
    Gi_532 FALSE;
       } else {
          if (
    Buy_1_Sell_2 == 1) {
             
    Gi_528 TRUE;
             
    Gi_532 FALSE;
          }
          if (
    Buy_1_Sell_2 == 2) {
             
    Gi_532 TRUE;
             
    Gi_528 FALSE;
          }
       }
       
    int digits_24 MarketInfo(G_symbol_488MODE_DIGITS);
       
    int digits_28 MarketInfo(G_symbol_496MODE_DIGITS);
       
    double bid_32 MarketInfo(G_symbol_488MODE_BID);
       
    double bid_40 MarketInfo(G_symbol_496MODE_BID);
       
    Gi_796 StringFind(f0_12(), "BUY"0);
       
    Gi_800 StringFind(f0_12(), "SELL"0);
       
    Gi_804 f0_27();
       
    Gi_808 f0_17();
       if (!
    StopTrading) {
          if (!
    OneSpringf0_28("101""-------------------------"f0_24(G_symbol_488), 25444);
          
    f0_28("201""-------------------------"f0_24(G_symbol_496), 2546);
          if (!
    OneSpringf0_28("1"G_symbol_488f0_5(G_symbol_488), 2514060);
          
    f0_28("2"G_symbol_496f0_5(G_symbol_496), 2514020);
          if (!
    OneSpringf0_28("11"DoubleToStr(bid_32digits_24), f0_5(G_symbol_488), 252060);
          
    f0_28("22"DoubleToStr(bid_40digits_28), f0_5(G_symbol_496), 252020);
       }
       if (
    Gi_804 && Gi_796 0OppositeGrid TRUE;
       if (
    Gi_808 && Gi_800 0OppositeGrid TRUE;
       if (
    Gi_796 && (!OppositeGrid)) f0_28("Signal""Buy Catching..."Gold1410102);
       if (
    Gi_800 && (!OppositeGrid)) f0_28("Signal""Sell Catching..."Gold1410102);
       if (
    Gi_796 && OppositeGridf0_28("Signal""Buy Catching & Opposite Sell Grid"Gold1410102);
       if (
    Gi_800 && OppositeGridf0_28("Signal""Sell Catching & Opposite Buy Grid"Gold1410102);
       if (
    f0_30() == && (!Gi_528) && (!Gi_532) && AutoSignalDetect) {
          
    f0_28("Signal""Waiting for a good signal..."Silver1410102);
          if (
    TimeFrame 0Sleep(10 TimeFrame);
          else 
    Sleep(10 Period());
       }
       if (
    StopTradingf0_28("Signal""EA STOPPED!!!"Red2410102);
       if (
    f0_30() == && Gd_472 MinCorr && (!StopTrading)) {
          
    f0_28("Signal""Waiting for a good Correlation..."Silver1410102);
          if (
    TimeFrame 0Sleep(10 TimeFrame);
          else 
    Sleep(10 Period());
       }
       if (
    UseAutoRatio) {
          
    Gd_444 f0_18(G_symbol_488) / f0_18(G_symbol_496);
          
    Ld_48 = (iMA(G_symbol_4880G_period_4520MODE_SMAPRICE_HIGH0) - iMA(G_symbol_4880G_period_4520MODE_SMAPRICE_LOW0)) / MarketInfo(G_symbol_488,
             
    MODE_POINT);
          
    Ld_56 = (iMA(G_symbol_4960G_period_4520MODE_SMAPRICE_HIGH0) - iMA(G_symbol_4960G_period_4520MODE_SMAPRICE_LOW0)) / MarketInfo(G_symbol_496,
             
    MODE_POINT);
          
    Gd_436 Ld_56 Ld_48;
          
    Ratio Gd_444 Gd_436;
       }
       if (
    UseMoneyManagement) {
          
    G_lots_536 NormalizeDouble(f0_19() / (Ratio 1.0), Gi_552);
          
    G_lots_544 NormalizeDouble(f0_19() / (Ratio 1.0) * RatioGi_552);
       } else {
          
    G_lots_536 lots;
          
    G_lots_544 NormalizeDouble(lots RatioGi_552);
       }
       if (
    G_lots_536 GridRatioLot MarketInfo(Symbol(), MODE_MINLOT)) G_lots_536 MarketInfo(Symbol(), MODE_MINLOT) * GridRatioLot;
       if (
    G_lots_544 GridRatioLot MarketInfo(Symbol(), MODE_MINLOT)) G_lots_544 NormalizeDouble(MarketInfo(Symbol(), MODE_MINLOT) * GridRatioLot RatioGi_552);
       if (
    G_lots_536 G_lots_544 && ((!OppositeGrid) && (!OppositeGridwhenR))) {
          
    Gd_680 G_lots_536;
          
    G_lots_536 G_lots_544;
          
    G_lots_544 Gd_680;
       }
       
    Gd_424 AccountBalance();
       if (
    UseMoneyManagement) {
          if (
    AutoProfit && RiskPercent 0.0) {
             
    ProfitTargetUSD NormalizeDouble((G_lots_536 f0_18(G_symbol_488) + G_lots_544 f0_18(G_symbol_496)) / 2.0 RiskPercent + (f0_13(G_symbol_496) + f0_13(G_symbol_488)),
                
    0);
          }
          if ((!
    AutoProfit) && ProfitPercent 0.0ProfitTargetUSD Gd_424 * (ProfitPercent 100.0) / 100.0 Gd_424;
          if (
    LossPercent 0.0MaxLossUSD Gd_424 Gd_424 * (100 LossPercent) / 100.0;
       }
       
    double Ld_64 f0_6();
       if (
    ProfitTargetUSD 0.0 && Ld_64 ProfitTargetUSD) {
          if (
    AlertWhenprofitPlaySound("news.wav");
          
    f0_28("Signal""Profit Percent was reached :D !!! " DoubleToStr(Ld_640) + " USD"Lime1810102);
          if (
    ScreenSWhenProfitWindowScreenShot("open Result\\ " DoubleToStr(Ld_640) + " USD" ".gif"1078720);
          
    f0_2();
          
    G_symbol_488 "";
          
    G_symbol_496 "";
          
    Gd_472 0;
          
    Gi_652 TRUE;
          
    Gd_424 AccountBalance();
          
    Gi_432 FALSE;
          
    Comment("");
       }
       if (!
    UseLossPOnlywhenRf0_26();
       if (
    f0_7(G_symbol_488G_symbol_4960) == "BUY" && Gi_800 && f0_3() > 1) {
          if (
    AlertWhenreversePlaySound("alert2.wav");
          if (
    ScreenSWhenRWindowScreenShot("open Result\\ " DoubleToStr(Ld_640) + " USD" ".gif"1078720);
          if (
    CloseWhenReverse) {
             
    f0_28("Signal""Closing While Reverse Signal..."White1410102);
             
    f0_2();
             
    G_symbol_488 "";
             
    G_symbol_496 "";
             
    Gd_472 0;
             
    Gi_652 TRUE;
             
    Gd_424 AccountBalance();
             
    Gi_432 FALSE;
             
    Comment("");
          }
          if (
    UseLossPOnlywhenRf0_26();
          if (
    OppositeGridwhenROppositeGrid TRUE;
       }
       if (
    f0_7(G_symbol_488G_symbol_4960) == "SELL" && Gi_796 && f0_3() > 1) {
          if (
    CloseWhenReverse) {
             
    PlaySound("alert2.wav");
             
    f0_28("Signal""Closing While Reverse Signal..."White1410102);
             
    f0_2();
             
    G_symbol_488 "";
             
    G_symbol_496 "";
             
    Gd_472 0;
             
    Gi_652 TRUE;
             
    Gd_424 AccountBalance();
             
    Gi_432 FALSE;
             
    Comment("");
          }
          if (
    UseLossPOnlywhenRf0_26();
          if (
    OppositeGridwhenROppositeGrid TRUE;
       }
       if (!
    StopTrading) {
          
    Comment("\n" 
             
    "\n" 
             
    "\n" 
             
    "opentrade" 
             
    "\n" 
             
    "" 
             
    "\n" 
             
    "" 
             
    "\n" 
             
    "" 
             
    "\n" 
             
    "________________________________" 
             
    "\n" 
             
    "Broker:             " AccountCompany() 
             + 
    "\n" 
             
    "Brokers Time:     " TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS
             + 
    "\n" 
             
    "________________________________" 
             
    "\n" 
             
    "Name:                " AccountName() 
             + 
    "\n" 
             
    "Account Number:   " AccountNumber() 
             + 
    "\n" 
             
    "Account Currency: " AccountCurrency() 
             + 
    "\n" 
          
    "_______________________________" " \n" "Correlation:        " DoubleToStr(Gd_4722) + " \n" "Ratio:                " DoubleToStr(Ratio1) + " \n" "All Orders:         " DoubleToStr(f0_4(),
             
    0) + " / " DoubleToStr(f0_30(), 0) + " \n" "Current Profit:     " DoubleToStr(f0_6(), 0) + " \n" "Profit Target:      " DoubleToStr(ProfitTargetUSD0) +
             
    " \n" "_______________________________" " \n" "Account BALANCE:         " DoubleToStr(AccountBalance(), 2) + " \n" "Account EQUITY:           " DoubleToStr(AccountEquity(),
             
    2) + " \n");
       }
       if (
    f0_30() == && Gi_528 && Gd_472 MinCorr && Gi_432 == FALSE && (!Gi_652) && (!StopTrading)) {
          if (
    AlertWhenentryPlaySound("alert.wav");
          
    ticket_72 0;
          while (
    ticket_72 1) {
             if (
    InitialHedge) {
                
    ticket_72 OrderSend(G_symbol_488OP_SELLG_lots_536NormalizeDouble(MarketInfo(G_symbol_488MODE_BID), f0_31(G_symbol_488)), f0_32(G_symbol_488), 00,
                   
    "Max: " G_symbol_488 " & " G_symbol_496 " BUY "MagicNumber0Red);
             } else {
                
    ticket_72 OrderSend(G_symbol_488OP_BUYG_lots_536NormalizeDouble(MarketInfo(G_symbol_488MODE_ASK), f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " +
                   
    G_symbol_488 " & " G_symbol_496 " BUY "MagicNumber0Red);
             }
             if (
    ticket_72 0) {
                
    Sleep(1000);
                
    RefreshRates();
             }
          }
          
    ticket_72 0;
          while (
    ticket_72 1) {
             
    ticket_72 OrderSend(G_symbol_496OP_BUYG_lots_544NormalizeDouble(MarketInfo(G_symbol_496MODE_ASK), f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " +
                
    G_symbol_488 " & " G_symbol_496 " BUY "MagicNumber0Red);
             if (
    ticket_72 0) {
                
    Sleep(1000);
                
    RefreshRates();
             }
          }
          if (
    Gi_316 == TRUE) {
             for (
    Li_20 1Li_20 <= TotalPendingordersLi_20++) {
                
    ticket_72 OrderSend(G_symbol_488OP_BUYSTOPNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_ASK) + PendingStep Li_20 f0_23(G_symbol_488),
                   
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
                
    ticket_72 OrderSend(G_symbol_496OP_BUYSTOPNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_ASK) + PendingStep Li_20 f0_23(G_symbol_496),
                   
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
             }
             if (
    OppositeGrid) {
                for (
    Li_20 2Li_20 <= TotalPendingordersLi_20++) {
                   
    ticket_72 OrderSend(G_symbol_488OP_SELLSTOPNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_BID) - PendingStep Li_20 f0_23(G_symbol_488),
                      
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
                   
    ticket_72 OrderSend(G_symbol_496OP_SELLSTOPNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_BID) - PendingStep Li_20 f0_23(G_symbol_496),
                      
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
                }
             } else {
                if (!
    InitialHedge) {
                   for (
    Li_20 1Li_20 <= TotalPendingordersLi_20++) {
                      
    ticket_72 OrderSend(G_symbol_488OP_BUYLIMITNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_ASK) - PendingStep Li_20 f0_23(G_symbol_488),
                         
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
                      
    ticket_72 OrderSend(G_symbol_496OP_BUYLIMITNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_ASK) - PendingStep Li_20 f0_23(G_symbol_496),
                         
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
                   }
                }
             }
          }
          if (
    ticket_72 0) {
             Print(
    "OrderSend failed with error #"GetLastError());
             return (
    0);
          }
          
    Sleep(10);
          
    Gi_432 TRUE;
       }
       if (
    f0_30() == && Gi_532 && Gd_472 MinCorr && Gi_432 == FALSE && (!Gi_652) && (!StopTrading)) {
          if (
    AlertWhenentryPlaySound("alert.wav");
          
    ticket_72 0;
          while (
    ticket_72 1) {
             if (
    InitialHedge) {
                
    ticket_72 OrderSend(G_symbol_488OP_BUYG_lots_536NormalizeDouble(MarketInfo(G_symbol_488MODE_ASK), f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " +
                   
    G_symbol_488 " & " G_symbol_496 " SELL "MagicNumber0Red);
             } else {
                
    ticket_72 OrderSend(G_symbol_488OP_SELLG_lots_536NormalizeDouble(MarketInfo(G_symbol_488MODE_BID), f0_31(G_symbol_488)), f0_32(G_symbol_488), 00,
                   
    "Max: " G_symbol_488 " & " G_symbol_496 " SELL "MagicNumber0Red);
             }
             if (
    ticket_72 0) {
                
    Sleep(1000);
                
    RefreshRates();
             }
          }
          
    ticket_72 0;
          while (
    ticket_72 1) {
             
    ticket_72 OrderSend(G_symbol_496OP_SELLG_lots_544NormalizeDouble(MarketInfo(G_symbol_496MODE_BID), f0_31(G_symbol_496)), f0_32(G_symbol_496), 00,
                
    "Max: " G_symbol_488 " & " G_symbol_496 " SELL "MagicNumber0Red);
             if (
    ticket_72 0) {
                
    Sleep(1000);
                
    RefreshRates();
             }
          }
          if (
    Gi_316 == TRUE) {
             for (
    Li_20 1Li_20 <= TotalPendingordersLi_20++) {
                
    ticket_72 OrderSend(G_symbol_488OP_SELLSTOPNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_BID) - PendingStep Li_20 f0_23(G_symbol_488),
                   
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
                
    ticket_72 OrderSend(G_symbol_496OP_SELLSTOPNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_BID) - PendingStep Li_20 f0_23(G_symbol_496),
                   
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Red);
             }
             if (
    OppositeGrid) {
                for (
    Li_20 2Li_20 <= TotalPendingordersLi_20++) {
                   
    ticket_72 OrderSend(G_symbol_488OP_BUYSTOPNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_ASK) + PendingStep Li_20 f0_23(G_symbol_488),
                      
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
                   
    ticket_72 OrderSend(G_symbol_496OP_BUYSTOPNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_ASK) + PendingStep Li_20 f0_23(G_symbol_496),
                      
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
                }
             } else {
                if (!
    InitialHedge) {
                   for (
    Li_20 1Li_20 <= TotalPendingordersLi_20++) {
                      
    ticket_72 OrderSend(G_symbol_488OP_SELLLIMITNormalizeDouble(G_lots_536 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_488MODE_BID) + PendingStep Li_20 f0_23(G_symbol_488),
                         
    f0_31(G_symbol_488)), f0_32(G_symbol_488), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
                      
    ticket_72 OrderSend(G_symbol_496OP_SELLLIMITNormalizeDouble(G_lots_544 GridRatioLotGi_552), NormalizeDouble(MarketInfo(G_symbol_496MODE_BID) + PendingStep Li_20 f0_23(G_symbol_496),
                         
    f0_31(G_symbol_496)), f0_32(G_symbol_496), 00"Max: " G_symbol_488 " & " G_symbol_496 " Grid"G_magic_800Blue);
                   }
                }
             }
          }
          if (
    ticket_72 0) {
             Print(
    "OrderSend failed with error #"GetLastError());
             return (
    0);
          }
          
    Sleep(10);
          
    Gi_432 TRUE;
       }
       
    RefreshRates();
       
    WindowRedraw();
       return (
    0);
    }

    // B8A3F8FB97BA04CFC2A30BFD5FB15645
    double f0_22(string A_symbol_0string A_symbol_8int Ai_16 0) {
       
    double Lda_20[];
       
    double Lda_24[];
       
    double Lda_28[];
       
    double Lda_32[];
       
    double Lda_36[];
       
    double Ld_44;
       
    double Ld_52;
       
    double Ld_60;
       
    ArrayResize(Lda_202.0 cPeriod);
       
    ArrayResize(Lda_242.0 cPeriod);
       
    ArrayResize(Lda_282.0 cPeriod);
       
    ArrayResize(Lda_322.0 cPeriod);
       
    ArrayResize(Lda_362.0 cPeriod);
       for (
    int Li_40 cPeriod 1.0Li_40 >= 0Li_40--) {
          
    Lda_24[Li_40] = iClose(A_symbol_0G_timeframe_188Li_40) - iMA(A_symbol_0G_timeframe_188cPeriod0MODE_SMAPRICE_CLOSELi_40);
          
    Lda_28[Li_40] = iClose(A_symbol_8G_timeframe_188Li_40) - iMA(A_symbol_8G_timeframe_188cPeriod0MODE_SMAPRICE_CLOSELi_40);
          
    Lda_32[Li_40] = MathPow(Lda_24[Li_40], 2);
          
    Lda_36[Li_40] = MathPow(Lda_28[Li_40], 2);
          
    Ld_44 0;
          
    Ld_52 0;
          
    Ld_60 0;
          for (
    int Li_68 cPeriod 1.0Li_68 >= 0Li_68--) {
             
    Ld_44 += (Lda_24[Li_40 Li_68]) * (Lda_28[Li_40 Li_68]);
             
    Ld_52 += Lda_32[Li_40 Li_68];
             
    Ld_60 += Lda_36[Li_40 Li_68];
          }
          if (
    Ld_52 Ld_60 0.0Lda_20[Li_40] = Ld_44 MathSqrt(Ld_52 Ld_60);
       }
       return (
    Lda_20[Ai_16]);
    }

    // 13A2725CD087895B12CCDC6D026BFC6C
    int f0_2() {
       
    int cmd_8;
       
    bool Li_12;
       
    G_symbol_488 "";
       
    G_symbol_496 "";
       
    Gd_472 0;
       
    Gi_796 0;
       
    Gi_800 0;
       
    Gi_804 0;
       
    Gi_808 0;
       
    int order_total_0 OrdersTotal();
       for (
    int pos_4 order_total_0 1pos_4 >= 0pos_4--) {
          
    OrderSelect(pos_4SELECT_BY_POS);
          
    cmd_8 OrderType();
          
    Li_12 FALSE;
          if (
    OrderMagicNumber() == MagicNumber || OrderMagicNumber() == G_magic_80) {
             switch (
    cmd_8) {
             case 
    OP_BUY:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(MarketInfo(OrderSymbol(), MODE_BID), f0_31(OrderSymbol())), f0_32(OrderSymbol()), Blue);
                }
                break;
             case 
    OP_SELL:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderClose(OrderTicket(), OrderLots(), NormalizeDouble(MarketInfo(OrderSymbol(), MODE_ASK), f0_31(OrderSymbol())), f0_32(OrderSymbol()), Red);
                }
                break;
             case 
    OP_BUYSTOP:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderDelete(OrderTicket());
                }
                break;
             case 
    OP_SELLSTOP:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderDelete(OrderTicket());
                }
                break;
             case 
    OP_BUYLIMIT:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderDelete(OrderTicket());
                }
                break;
             case 
    OP_SELLLIMIT:
                while (
    Li_12 == 0) {
                   
    RefreshRates();
                   
    Li_12 OrderDelete(OrderTicket());
                }
             }
             if (
    Li_12 == FALSE) {
                Print(
    "Order "OrderTicket(), " failed to close. Error:"GetLastError());
                
    Sleep(3000);
             }
          }
       }
       return (
    0);
    }

    // 97D674F5CF29B678D98C1105023EC943
    double f0_19() {
       
    double Ld_ret_0 AccountFreeMargin() * RiskPercent 100.0 AccountLeverage() / MarketInfo(Symbol(), MODE_LOTSIZE);
       if (
    OppositeGridLd_ret_0 /= 2.0;
       if (!
    Aggressive_GroodgeLd_ret_0 Ld_ret_0 GridRatioLot / (2.0 GridRatioLot TotalPendingorders 2);
       if (
    Ld_ret_0 MarketInfo(Symbol(), MODE_MINLOT)) Ld_ret_0 MarketInfo(Symbol(), MODE_MINLOT);
       if (
    Ld_ret_0 MarketInfo(Symbol(), MODE_MAXLOT)) Ld_ret_0 MarketInfo(Symbol(), MODE_MAXLOT);
       return (
    Ld_ret_0);
    }

    // EBEF1CD3FBE8E1B1C7362068F6C1343C
    int f0_30() {
       
    int count_0 0;
       for (
    int pos_4 0pos_4 OrdersTotal(); pos_4++) {
          if (
    OrderSelect(pos_4SELECT_BY_POSMODE_TRADES))
             if (
    OrderMagicNumber() == MagicNumber || OrderMagicNumber() == G_magic_80count_0++;
       }
       return (
    count_0);
    }

    // 25BC4C8626ED290D5CBF66C41953518C
    int f0_4() {
       
    int count_0 0;
       for (
    int pos_4 0pos_4 OrdersTotal(); pos_4++) {
          if (
    OrderSelect(pos_4SELECT_BY_POSMODE_TRADES))
             if (
    OrderMagicNumber() == MagicNumber || OrderMagicNumber() == G_magic_80 && OrderType() == OP_SELL || OrderType() == OP_BUYcount_0++;
       }
       return (
    count_0);
    }

    // A139256E7FC9822D765E89F0EA6539FE
    double f0_20(string A_symbol_0) {
       
    int cmd_8;
       
    double order_open_price_12 1000003600;
       
    int order_total_20 OrdersTotal();
       
    double order_open_price_24 0.0;
       for (
    int pos_32 order_total_20 1pos_32 >= 0pos_32--) {
          
    OrderSelect(pos_32SELECT_BY_POS);
          if (
    OrderSymbol() == A_symbol_0 && OrderMagicNumber() == G_magic_80) {
             
    cmd_8 OrderType();
             if (
    cmd_8 == OP_BUYSTOP || cmd_8 == OP_BUYLIMIT || cmd_8 == OP_BUY) {
                
    order_open_price_24 OrderOpenPrice();
                if (
    order_open_price_24 order_open_price_12order_open_price_12 order_open_price_24;
             }
          }
       }
       return (
    order_open_price_12);
    }

    // CD832D9C9194B5E935C06477BD51C896
    double f0_25(string A_symbol_0) {
       
    int cmd_8;
       
    double order_open_price_12 0.0;
       
    int order_total_20 OrdersTotal();
       
    double order_open_price_24 0.0;
       for (
    int pos_32 order_total_20 1pos_32 >= 0pos_32--) {
          
    OrderSelect(pos_32SELECT_BY_POS);
          if (
    OrderSymbol() == A_symbol_0 && OrderMagicNumber() == G_magic_80) {
             
    cmd_8 OrderType();
             if (
    cmd_8 == OP_SELLLIMIT || cmd_8 == OP_SELLSTOP || cmd_8 == OP_SELL) {
                
    order_open_price_24 OrderOpenPrice();
                if (
    order_open_price_24 order_open_price_12order_open_price_12 order_open_price_24;
             }
          }
       }
       return (
    order_open_price_12);
    }

    // 9582C3E4AAC2054C18B7DF86BF2DE1B2
    int f0_17() {
       
    int cmd_0;
       
    int count_4 0;
       
    int order_total_8 OrdersTotal();
       for (
    int pos_12 order_total_8 1pos_12 >= 0pos_12--) {
          
    OrderSelect(pos_12SELECT_BY_POS);
          if (
    OrderMagicNumber() == G_magic_80) {
             
    cmd_0 OrderType();
             switch (
    cmd_0) {
             case 
    OP_BUYSTOP:
             case 
    OP_BUYLIMIT:
                
    count_4++;
             }
          }
       }
       return (
    count_4);
    }

    // DF4A1C74EA3688083F090C63CB84048B
    int f0_27() {
       
    int cmd_0;
       
    int count_4 0;
       
    int order_total_8 OrdersTotal();
       for (
    int pos_12 order_total_8 1pos_12 >= 0pos_12--) {
          
    OrderSelect(pos_12SELECT_BY_POS);
          if (
    OrderMagicNumber() == G_magic_80) {
             
    cmd_0 OrderType();
             switch (
    cmd_0) {
             case 
    OP_SELLLIMIT:
             case 
    OP_SELLSTOP:
                
    count_4++;
             }
          }
       }
       return (
    count_4);
    }

    // 794A17DC939A88D4ED320F2F4C42EB3D
    void f0_11() {
       
    double minlot_40;
       
    string symbol_0 f0_9();
       
    string symbol_8 f0_14();
       
    G_symbol_488 symbol_0;
       
    G_symbol_496 symbol_8;
       
    string Ls_16 "Max: " symbol_0 " & " symbol_8 " GRID";
       
    Gd_472 f0_22(symbol_0symbol_80);
       
    int Li_32 StringFind(f0_12(), "BUY"0);
       
    int Li_36 StringFind(f0_12(), "SELL"0);
       
    int Li_24 f0_27();
       
    int Li_28 f0_17();
       if (
    TrailStop 0) {
          
    Gi_420 TrailStop;
          
    f0_15(symbol_0Gi_420);
       }
       if (
    TrailStop 0) {
          
    Gi_420 TrailStop;
          
    f0_15(symbol_8Gi_420);
       }
       if (
    PipDivergence 0.0) {
          if (
    Li_24 || Li_36 || OppositeGrid) {
             if (
    Li_32 && OppositeGridGd_788 2.0 PipDivergence;
             else 
    Gd_788 PipDivergence;
             if (
    MarketInfo(symbol_0MODE_BID) - f0_25(symbol_0) > Gd_788 f0_23(symbol_0)) {
                
    minlot_40 NormalizeDouble(f0_1(symbol_0) / GridRatioLotGi_552);
                if (
    minlot_40 MarketInfo(Symbol(), MODE_MINLOT)) minlot_40 MarketInfo(Symbol(), MODE_MINLOT);
                
    f0_8(symbol_0OP_SELLSTOP);
                
    f0_10(symbol_0Ls_16minlot_40);
             }
             if (
    MarketInfo(symbol_8MODE_BID) - f0_25(symbol_8) > Gd_788 f0_23(symbol_8)) {
                
    minlot_40 NormalizeDouble(f0_1(symbol_8) / GridRatioLotGi_552);
                if (
    minlot_40 MarketInfo(Symbol(), MODE_MINLOT)) minlot_40 MarketInfo(Symbol(), MODE_MINLOT);
                
    f0_8(symbol_8OP_SELLSTOP);
                
    f0_10(symbol_8Ls_16minlot_40);
             }
          }
          if (
    Li_28 || Li_32 || OppositeGrid) {
             if (
    Li_36 && OppositeGridGd_788 2.0 PipDivergence;
             else 
    Gd_788 PipDivergence;
             if (
    f0_20(symbol_0) - MarketInfo(symbol_0MODE_ASK) > Gd_788 f0_23(symbol_0)) {
                
    Gs_664 symbol_0 " Lowest price :" DoubleToStr(f0_20(symbol_0), 2) + "  Cuurent Price" DoubleToStr(MarketInfo(symbol_0MODE_ASK), 2);
                
    minlot_40 NormalizeDouble(f0_1(symbol_0) / GridRatioLotGi_552);
                if (
    minlot_40 MarketInfo(Symbol(), MODE_MINLOT)) minlot_40 MarketInfo(Symbol(), MODE_MINLOT);
                
    f0_8(symbol_0OP_BUYSTOP);
                
    f0_16(symbol_0Ls_16minlot_40);
             }
             if (
    f0_20(symbol_8) - MarketInfo(symbol_8MODE_ASK) > Gd_788 f0_23(symbol_8)) {
                
    Gs_672 "" DoubleToStr(f0_20(symbol_8) - MarketInfo(symbol_8MODE_ASK), 5);
                
    minlot_40 NormalizeDouble(f0_1(symbol_8) / GridRatioLotGi_552);
                if (
    minlot_40 MarketInfo(Symbol(), MODE_MINLOT)) minlot_40 MarketInfo(Symbol(), MODE_MINLOT);
                
    f0_8(symbol_8OP_BUYSTOP);
                
    f0_16(symbol_8Ls_16minlot_40);
             }
          }
       }
    }

    // 6ADDBFC636E1D1A559CD345B2EFD1A12
    string f0_9() {
       
    string Ls_unused_12;
       
    int str_len_0 StringLen(Gsa_464[1]);
       
    string Ls_4 f0_12();
       return (
    StringSubstr(Ls_45str_len_0));
    }

    // 8C9C183F2BFDE3C37078223FA3C2E0D0
    string f0_14() {
       
    string Ls_unused_12;
       
    int str_len_0 StringLen(Gsa_464[1]);
       
    string Ls_4 f0_12();
       return (
    StringSubstr(Ls_4str_len_0 3str_len_0));
    }

    // 812247ED9EEF2CB1CBEDFBE0BF85611C
    string f0_12() {
       
    string Ls_unused_4;
       
    int order_total_0 OrdersTotal();
       for (
    int pos_12 order_total_0 1pos_12 >= 0pos_12--) {
          
    OrderSelect(pos_12SELECT_BY_POS);
          if (
    OrderMagicNumber() == MagicNumber) return (OrderComment());
       }
       return (
    "");
    }

    // 6D65ACEDCA0419D05FFF7B187FFFF2B8
    void f0_10(string A_symbol_0string A_comment_8double A_lots_16) {
       
    double Ld_28;
       if (
    Gi_316 == TRUE) {
          for (
    int Li_24 1Li_24 <= TotalPendingordersLi_24++) {
             
    Ld_28 NormalizeDouble(MarketInfo(A_symbol_0MODE_BID) - PendingStep Li_24 f0_23(A_symbol_0), f0_31(A_symbol_0));
             if (
    f0_0(A_symbol_0Ld_28PendingStep f0_23(A_symbol_0), 0) == 0) {
                
    G_ticket_460 OrderSend(A_symbol_0OP_SELLSTOPA_lots_16NormalizeDouble(MarketInfo(A_symbol_0MODE_BID) - PendingStep Li_24 f0_23(A_symbol_0), f0_31(A_symbol_0)),
                   
    f0_32(A_symbol_0), 00A_comment_8G_magic_800Red);
             }
          }
          if (
    G_ticket_460 0) Print("OrderSend failed with error #"GetLastError());
       }
    }

    // 901E5EE694119FCC7DDBC18E0B6F3FB6
    void f0_16(string A_symbol_0string A_comment_8double A_lots_16) {
       
    double Ld_28;
       if (
    Gi_316 == TRUE) {
          for (
    int Li_24 1Li_24 <= TotalPendingordersLi_24++) {
             
    Ld_28 NormalizeDouble(MarketInfo(A_symbol_0MODE_ASK) + PendingStep Li_24 f0_23(A_symbol_0), f0_31(A_symbol_0));
             if (
    f0_0(A_symbol_0Ld_28PendingStep f0_23(A_symbol_0), 1) == 0) {
                
    G_ticket_460 OrderSend(A_symbol_0OP_BUYSTOPA_lots_16NormalizeDouble(MarketInfo(A_symbol_0MODE_ASK) + PendingStep Li_24 f0_23(A_symbol_0), f0_31(A_symbol_0)),
                   
    f0_32(A_symbol_0), 00A_comment_8G_magic_800Blue);
             }
          }
          if (
    G_ticket_460 0) Print("OrderSend failed with error #"GetLastError());
       }
    }

    // 6135E1CB8CC22CA693917C921B919F42
    void f0_8(string A_symbol_0int A_cmd_8) {
       
    int cmd_12;
       
    int order_total_16 OrdersTotal();
       
    bool is_deleted_20 FALSE;
       for (
    int pos_24 order_total_16 1pos_24 >= 0pos_24--) {
          
    OrderSelect(pos_24SELECT_BY_POS);
          if (
    OrderSymbol() == A_symbol_0 && OrderMagicNumber() == G_magic_80) {
             
    cmd_12 OrderType();
             if (
    cmd_12 == A_cmd_8is_deleted_20 OrderDelete(OrderTicket());
          }
       }
       
    ObjectsDeleteAll(EMPTY, OBJ_ARROW);
    }

    // 8D9D0E572AC2F9C7B86B2727CC509B56
    void f0_15(string A_symbol_0int Ai_8) {
       
    int error_12;
       
    bool bool_16;
       if (
    Ai_8 f0_32(A_symbol_0) < MarketInfo(A_symbol_0MODE_STOPLEVEL)) Ai_8 MarketInfo(A_symbol_0MODE_STOPLEVEL) / f0_32(A_symbol_0);
       for (
    int pos_20 0pos_20 OrdersTotal(); pos_20++) {
          
    OrderSelect(pos_20SELECT_BY_POSMODE_TRADES);
          if (
    OrderSymbol() == A_symbol_0 && OrderMagicNumber() == G_magic_80) {
             if (
    OrderType() == OP_BUY) {
                if (
    NormalizeDouble(MarketInfo(OrderSymbol(), MODE_ASK) - OrderOpenPrice(), f0_31(A_symbol_0)) <= NormalizeDouble(Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0))) continue;
                if (
    NormalizeDouble(OrderStopLoss(), f0_31(A_symbol_0)) >= NormalizeDouble(MarketInfo(OrderSymbol(), MODE_BID) - Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0))) continue;
                
    bool_16 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(MarketInfo(OrderSymbol(), MODE_BID) - Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0)), OrderTakeProfit(),
                   
    255);
                if (
    bool_16 == TRUE) continue;
                
    error_12 GetLastError();
                Print(
    "LastError = "error_12"     TRAIL  =" NormalizeDouble(Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0)));
                continue;
             }
             if (
    OrderType() == OP_SELL) {
                if (
    NormalizeDouble(OrderOpenPrice() - MarketInfo(OrderSymbol(), MODE_BID), f0_31(A_symbol_0)) > NormalizeDouble(Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0))) {
                   if (
    NormalizeDouble(OrderStopLoss(), f0_31(A_symbol_0)) > NormalizeDouble(MarketInfo(OrderSymbol(), MODE_ASK) + Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0)) || OrderStopLoss() == 0.0) {
                      
    bool_16 OrderModify(OrderTicket(), OrderOpenPrice(), MarketInfo(OrderSymbol(), MODE_ASK) + NormalizeDouble(Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0)), OrderTakeProfit(),
                         
    255);
                      if (
    bool_16 != TRUE) {
                         
    error_12 GetLastError();
                         Print(
    "LastError = "error_12"     TRAIL  =" NormalizeDouble(Ai_8 f0_23(A_symbol_0), f0_31(A_symbol_0)));
                      }
                   }
                }
             }
          }
       }
    }

    // 970375831C5B4EAD38E5068C290B1BC3
    double f0_18(string As_0) {
       
    double Ld_ret_16;
       
    string Ls_24 StringSubstr(As_003);
       
    string Ls_32 StringSubstr(As_033);
       
    string Ls_40 StringSubstr(As_03StringLen(As_0) - 3);
       
    double Ld_8 MarketInfo(As_0MODE_LOTSIZE) * f0_23(As_0);
       if (
    Ls_32 == "USD"Ld_ret_16 Ld_8;
       else {
          if (
    Ls_24 == "USD"Ld_ret_16 Ld_8 MarketInfo(As_0MODE_BID);
          else {
             if (
    f0_21("USD" Ls_40)) Ld_ret_16 Ld_8 MarketInfo("USD" Ls_40MODE_BID);
             else 
    Ld_ret_16 Ld_8 MarketInfo(Ls_32 "USD"MODE_BID);
          }
       }
       return (
    Ld_ret_16);
    }

    // AEC7C17E4573A4950EC836848E353A6D
    int f0_21(string A_symbol_0) {
       return (
    MarketInfo(A_symbol_0MODE_LOTSIZE) > 0.0);
    }

    // 48DE604C3D65D811D72576955A7276F5
    int f0_6() {
       
    int cmd_16;
       
    bool Li_20;
       
    int order_total_0 OrdersTotal();
       
    int Li_4 0;
       
    int Li_ret_8 0;
       for (
    int pos_12 0pos_12 order_total_0pos_12++) {
          
    OrderSelect(pos_12SELECT_BY_POS);
          
    cmd_16 OrderType();
          
    Li_20 FALSE;
          if (
    OrderMagicNumber() == MagicNumber || OrderMagicNumber() == G_magic_80Li_20 TRUE;
          if (
    Li_20) {
             switch (
    cmd_16) {
             case 
    OP_BUY:
                
    Li_4 += MathRound((MarketInfo(OrderSymbol(), MODE_BID) - OrderOpenPrice()) / MarketInfo(OrderSymbol(), MODE_POINT));
                
    Li_ret_8 += OrderProfit();
                break;
             case 
    OP_SELL:
                
    Li_4 += MathRound((OrderOpenPrice() - MarketInfo(OrderSymbol(), MODE_ASK)) / MarketInfo(OrderSymbol(), MODE_POINT));
                
    Li_ret_8 += OrderProfit();
             }
          }
       }
       return (
    Li_ret_8);
    }

    // 0F98F581C7F79BA7F4C181DC34070CD0
    double f0_1(string A_symbol_0) {
       
    double order_lots_12;
       
    int order_total_8 OrdersTotal();
       for (
    int pos_20 order_total_8 1pos_20 >= 0pos_20--) {
          
    OrderSelect(pos_20SELECT_BY_POS);
          if (
    OrderMagicNumber() == MagicNumber && OrderSymbol() == A_symbol_0) {
             
    order_lots_12 OrderLots();
             return (
    order_lots_12);
          }
       }
       return (
    0.0);
    }

    // E2E55FE76D835B9574F0F0BBDE4389D4
    void f0_28(string A_name_0string A_text_8color A_color_16int A_fontsize_20 14int A_x_24 20int A_y_28 20int A_corner_32 3) {
       
    ObjectCreate(A_name_0OBJ_LABEL000);
       
    ObjectSetText(A_name_0A_text_8A_fontsize_20"Arial"A_color_16);
       
    ObjectSet(A_name_0OBJPROP_CORNERA_corner_32);
       
    ObjectSet(A_name_0OBJPROP_XDISTANCEA_x_24);
       
    ObjectSet(A_name_0OBJPROP_YDISTANCEA_y_28);
    }

    // 4564D95D208B850970E4EAAA12B6C30E
    int f0_5(string A_symbol_0) {
       
    double Ld_8 NormalizeDouble(MarketInfo(A_symbol_0MODE_BID), MarketInfo(A_symbol_0MODE_DIGITS));
       
    double ima_16 iMA(A_symbol_0PERIOD_M110MODE_EMAPRICE_CLOSE1);
       
    string Ls_unused_24 "";
       
    int Li_ret_32 255;
       
    int Li_ret_36 65280;
       if (
    ima_16 >= Ld_8) return (Li_ret_32);
       if (
    ima_16 <= Ld_8) return (Li_ret_36);
       return (
    0);
    }

    // F18A553A3C1A5C2B7CAB1DF281ACA9C8
    int f0_32(string A_symbol_0) {
       
    int Li_ret_8;
       if (
    MarketInfo(A_symbol_0MODE_DIGITS) == 5.0 || MarketInfo(A_symbol_0MODE_DIGITS) == 3.0Li_ret_8 10;
       else 
    Li_ret_8 1;
       return (
    Li_ret_8);
    }

    // BC08DBBB3701378DD91F02A65F70E48C
    double f0_23(string A_symbol_0) {
       
    double Ld_ret_8;
       if (
    MarketInfo(A_symbol_0MODE_DIGITS) < 4.0) {
          
    Ld_ret_8 0.01;
          
    Ld_ret_8 NormalizeDouble(Ld_ret_82);
       } else {
          
    Ld_ret_8 0.0001;
          
    Ld_ret_8 NormalizeDouble(Ld_ret_84);
       }
       return (
    Ld_ret_8);
    }

    // EC62749AAD44122CB1A8FBFEDE172581
    int f0_31(string A_symbol_0) {
       
    int Li_ret_8;
       if (
    MarketInfo(A_symbol_0MODE_DIGITS) < 4.0Li_ret_8 2;
       else 
    Li_ret_8 4;
       return (
    Li_ret_8);
    }

    // 04E9FE315800B5A585791126864AC121
    int f0_0(string A_symbol_0double Ad_8double Ad_16int Ai_24) {
       
    int cmd_28;
       
    int order_total_32 OrdersTotal();
       for (
    int pos_36 0pos_36 order_total_32pos_36++) {
          
    OrderSelect(pos_36SELECT_BY_POS);
          if (
    OrderSymbol() == A_symbol_0 && OrderMagicNumber() == G_magic_80) {
             
    cmd_28 OrderType();
             if (
    MathAbs(OrderOpenPrice() - Ad_8) < 0.9 Ad_16)
                if ((
    Ai_24 && cmd_28 == OP_BUY) || ((!Ai_24) && cmd_28 == OP_SELL)) return (1);
          }
       }
       return (
    0);
    }

    // 4E2AEC2DEB74293AB63F070D048DD33F
    string f0_7(string A_symbol_0string A_symbol_8int Ai_16 1) {
       
    string Ls_ret_20 "";
       
    int Li_28 StringFind(f0_12(), "BUY"0);
       
    int Li_32 StringFind(f0_12(), "SELL"0);
       if (
    Gi_160) {
          
    G_imacd_692 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN1);
          
    G_imacd_700 iMACD(A_symbol_8G_timeframe_40812269PRICE_CLOSEMODE_MAIN1);
          
    G_imacd_828 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN2);
          
    G_imacd_836 iMACD(A_symbol_8G_timeframe_40812269PRICE_CLOSEMODE_MAIN2);
          if (
    Ai_16 == 1) {
             if ((
    G_imacd_828 G_imacd_692 && G_imacd_828 <= 0.0 && G_imacd_692 0.0 && G_imacd_700 0.0) || (G_imacd_836 G_imacd_700 && G_imacd_836 <= 0.0 && G_imacd_700 0.0 &&
                
    G_imacd_692 0.0)) Ls_ret_20 "BUY";
             else {
                if ((
    G_imacd_828 G_imacd_692 && G_imacd_828 >= 0.0 && G_imacd_692 0.0 && G_imacd_700 0.0) || (G_imacd_836 G_imacd_700 && G_imacd_836 >= 0.0 && G_imacd_700 0.0 &&
                   
    G_imacd_692 0.0)) Ls_ret_20 "SELL";
                else 
    Ls_ret_20 "";
             }
          } else {
             if (
    Ai_16 == 0) {
                if (
    Li_32 && G_imacd_692 0.0 || G_imacd_700 0.0Ls_ret_20 "BUY";
                if (
    Li_28 && G_imacd_692 0.0 || G_imacd_700 0.0Ls_ret_20 "SELL";
             }
          }
       } else {
          if (
    Gi_164) {
             
    G_imacd_692 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN1);
             
    G_imacd_700 iMACD(A_symbol_8G_timeframe_40812269PRICE_CLOSEMODE_MAIN1);
             
    G_imacd_708 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_SIGNAL1);
             
    G_imacd_716 iMACD(A_symbol_8G_timeframe_40812269PRICE_CLOSEMODE_SIGNAL1);
             
    G_imacd_868 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN0);
             
    G_imacd_860 iMACD(A_symbol_8G_timeframe_40812269PRICE_CLOSEMODE_MAIN0);
             if (
    Ai_16 == 1) {
                if (
    G_imacd_692 G_imacd_708 && G_imacd_700 G_imacd_716 && G_imacd_868 G_imacd_692 && G_imacd_860 G_imacd_700Ls_ret_20 "BUY";
                else {
                   if (
    G_imacd_692 G_imacd_708 && G_imacd_700 G_imacd_716 && G_imacd_868 G_imacd_692 && G_imacd_860 G_imacd_700Ls_ret_20 "SELL";
                   else 
    Ls_ret_20 "";
                }
             } else {
                if (
    Ai_16 == 0) {
                   if (
    Li_32 && G_imacd_700 G_imacd_716 || G_imacd_692 G_imacd_708Ls_ret_20 "BUY";
                   if (
    Li_28 && G_imacd_692 G_imacd_708 || G_imacd_700 G_imacd_716Ls_ret_20 "SELL";
                }
             }
          }
       }
       return (
    Ls_ret_20);
    }

    // DEEA7523B075D0BB983FEF6367E7955F
    void f0_26() {
       if (
    MaxLossUSD 0.0 && f0_6() < (-1.0 MaxLossUSD)) {
          
    f0_28("Signal""Loss Percent was reached :( "Red1810102);
          
    f0_2();
          
    G_symbol_488 "";
          
    G_symbol_496 "";
          
    Gd_472 0;
          
    Gi_652 TRUE;
          
    Gd_424 AccountBalance();
          
    Gi_432 FALSE;
          
    Comment("");
       }
    }

    // 82D8A41558332B3FA8947EE16078D1AE
    int f0_13(string As_0) {
       
    int cmd_8;
       
    int count_12 0;
       
    int order_total_16 OrdersTotal();
       for (
    int pos_20 order_total_16 1pos_20 >= 0pos_20--) {
          
    OrderSelect(pos_20SELECT_BY_POS);
          if (
    OrderMagicNumber() == G_magic_80 && Symbol() == As_0) {
             
    cmd_8 OrderType();
             switch (
    cmd_8) {
             case 
    OP_SELL:
             case 
    OP_BUY:
                
    count_12++;
             }
          }
       }
       return (
    count_12);
    }

    // C2A6FDD502450B17C61E1808DFBDD17B
    int f0_24(string A_symbol_0) {
       
    int Li_ret_8;
       
    G_ibands_556 iBands(A_symbol_0G_timeframe_408G_period_400Gd_4120PRICE_CLOSEMODE_LOWER0);
       
    G_ibands_564 iBands(A_symbol_0G_timeframe_408G_period_400Gd_4120PRICE_CLOSEMODE_UPPER0);
       
    Gd_572 = (G_ibands_556 G_ibands_564) / 2.0;
       if (
    MarketInfo(A_symbol_0MODE_ASK) > Gd_572Li_ret_8 16711680;
       else {
          if (
    MarketInfo(A_symbol_0MODE_ASK) < Gd_572Li_ret_8 255;
          else 
    Li_ret_8 16777215;
       }
       return (
    Li_ret_8);
    }

    // 1EF2723644CFADBCFA3F876DF430B047
    int f0_3() {
       
    int cmd_8;
       
    int count_0 0;
       for (
    int pos_4 0pos_4 OrdersTotal(); pos_4++) {
          if (
    OrderSelect(pos_4SELECT_BY_POSMODE_TRADES)) {
             if (
    OrderMagicNumber() == MagicNumber) {
                
    cmd_8 OrderType();
                if (
    cmd_8 == OP_BUY || cmd_8 == OP_SELLcount_0++;
             }
          }
       }
       return (
    count_0);
    }

    // E83DDEF04D6E2357A5DC455E6F3A91A5
    string f0_29(string A_symbol_0) {
       
    string Ls_ret_8 "";
       if (
    Gi_160) {
          
    G_imacd_692 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN0);
          
    G_imacd_828 iMACD(A_symbol_0G_timeframe_40812269PRICE_CLOSEMODE_MAIN1);
          if (
    G_imacd_828 G_imacd_692 && G_imacd_828 <= 0.0 && G_imacd_692 0.0Ls_ret_8 "BUY";
          else {
             if (
    G_imacd_828 G_imacd_692 && G_imacd_828 >= 0.0 && G_imacd_692 0.0Ls_ret_8 "SELL";
             else 
    Ls_ret_8 "";
          }
       }
       return (
    Ls_ret_8);

    الاستاذ اسامه
    عند تركيب هذا الاكسبيرت على الشارت يعطيني خطا
    Invalid Correlation Time Frame
    ركبته على نفس التايم فريم وعدلته مثله
    مع العلم اني راجعته اكثر من مره ولم اعرف اين الخطا
    ارجو المساعده

المواضيع المتشابهه

  1. موضوع مخصص للاكسبيرتات اللتي يستخدمها الاعضاء على الحقيقي,,عندك اكسبيرت ممتاز ضعه هنا
    By محمد معمو in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 11
    آخر مشاركة: 15-12-2023, 02:03 PM
  2. عااااااااااااجل ( موضوع مخصص للفرص الفورية)!!!
    By عاشق الذبذبـة in forum توقعات وتوصيات سوق العملات
    مشاركات: 280
    آخر مشاركة: 27-08-2009, 10:30 PM

الاوسمة لهذا الموضوع


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