النتائج 1 إلى 3 من 3
  1. #1
    الصورة الرمزية الـوليد
    الـوليد غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Nov 2008
    الإقامة
    الأرجنتين
    المشاركات
    3,877

    افتراضي مطلوب تعديل الاكسبيرت

    مطلوب تغيير اعدادات لاستراتيجية الماكد بحيث يسوي امر بيع اذا تحقق الشرط للاكسبيرت الاول
    ولاكسبيرت الثاني يسوي امر شراء
    اي ان المطلوب اكسبيرتين ... اي خانه يتم تعديلها




    //================================================== ================================================== ===
    // Please do not edit this script. In order to make any changes, clone it and save it under a new name
    //================================================== ================================================== ===

    //================================================== ========================================
    // This strategy uses the MACD indicator. It opens a Buy position when the MACD rises above
    // its Signal line, and a Sell position, when the MACD falls below its Signal line.
    // It also outputs a message into the log when a position is opened.
    //================================================== ========================================
    const
    StrategyName = 'MACD Strategy';
    var //declaration of the variables
    History: TCandleHistory;
    Account: TAccount;
    Amount, Point: Double;
    Stop, Limit, TraderRange: Integer;
    MACD: TIndicatorMACD;
    procedure OnCreate;
    begin
    AddCandleHistorySetting(@History, 'History', '', CI_30_Minutes, 100); //setting up the chart history
    History.OnNewCandleEvent := @OnNewCandle; //indicating the procedure to run when a new candle opens
    AddAccountSetting(@Account, 'Account', ''); //the account number
    AddFloatSetting(@Amount, 'Amount(Lots)', 1); //the number of lots
    AddIntegerSetting(@Stop, 'Stop', 20); //setting up stop in pips
    AddIntegerSetting(@Limit, 'Limit', 30); //setting up limit in pips
    AddIntegerSetting(@TraderRange, 'Trader Range', 0); //setting up the trader range in pips
    MACD := TIndicatorMACD.Create(History, 'MACD'); //creating the MACD indicator
    MACD.PeriodShorterEMA := 12;
    MACD.PeriodLongerEMA := 26;
    MACD.PeriodForSignal := 9; //setting up the MACD indicator periods
    end;
    // this procedure runs when a new candle opens
    procedure OnNewCandle;
    begin
    Point := History.Instrument.PointSize;
    // if the MACD rises above its Signal line
    if (MACD.Graph.Last(1) > MACD.SignalGraph.Last(1))
    and (MACD.Graph.Last(2) < MACD.SignalGraph.Last(2)) then
    begin
    // output the message into the log
    log ('The MACD crossed the Signal line bottom-up. A Buy position opened.');
    // open a Buy position
    CreateOrder(History.Instrument, Account, Amount, bsBuy,
    History.Instrument.Sell - Point*Stop,
    History.Instrument.Sell + Point*Limit, TraderRange, 'MACDTrade');
    end;

    // if the MACD falls below its Signal line
    if (MACD.Graph.Last(1) < MACD.SignalGraph.Last(1))
    and (MACD.Graph.Last(2) > MACD.SignalGraph.Last(2)) then
    begin
    // output the message into the log
    log ('The MACD crossed the Signal line top-down. A Sell position opened.');
    // open a Sell position
    CreateOrder(History.Instrument, Account, Amount, bsSell,
    History.Instrument.Buy + Point*Stop,
    History.Instrument.Buy - Point*Limit, TraderRange, 'MACDTrade');
    end;
    end;
    // this procedure runs when some changes occur in the Open Positions list
    procedure OnTradeChange(const Action: TDataModificationType; const Trade: TTrade);
    begin
    // if a new trade opened
    if Action=dmtInsert then
    begin
    // output the trade information into the log
    log('Instrument: ' +Trade.Instrument.Name);
    log('Account: ' +Trade.Account.Id);
    log('Amount: ' +FloatToStr(Trade.Amount));
    log('Open rate: ' +FloatToStr(Trade.OpenRate));
    end;
    end;
    آخر تعديل بواسطة الـوليد ، 09-11-2009 الساعة 05:42 PM سبب آخر: املائي
    توقيع العضو
    €$

  2. #2
    الصورة الرمزية Pipsi
    Pipsi غير متواجد حالياً عضو المتداول العربي
    تاريخ التسجيل
    Nov 2007
    المشاركات
    577

    افتراضي رد: مطلوب تعديل الاكسبيرت

    لا تحتاج لعمل إكسبرتين
    فقط أضف الأكسبرت الي شارتين منفصلين ومن نافذت الأكسبرت
    غير Long & short podition الى Long only أو short only

  3. #3
    الصورة الرمزية الـوليد
    الـوليد غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Nov 2008
    الإقامة
    الأرجنتين
    المشاركات
    3,877

    افتراضي رد: مطلوب تعديل الاكسبيرت

    اقتباس المشاركة الأصلية كتبت بواسطة Pipsi مشاهدة المشاركة
    لا تحتاج لعمل إكسبرتين
    فقط أضف الأكسبرت الي شارتين منفصلين ومن نافذت الأكسبرت
    غير Long & short podition الى Long only أو short only
    اشكرك بحاول لان البرنامج مو ميتا تريدر
    توقيع العضو
    €$

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

  1. مطلوب تعديل بسيط على هذا الاكسبيرت
    By wajdyss in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 4
    آخر مشاركة: 03-04-2012, 11:50 PM
  2. ممكن تعديل على الاكسبيرت من مشرفنا الكريم
    By tarek7oot in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 3
    آخر مشاركة: 23-09-2010, 07:29 AM
  3. مطلوب تعديل على هذا الاكسبيرت
    By asd111 in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 8
    آخر مشاركة: 15-06-2010, 03:16 PM
  4. ارجو اجراء تعديل على الاكسبيرت المرفق
    By AYMAN_DOMAIN in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 5
    آخر مشاركة: 18-02-2009, 07:52 AM
  5. ارجو من الخبراء تعديل هذا الاكسبيرت
    By laith707 in forum برمجة المؤشرات واكسبرتات التداول - Experts Advisor EA
    مشاركات: 4
    آخر مشاركة: 24-10-2008, 04:03 PM

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


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