CongaLine EUR/USD 1h work in progress

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #101100 quote
    jebus89
    Participant
    Master

    So i made this today and i wanted to share with you guys.

     

    Timezone: “UTC+2 (europe/Berline central european Summer time)”

    Theory is that when price is trending and pulling back ever so slightly, i wanna buy/short for a tiny trade trying to bet on the next candle(s) going with the trend again.

    Seems like this strategy was pretty insane up until 2010, then it just started to be less profitable.

    So far i have optimized nothing. Ive just used numbers that have made sense to me. Regarding the Time aspect of the code: i tried using 09-17 but noticed i got much worse results, so i instead opted to go for 17-23 and the results where better.

    Again, nothing has been optimized.

    I think the exit at the moment sucks, it would make alot more sense to keep the trade going if price is taking off.

    There are 3 filters in place:

    • Moving average 20 (medium term MA)
    • Supertrend 3 (long term supertrend)
    • Supertrend 1 (short term supertrend)

    and 1 trigger:

    • 2 red/green candles in a row going “against the trend”.

    Im not 100% sure what to make of this so im just sharing here in the hopes that someone can make this work lol. Lets improve this baby!

     

    // CongaLine EUR/USD 1h, made by JEBUS89, V1 20.06.2019
    
    
    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    
    // Prevents the system from creating new orders to enter the market or increase position size before the specified time
    noEntryBeforeTime = 170000
    timeEnterBefore = time >= noEntryBeforeTime
    
    // Prevents the system from placing new orders to enter the market or increase position size after the specified time
    noEntryAfterTime = 235959
    timeEnterAfter = time < noEntryAfterTime
    
    // Conditions to enter long positions
    indicator1 = SuperTrend[1,10]
    c1 = (close > indicator1)
    indicator2 = SuperTrend[3,10]
    c2 = (close > indicator2)
    c3 = (close < open)
    c4 = (close[1] < open[1])
    indicator3 = Average[20](close)
    c5 = (close > indicator3)
    
    IF (c1 AND c2 AND c3 AND c4 AND c5) AND timeEnterBefore AND timeEnterAfter THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions to exit long positions
    c6 = (close CROSSES OVER close[1])
    
    IF c6 THEN
    SELL AT MARKET
    ENDIF
    
    // Conditions to enter short positions
    indicator4 = SuperTrend[1,10]
    c7 = (close < indicator4)
    indicator5 = SuperTrend[3,10]
    c8 = (close < indicator5)
    c9 = (close > open)
    c10 = (close[1] > open[1])
    indicator6 = Average[20](close)
    c11 = (close < indicator6)
    
    IF (c7 AND c8 AND c9 AND c10 AND c11) AND timeEnterBefore AND timeEnterAfter THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions to exit short positions
    c12 = (close CROSSES UNDER close[1])
    
    IF c12 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Stops and targets
    SET STOP pLOSS 30
    

    Please note that i have not included spread and only 1 contract in photo.

    Better exit, better filters, better money management might improve this code a whole lot.

     

     

    Edit: EQ line Looks decent on 2h EUR/USD as well.

    Nicolas, AlgoAlex and O-jay8 thanked this post
    Congaline.png Congaline.png Congaline2.png Congaline2.png
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

CongaLine EUR/USD 1h work in progress


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
jebus89 @jebus89 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/20/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...