Renko automatic trading

Forums ProRealTime English forum ProOrder support Renko automatic trading

Viewing 7 posts - 61 through 67 (of 67 total)
  • #155813

    Hello,

    Still working on this code. Algorithm still stop with “The stop is too short because of the broker.”

    I have tested many trailing stops : 2,3,4 pips , error is still here.

    Any idea?

     

    Thanks to all,

     

    i using 17.1 renko box size.

    #155826

    What is broker minimum stop loss  for the instrument you are trading?

    Try 15 or 20 pips?

    #155878

    Thanks for your answer @GraHal

    10 pips minimum for my broker, but i have already configured 20 pips stop.

    I think maybe i have understand why my strategy stopped many times.

    This system apply conditionnal orders to trade : sell stop and buy stop.

    Sometimes, when the strategy tried to open position, the market is at this time at the same price as you can see in my book order.

    i say that because most of the the time the others orders worked, indeed they not are at the same price at this time for the stop order.

     

    1 user thanked author for this post.
    #155891

    a possible fix.

    backtest with mode=1 and slow timeframe

    if have good settings, set to mode 2 and on fast timeframe like 1s.

    code below not intend to have good results, but as layout. Needs additional criteria. Chart set to 5 min.

     

     

     

     

    1 user thanked author for this post.
    #156039

    Hi @Paul

    Thanks for posting your renko template. I’m interested in your approach to backtest in a larger timeframe and then run it in a shorter timeframe. I like the idea of using stop orders for backtest and buy at market for trading on short term trading.  However I don’t understand how the trailing stop works in backtest vs real trading on shorter timeframes. Surely the trailing stop works differently on 5 minute timeframe vs 1 second timeframe? How can the 5min backtest be relevant in terms of the trailing stop when changing to 1 / 5 or 10 second timeframe?

    #156074

    How can the 5min backtest be relevant in terms of the trailing stop when changing to 1 / 5 or 10 second timeframe

     

    The difference comes because the 5 minute bars are read at the closing of that bar, then the “candle data” is known.

    Calculation of the exit lines should be the same as on a 1s timeframe live as to 5m timeframe backtest. That’s why the first part of the trailingstop has the slow timeframe and uses updateonclose.

    The 1/5/10 second timeframe is much more responsive and a quick exit is more guaranteed.

    So the second part is on a fast timeframe, because as soon as it hits the exit level, you want to get out. Even if it’s rejected because of the stop&limit order and the minimum order distance, it exits next (i.e. second) bar at market and the result will be about the same as the backtest which exits on stop/limit.

     

     

    1 user thanked author for this post.
    #156747

    @eckaw, sir I want to know how to set up for the SL point, cause this code run with IG, call out trategy failed related with the SL setup , IG min. SL is set as 10 point

Viewing 7 posts - 61 through 67 (of 67 total)

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