1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Codezilla's Trading Journal

Discussion in 'Personal Trade Journals' started by Codezilla, Nov 9, 2008.

  1. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    Hey fellow soldiers. Well here is the EA system this journal will be following. It will be trading on the 5 minute EUR/USD chart using Metatrader 4.

    * Stochastic-MACD Double Crossover

    - Entry

    o Long: Bullish Stochastic and MACD crossover within last 4 candles with
    the Stochastic always being the first to crossover and the Stochastic
    below 50 (Stochastic and MACD may also crossover simultaneously).
    o Short: Bearish Stochastic and MACD crossover within last 4 candles
    with the Stochastic always being the first to crossover and the
    Stochastic below 50 (Stochastic and MACD may also crossover
    simultaneously).

    - Exit

    o Long: Stochastic is above 80 or MACD bearish crossover.
    o Short: Stochastic is below 20 or MACD bullish crossover.

    I will post the system's activity daily if I can. I welcome your comments and ideas.
     
  2. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    Mental note: Do not use OR logic to evaluate more than two operands. You might open more positions than intended. Use XOR (exclusive OR) instead. It's funny 'cause MQL4 nor C have a logical XOR, only a bitwise XOR (^). So I had to change this...

    if (OpenOrderCondition1 || OpenOrderCondition2 || OpenOrderCondition3)


    {
    OpenOrder;​
    }

    which was opening more than one order if two or more conditions passed, to this...

    if (OpenOrderCondition1}


    {
    OpenOrder;​
    }
    else


    {
    if (OpenOrderCondition2)​
    {
    OpenOrder;​
    }​

    else​
    {
    if (OpenOrderCondition3)​
    {
    OpenOrder;​
    }​
    }
    }

    This actually emulates an exclusive OR relationship. At least I think it does. We'll see.
     
  3. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    First trade of the system. I had to manually exit the position because I forgot to code the Stochastic 20 and 80 thresholds. It's ok though. I THINK I have all the bugs worked out. I'm sure something else will pop up 3-4 posts from now.
     

    Attached Files:

  4. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    This was the latest trade. I should've been whipsawed but something is going with the logic I'm using. Hmmmm. Nice trade nonetheless.
     

    Attached Files:

  5. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    This trade threw me for a loop. You can clearly see the divergence in the price action compared to the MACD right after I entered the position. Heh.
     

    Attached Files:

  6. Pharaoh

    Pharaoh Colonel

    Joined:
    Oct 3, 2007
    Messages:
    19,656
    Likes Received:
    2,202
    Ready to turn it loose with real money yet or does it need some more debugging?
     
  7. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    I'm probably gonna demo trade it for a little while longer. I'm sure there is more debugging in the horizon. I'll be careful not to over-optimize it though.
     
  8. Codezilla

    Codezilla Private

    Joined:
    Nov 8, 2008
    Messages:
    17
    Likes Received:
    0
    Soldiers, unfortunately my love affair with the Double Crossover is coming to an imminent end. It's losing quite a bit in demo mode, I'm missing out on alot of sweet trades, and above all I just don't like, it doesn't feel right. I'm currently working on an alternative, let's see how that goes. I'll continue to post on this thread when I have it up and running.
     

Share This Page