EA request for Simple Daily System
1 2 3

thread: EA request for Simple Daily System

  1. #1

    EA request for Simple Daily System

    Hello associates,

    I'd like to share a system in hopes that one of our talented developers here on FF will write an EA. This is an easy daily system using a somewhat distinctive approach on money management. Here are the details of the system:


    Indiors:
    1. 200 SMA (alternative to modify period by consumer )
    2. ADR - 50 pips or higher on the past 10 times
    3. PSAR - this is optional to use with the SMA (user defined) that allows trades just to be taken when both indiors concur

    R/R ratio: 1:1

    Stop reduction: (user defined) will probably be using 100 pips to include disperse

    Take profit: (user defined) will probably be using 100 pips after covering disperse

    Pairs:
    All that have an ADR equivalent to or higher than 50 pips

    Broker: Personal preference (will test using IBFX w/10K beginning equilibrium )

    Money Management: Every arrangement will be equal to.1 lot. (alternative to modify lot size per user)

    Example using MM: To begin open 1 arrangement for every pair in the direction of the indior(s). Continue using 1 contract if there is a win got. If there is a reduction got in a given pair then raise 1 contract to the transaction. Continue to include 1 contract if losses. After a win is generated after a reduction reverse contract size by 1 before the contract dimensions returns back to the beginning of 1 hence eliminating of the losing trades.

    Exaple of starting a commerce:

    Extended - in the open of a new candle when the previous candle is gt; 200 SMA (optional to bring the PSAR and transaction only when both concur )

    Brief - in the open of a new candle when the previous candle is lt; 200 SMA
    (optional to bring the PSAR and transaction only when both concur )

    Let the place run until the shoot profit or stop loss is hit.
    https://www.cliqforex.com/attachment...7528760696.mq4

  2. #2
    Member
    70
    Here you go. I am not sure how to add the ADR component in. It's an object-based indior.
    https://www.cliqforex.com/attachment...4985067549.mq4

  3. #3
    Thank you Ron.

  4. #4
    Ron,

    Can the EA function the money direction by adjusting the contract dimensions after having a loss/win or does this need to be manually corrected?

    Thanks,
    Lcfx

  5. #5
    Member
    70
    Sorry, didn't notice the MM part. For now, as I really don't really know how I am going to achieve this, yes it has to be corrected.

  6. #6
    Member Nighy's Avatar
    42
    I will give it a shot. Return to you afterwards.

  7. #7
    Member Nighy's Avatar
    42
    Here's what I did up according to your rules. Simply to confirm your signals must happen in the pub?

    EA inputs description

    extern int EA_MAGIC_NUM = 275931;
    extern int MA_Period = 200;
    extern int MA_TYPE = MODE_SMA;
    extern bool UsePSAR = true;
    extern int ADR_Days = 10;
    extern int Min_Range = 50;
    extern int Start_Hour = 0;
    extern int Start_Minute = 0;
    extern dual Slippage = 3.0;
    extern int TakeProfit = 100;
    extern int StopLoss = 100;
    extern int LotSizeFactor = 1;
    extern double Lots = 0.1;

    most of these are just for signal's sake. What you need to take notice is the Start_Minute and Start_Hour worth. If state you open the EA at the middle of the afternoon and you want it to Open a commerce key at the current hour and moment. Be aware that these two values will be reset back to 0 automatically after the order is started. . Which means it is going to open subsequent orders .

    LotSizeFactor
    This is very important, assuming you get started running the EA and in friday, you've yet to breakeven (backtest shows this happens a lot), I don't assume you will need your EA to keep running. You might wanna shut down it and provide your computer a rest. . The EA won't recall what is the count. Come to think of it, maybe I can get it to write the value into a document and have it retrieve the value once it fires up... but that is probably too much effort to conquer something so simple. Just look at your final trade's position dimensions and perform math and key in the value you desire the EA to begin with at that instance.

    IMPORTANT
    that the increment and decrement of place dimensions relies heavily on YOU setting your trade history recorded from newest to newest (which is actually the default setting). Cos I programmed it to read from bottom up and find the trade to know whether it was a profit or loss. Don't let your trade history be sorted in anyhow else.

    SDS_UMM stands for Simple Daily System - Unique Money Management.

    P.s., backtest results does not look great.
    https://www.cliqforex.com/attachment...1724297573.ex4
    https://www.cliqforex.com/attachment...3508361969.mq4

  8. #8
    Inserted Code to affirm your signals must happen in the prior pub yes?
    Correct. I will use the 200 SMA PSAR.

  9. #9
    Here's an example of how the Cash management works:

    1st contract =.1 lot = win
    2nd contract =.1 lot = loss
    3rd contract =.2 lot = loss
    4th contract =.3 lot = loss
    5th contract =.4 lot = Triumph
    6th contract =.3 lot = Triumph
    7th contract =.2 lot = loss
    8th contract =.3 lot = Triumph
    9th contract =.2 lot = Triumph
    10th contract =.1 lot = Triumph

  10. #10
    It is alive!!

    There are a few issues. It's currently taking trades on some pairs when the daily close is in between the SMA and the PSAR. There are pairs were no trades in any way and both conditions are met. Can a coder please look to the previous EA and fix if possible.

    Thank you,
    Lcfx

  •