Results 1 to 2 of 2
 0 Attachment(s)    

Thread: FX Disparity EA

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default FX Disparity EA



    We buy GBPUSD and sell EURUSD when the overlay GBPUSD chart is under the EURUSD chart timeframe H1.

    We sell GBPUSD and buy EURUSD when the overlay GBPUSD chart is over the EURUSD chart timeframe H1.

    For both, the distance (gap) between the two open prices has to be over "mindiff" pips.

    You can set onlybuy and onlysell options if needed (it will only buy or sell the currency on which the EA is attached and vice versa for the second pair).

    You can also enable the different "addpos" options that will add orders if the gap becomes higher than mindiff1-2-3-4-5-6.

    Finally, you can determine the value that will multiply the lots of the second instrument (GBPUSD) with "secondlotsmult".

    The orders are closed when we reach the target (in pips).

    The EA has to be attached to only EURUSD H1. You can not do backtesting.

    Download : FX Disparity EA (available in the Elite section).

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default FXDisparity



    New version.

    Code:
    string comment="EA";                     // comment to display in the order
    extern int magic=1234;                   // magic number required if you use different settings on a same pair, same timeframe
    
    extern string ordersmanagement="Order Management";
    
    extern bool closeall=false;              // close all trades
    
    extern string moneymanagement="Money Management";
    
    extern double lots=0.1;                  // chart symbol lots size
    extern double sublots=0.1;               // sub symbol lots size
    extern bool proposedsublots=false;       // use proposedsublots as sublots
    extern int lotdigits=2;                  // lot digits
    
    extern string profitmanagement="Profit Management";
    
    extern double target=30;                 // maximum distance in pips between the two charts to close orders
    
    extern string entrylogics="Entry Logics";
    
    extern string subsymbol="USDJPY";        // pair symbol 2
    extern double chartdistance=100;         // minimum distance in pips between the two charts to open orders
    extern bool addpositions=false;          // when market goes ordersdistance pips against us
    extern double ordersdistance=100;        // minimum distance to add positions
    There is no need of indicator.

    You can still use OverLayChart to have a visual.

    Rules : we go long/short on EU and short/long on UY when EU is under/over UY, then we close them when the difference in pips between the two charts is less than target. We can add positions when the price is over/under the last sell/buy order +/- ordersdistance pips.


    Download : FX Disparity EA (available in the Elite section).

Similar Threads

  1. FX Disparity EA (Request Please)
    By pisanunad in forum Expert advisors backtesting
    Replies: 1
    Last Post: 02-25-2012, 07:40

Tags for this Thread

100, backtesting, color, elite, eurusd, gbpusd, indicator, magic, magic number, pips, request, systems

Posting Permissions

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