Fibonacci Retracement of breakout

Forums ProRealTime English forum ProOrder support Fibonacci Retracement of breakout

Viewing 4 posts - 1 through 4 (of 4 total)
  • #19660

    Hi all, I know I’ve asked a simliar question to this in the past but I’m still finding a lot of difficulty coding this system and was hoping someone may be able to help.

    The system I am trying to code is run every day and sets the breakout box between 3am and 8am in the morning. No trades are made during this time, the box is just set.

    After this, we wait for a breakout between 8am and 2pm. This is where it gets a little complicated – Instead of trading the breakout, I want to trade the fakeout and enter at the fibonacci retracement of the previous movement.

    If price closes above high set between 3 and 8am, then an entry order is placed to short at the 61.8% retracement of the new highest high and the lowest low from between 3 and 8 am. If the time is between 8am and 2pm and price closes below the lowest low that was set between 3 and 8am then an entry order is set to buy at the 61.8% retracement of the highest high from between 3 and 8am and the new lowest low.

    I have used the fibonacci screener that was recommended to me before but what I am finding difficult is getting the correct entry levels set. I am also struggling to set the entry orders to be valid for a certain amount of time – i.e. If it gets to 3pm and either there was no breakout or price did not meet the entry order then no positions are taken and the system starts again the next day.

    So far I’ve written this on the 15min timeframe:

    I was wondering if anyone would be able to help me with this, and Happy New Year to all!

    #19807

    Dear kg6450

    I have coded your strategy and made some minor modifications.

    Backtested over a 2 year period the profit:drawdown ratio look good even though only short trades are triggered.

    Someone can maybe assist with resolving that but unfortunately I cannot spend too much time on this.

    I changed the strategy to run on 5min for better breakout accuracy.

    Please test and let me know what you think.

    Regards,

     

    1 user thanked author for this post.
    #19821

    Hi juanj,

    Thanks so much for coding that! I’ve had a go running it and I’ve had a few problems.

    The entry point of the system doesn’t seem to be at the fib retracement level, it seems to just enter at the start of the trading hours?

    When you set the fib entry levels I think you just found the 0.618 difference between the highs and lows but didn’t actually set the order level i.e.

    And then I set the entry levels at the code in bold. Does yours enter only at the start of the tradetime too?

    #19837

    Hmm… like I said don’t really have much time to play around with it so difficult to say.

    However in keeping what works;

    Using my funky short generating code. I added a RSI (although I don’t like indicators) to help with false signals.

    And the results is quite fair considering only half of it works (see attached).

    If you can re-engineer the code to generate only longs and then run them together you would have one neat automated strategy.

     

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login