متعرج
Results 1 to 2 of 2

Thread: متعرج

  1. #1
    مرحبا،

    يمكن لأي أحد أن يقول لي ، لماذا لا يعمل Stoploss (_low [shift])؟
    عندما أكون كمؤشر ... فإن [عالية] [منخفضة] و منخفضة [تحول] تعمل بشكل جيد ... ولكن في الخبير لا ... و إذا كان (gt؛ = _high [i]) لا يعمل بشكل صحيح

    شكرًا

    Inserted Code/ --------------------------------------------- --------------------- /| .mq4 |/| حقوق الطبع والنشر © 2005-2007 ، MetaQuotes Software Corp. |/| http://www.metaquotes.net/|/ ----------------------------------------------- ------------------- # حقوق الملكية الفكرية حقوق الطبع والنشر © 2007 ، MetaQuotes Software Corp. #property link http://www.metaquotes.net/extern double Lots = 0.1؛ extern double TrailingStop = 30؛/---- indior parameter extern int ExtDepth = 12؛ extern Int ExtDeviation = 5؛ extern int ExtBackstep = 3؛/---- محابس مؤشر مؤقت Buffer مزدوج رقم 91؛ # 93 ؛؛ double HighMapBuffer # 91؛ # 93 ؛؛ double LowMapBuffer # 91؛ # 93 ؛؛ double _high # 91؛ # 93 ؛؛ double _low # 91؛ # 93 ؛؛ مزدوج آخر مضاعف آخر مستوى الباحث = 3 ؛/recounting's bool عمق downloadhistory = false؛/ ----------------------------------------------- ------------------- /| وظيفة التهيئة مؤشر مخصص/ ----------------------------------------------- ------------------- int init () {IndiorBuffers (7)؛/---- drawing settings/SetIndexStyle (0، DRAW_SECTION)؛/SetIndexStyle (3، DRAW_LINE)؛/-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- SetIndexBuffer (1، HighMapBuffer)؛ SetIndexBuffer (2، LowMapBuffer)؛ SetIndexBuffer (3، lasthigh)؛ SetIndexBuffer (4، lastlow)؛ SetIndexBuffer (5، _high)؛ SetIndexBuffer (6، _low)؛ SetIndexEmptyValue (0،0.0)؛/---- مؤشر الاسم القصير IndiorShortName (ZigZag ( ExtDepth ، ExtDeviation ، ExtBackstep ))؛/---- - تمت التهيئة بالعودة (0)؛ }/ ---------------------------------------------- -------------------- /| |/ ----------------------------------------------- ------------------- int start () {int i، counted_bars = IndiorCounted ()؛ كثافة العمليات ، counterz ، whatlookfor. إنتقال int، back، lasthighpos، lastlowpos؛ double val، res؛ انحناء مزدوج، curhigh؛ كثافة العمليات cnt، التذاكر، total؛ إذا تم تنزيل (history_bars == 0* downloadhistory *)/{ArrayInitialize (Buffer، 0.0)؛ ArrayInitialize (HighMapBuffer، 0.0)؛ ArrayInitialize (LowMapBuffer، 0.0)؛ } if (counted_bars == 0) {limit = Bars-ExtDepth؛ downloadhistory = صحيح. } if (counted_barsgt؛ 0) {while (counterZlt؛ level ilt؛ 100) {res = Buffer # 91؛ i # 93 ؛؛ إذا (res! = 0) counterZ ؛ ط ؛ } أنا--؛ حد = ط. if (LowMapBuffer # 91؛ i # 93؛! = 0) {curlow = LowMapBuffer # 91؛ i # 93 ؛؛ whatlookfor = 1؛ } else {curhigh = HighMapBuffer # 91؛ i # 93 ؛؛ whatlookfor = -1. } لـ (i = limit-1؛ igt؛ = 0؛ i--) {Buffer # 91؛ i # 93؛ = 0.0؛ LowMapBuffer # 91؛ ط # 93؛ = 0.0. HighMapBuffer # 91؛ ط # 93؛ = 0.0. }} لـ (shift = limit؛ shiftgt؛ = 0؛ shift--){val = Low # 91؛ iLowest (NULL، 0، MODE_LOW، ExtDepth، shift) # 93 ؛؛ إذا (val == lastlow) val = 0.0؛ else {lastlow = val؛ if ((Low # 91؛ shift # 93؛ -val) gt؛ (ExtDeviation * Point)) val = 0.0؛ else {for (back = 1؛ backlt؛ = ExtBackstep؛ back ) {res = LowMapBuffer # 91؛ shift back # 93 ؛؛ if ((res! = 0) (resgt؛ val)) LowMapBuffer # 91؛ shift back # 93؛ = 0.0؛ }}} if (Low # 91؛ shift # 93؛ = = val) LowMapBuffer # 91؛ shift # 93؛ = val؛ else LowMapBuffer # 91؛ shift # 93؛ = 0.0؛/--- high val = High # 91؛ iHighest (NULL، 0، MODE_HIGH، ExtDepth، shift) # 93 ؛؛ if (val == lasthigh) val = 0.0؛ else {lasthigh = val؛ if ((val-High # 91؛ shift # 93؛) gt؛ (ExtDeviation * Point)) val = 0.0؛ else {for (back = 1؛ backlt؛ = ExtBackstep؛ back ) {res = HighMapBuffer # 91؛ shift back # 93 ؛؛ if ((res! = 0) (reslt؛ val)) HighMapBuffer # 91؛ shift back # 93؛ = 0.0؛ }}} if (High # 91؛ shift # 93؛ == val) HighMapBuffer # 91؛ shift # 93؛ = val؛ else HighMapBuffer # 91؛ shift # 93؛ = 0.0؛ }/final cutting if (whatlookfor == 0) {lastlow = 0؛ lasthigh = 0؛ } آخر {lastlow = curlow؛ lasthigh = curhigh. } لـ (shift = limit؛ shiftgt؛ = 0؛ shift--) {res = 0.0؛ switch (whatlookfor) {case 0:/look for peak or lawn if (lastlow == 0 lasthigh == 0) {if (HighMapBuffer # 91؛ shift # 93؛! = 0) {lasthigh = High # 91؛ shift # 93 ؛؛ lasthighpos = التحول. whatlookfor = -1. العازلة # 91؛ تحول # 93؛ = lasthigh. الدقة = 1؛ } if (LowMapBuffer # 91؛ shift # 93؛! = 0) {lastlow = Low # 91؛ shift # 93 ؛؛ lastlowpos = التحول. whatlookfor = 1؛ العازلة # 91؛ تحول # 93؛ = lastlow. الدقة = 1؛ } } استراحة؛ case 1:/look for peak if (LowMapBuffer # 91؛ shift # 93؛! = 0.0 LowMapBuffer # 91؛ shift # 93؛ lt؛ lastlow HighMapBuffer # 91؛ shift # 93؛ == 0.0) {Buffer # 91؛ lastlowpos # 93؛ = 0.0. lastlowpos = التحول. lastlow = LowMapBuffer # 91؛ تحول # 93 ؛؛ العازلة # 91؛ تحول # 93؛ = lastlow. الدقة = 1؛ } if (HighMapBuffer # 91؛ shift # 93؛! = 0.0 LowMapBuffer # 91؛ shift # 93؛ == 0.0) {lasthigh = HighMapBuffer # 91؛ shift # 93 ؛؛ lasthighpos = التحول. العازلة # 91؛ تحول # 93؛ = lasthigh. whatlookfor = -1. الدقة = 1؛ } استراحة؛ case -1:/look for lawn if (HighMapBuffer # 91؛ shift # 93؛! = 0.0 HighMapBuffer # 91؛ shift # 93؛ gt؛ lasthigh LowMapBuffer # 91؛ shift # 93؛ == 0.0){Buffer # 91؛ lasthighpos # 93؛ = 0.0؛ lasthighpos = التحول. lasthigh = HighMapBuffer # 91؛ تغيير رقم 93 ؛؛ العازلة # 91؛ تحول # 93؛ = lasthigh. } if (LowMapBuffer # 91؛ shift # 93؛! = 0.0 HighMapBuffer # 91؛ shift # 93؛ == 0.0) {lastlow = LowMapBuffer # 91؛ shift # 93 ؛؛ lastlowpos = التحول. العازلة # 91؛ تحول # 93؛ = lastlow. whatlookfor = 1؛ } استراحة؛ الافتراضي: العودة ؛ }/switch (whatlookfor)}/لـ (shift = limit؛ shiftgt؛ = 0؛ shift--) total = OrdersTotal ()؛ if (totallt؛ 1) {_high # 91؛ i # 93؛ = آخر _low # 91؛ ط # 93؛ = آخر if (Bid gt؛ = _high # 91؛ i # 93؛) OrderSend (Symbol ()، OP_BUY، Lots، Ask، 3، _low # 91؛ i # 93؛، 0، Long، 1،0، Green)؛ آخر إذا كان (Bid lt؛ = _low # 91؛ shift # 93؛) OrderSend (Symbol ()، OP_SELL، Lots، Bid، 3،0،0، Short، 1،0، Red)؛ } العودة (0) ؛ }/ ---------------------------------------------- --------------------

  2. #2
    يمكن لأي شخص من فضلك قل لي كيف لوضع منعرج شكل متعرج على المؤشرات في MT 4؟ نقدر ذلك؟ شكر.

أذونات النشر

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  
  • رمز BB مفعل
  • الابتسامات مفعلة
  • رمز[IMG] مفعل
  • رمز [VIDEO] مفعل
  • رمز HTML غير مفعل
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.