Results 1 to 1 of 1
 2 Attachment(s)    

Thread: Martingala News EA

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008

    Default Martingala News EA

    Entry buy and sell x minutes before the news, then we add orders against the trend waiting for a retracement.

    We use martingale as money management. We close the orders once the profit target is reached.

    extern double multiplier=2.0;            // martingale multiplier, set 1 to disable martingale
    extern string profitmanagement="Profit Management";
    extern double targetpercent=0.1;         // percent of the account balance as profit target
    extern int resetlevel=5;                 // percent target = 0 if long or short orders >= 5
    extern string ordersmanagement="Order Management";
    extern int pipsteps=20;                  // 0=disabled
    extern double pipstepsfactor=1.2;        // factor to multiply pipsteps after each order
    extern double direction=1;               // 1=trend counter, 2=trend follow
    extern string entrylogics="Entry Logics";
    extern int minutesdeploy=60;             // minutes before the news to generate first orders
    extern int minutesbuffer=20;             // minutes around the deploy to enter orders
    extern bool impacthigh=true;             // consider impact high
    extern bool impactmedium=false;          // consider impact medium
    extern bool impactlow=false;             // consider impact low
    You can set the impact factor if wanted. And change the direction if you desire to follow the trend.

    Forward mode :

    You need the FFCAL.mq4 version attached. Put it in the indicators folder.

    Backtesting :

    This EA is one of the rare code that allows backtesting with news (used here as signals). I have rewritten the respective function.

    Put XLOutput.CSV (attached) in the tester/files folder. You can create and update this csv file yourself with News v303 (FFCAL.exe > only check date, time, currency, and impact; set the output only events between); it will be sent to expert/files.

    Download : Martingala News EA (available in the Elite section).
    Attached Files Attached Files

Similar Threads

  1. EURUSD: No news is good news?
    By ForexBrokerInc in forum Technical analysis
    Replies: 0
    Last Post: 12-08-2014, 05:40
  2. Cm EA news
    By Klick in forum Expert advisors backtesting
    Replies: 1
    Last Post: 02-22-2012, 06:42
  3. EA for NEWS
    By robotth in forum Fundamentals
    Replies: 8
    Last Post: 01-31-2012, 17:55
  4. [REQUEST] Martingala EA
    By jose7674 in forum Ideas for expert advisors
    Replies: 2
    Last Post: 10-07-2010, 13:52

Tags for this Thread

add, backtesting, change, color, elite, expert, high, indicators, level, martingale, money, mq4, news, pips, profit, request, signals, systems, time, trend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts