Discussion re Pure Renko strategy

Viewing 15 posts - 106 through 120 (of 346 total)
  • Author
    Posts
  • #122648 quote
    GraHal
    Participant
    Master

    fx pair went crazy high on spreads

    At what time and to what value?

    Please can you optimise the Brick Size and  trailingstoptype over 200k and post the values on here.

    #122678 quote
    Francesco
    Participant
    Veteran

    Around 10:45 PM Italian Time, EURUSD went up to 5/6 spread pts.

    And as i said, also others fx pairs went up, but i don’t remember the exact spread.

    In the attachments the optimization you asked for. A1 is the trailingstoptype and A1 is the boxsize.

    GraHal thanked this post
    PMN.jpg PMN.jpg
    #122694 quote
    GraHal
    Participant
    Master

    Better still if you comment out the Flat before / after … images 3 and 4.

    This was a flawed judgement on my part, apologies!

    Yes the results were better but probably only because I had a fixed spread = 1 in the backtester!

    As pointed out by Francesco, the spread on eurusd went to > 5 at 9:45 ish (UK Time).

    I hadn’t researched overnight spreads as I’ve not used eurusd for quite a while … my enthusiasm blinded me! 🙂

    #122809 quote
    Francesco
    Participant
    Veteran

    Little 200k backtest of the previous days where it was not possible to test in demo due to the spreads. (Last Paul’s Version with renko=3 and boxsize=20)

    Positionsize=0.2

    1-8.jpg 1-8.jpg 2-5.jpg 2-5.jpg
    #122827 quote
    Paul
    Participant
    Master

    @Francesco I haven’t looked yet. on eurusd, but for the dji it seems, although nice, a small stoploss doesn’t work.

    #122829 quote
    GraHal
    Participant
    Master

    I agree Paul, until spread goes back to 2.4 / 1.6 on the DJI the Renko is a dead duck unless we can get average gain per trade well above current spread = 11.6 / 6.6.

    I note though that spreads overall are heading back down … maybe next week we will see less madness and more like normal trading?

    #122853 quote
    Francesco
    Participant
    Veteran

    @Grahal of course at these actual spreads is a madness work and run on dow 1 sec renko.

    I just did a 200k backtest for information with 2.4 spread since I suppose many of you have not run the strategy on live demo.

    #122858 quote
    GraHal
    Participant
    Master

    I just did a 200k backtest

    Yes it is very useful you doing 200k backtests for us all … thank you.

    Yeah I turned my 1 sec DJI off until better times.

    But with different settings or a tweaked strategy I think the 1 sec could live again … even on DJI?

    I think Paul may be working on a new version?

    #122859 quote
    Francesco
    Participant
    Veteran

    I think it’s not easy to work on these 1 sec strategies, because the backtest frame to work on is very short.

    For example: Paul’s last version in 200k last week made 4 consecutive profts days, while this week 4 consecutive losses.

    Putting myself in the shoes of an expert coder like paul, I wouldn’t know how to optimize the strategy not having a longer frame to observe. How can i know that my version in super profitable last 3 days but maybe 6 days ago was very bad?


    @nonetheless
    said to me that “Renko doesn’t have a time component to it, only price and direction”, but the problem is not that to better optimize the value of a strategy you must always know and work on more data as possible?

    #122864 quote
    GraHal
    Participant
    Master

    this week 4 consecutive losses
    to better optimize the value of a strategy you must always know and work on more data as possible?

    Yeah well my intention was / is to optimise every day! 🙂

    I guess it is a different way of thinking?

    Seconds in a day = 86,400 bars … so this is 86,400 green and red candles and mini up and down trends and flat periods etc?

    Scale that up to hourly bars and 86,400 bars = 14 years worth of trading days?? 🙂

    #122871 quote
    Francesco
    Participant
    Veteran

    With the results of the last week, one year would be enough 😀

    #122885 quote
    Paul
    Participant
    Master

    a try to calculate the spread (& custom slippage) based on the open of the market order bar timebased.

    // spread wallstreet
    if time    > 090000 and time <= 153000 then
    spreaddji=2.4
    elsif time > 153000 and time <= 220000 then
    spreaddji=1.6
    elsif time > 221500 and time <= 223000 then
    spreaddji=9.8
    elsif time > 230000 and time <= 235959 then
    spreaddji=9.8
    elsif time = 000000 then
    spreaddji=9.8
    else
    spreaddji=3.8
    endif
    
    spreaddji=spreaddji/2
    
    // orderhandling
    if orderhandling then
    
    once orderprice=close // prevent graph orderprice at 0 at start chart
    
    offsetvalue=((close/10000)*orderoffset)*pointsize // adjustment spread & slippage
    
    if longonmarket and not longonmarket[1] then
    orderprice=open+offsetvalue+spreaddji
    elsif shortonmarket and not shortonmarket[1] then
    orderprice=open-offsetvalue-spreaddji
    endif
    
    if longonmarket then
    pp=((close/orderprice)-1)*100
    elsif shortonmarket then
    pp=((orderprice/close)-1)*100
    endif
    else
    once orderprice=close // prevent graph orderprice at 0 at start chart
    orderprice=tradeprice(1)
    if longonmarket then
    pp=((close/orderprice)-1)*100
    elsif shortonmarket then
    pp=((orderprice/close)-1)*100
    endif
    endif
    
    #122886 quote
    Paul
    Participant
    Master

    and again

    once orderhandling    = 1    // [0] default; [1] based on open v/d market order
    once orderoffset      = 1    // % average slippage & spread points if above=[1]
    // spread wallstreet
    if time    > 090000 and time <= 153000 then
    spreaddji=2.4
    elsif time > 153000 and time <= 220000 then
    spreaddji=1.6
    elsif time > 221500 and time <= 223000 then
    spreaddji=9.8
    elsif time > 230000 and time <= 235959 then
    spreaddji=9.8
    elsif time = 000000 then
    spreaddji=9.8
    else
    spreaddji=3.8
    endif
    
    spreaddji=spreaddji/2
    
    // orderhandling
    if orderhandling then
    
    once orderprice=close // prevent graph orderprice at 0 at start chart
    
    offsetvalue=((close/10000)*orderoffset)*pointsize // adjustment spread & slippage
    
    if longonmarket and not longonmarket[1] then
    orderprice=open+offsetvalue+spreaddji
    elsif shortonmarket and not shortonmarket[1] then
    orderprice=open-offsetvalue-spreaddji
    endif
    
    if longonmarket then
    pp=((close/orderprice)-1)*100
    elsif shortonmarket then
    pp=((orderprice/close)-1)*100
    elsif not onmarket then
    pp=0
    endif
    else
    once orderprice=close // prevent graph orderprice at 0 at start chart
    orderprice=tradeprice(1)
    if longonmarket then
    pp=((close/orderprice)-1)*100
    elsif shortonmarket then
    pp=((orderprice/close)-1)*100
    elsif not onmarket then
    pp=0
    endif
    endif
    pp=pp
    if onmarket then
    
    once sl=0.5
    once pt=undefined
    
    if longonmarket then
    slvalue=orderprice-(sl*(orderprice/100))
    sell at slvalue stop
    endif
    if shortonmarket then
    slvalue=orderprice+(sl*(orderprice/100))
    exitshort at slvalue stop
    endif
    
    if longonmarket then
    ptvalue=orderprice+(pt*(orderprice/100))
    sell at ptvalue limit
    endif
    if shortonmarket then
    ptvalue=orderprice-(pt*(orderprice/100))
    exitshort at ptvalue limit
    endif
    endif
    GraHal thanked this post
    #122987 quote
    Francesco
    Participant
    Veteran

    Did you tested this “spread finder”? It would be appliable also on fx pairs?

    #122996 quote
    Paul
    Participant
    Master

    yes i’am testing 10 sec with above & trendtrading.

    a pic of made yesterday and first one made just now.

    the spreadfix can’t be put on forex, even after changing spread values, just like the trailingstop isn’t suitable. It needs some changes.

    Francesco thanked this post
    Screenshot-2020-03-23-at-13.51.37.jpg Screenshot-2020-03-23-at-13.51.37.jpg Screenshot-2020-03-22-at-20.36.17.jpg Screenshot-2020-03-22-at-20.36.17.jpg
Viewing 15 posts - 106 through 120 (of 346 total)
  • You must be logged in to reply to this topic.

Discussion re Pure Renko strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 345 replies,
has 24 voices, and was last updated by bertrandpinoy
5 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/25/2020
Status: Active
Attachments: 149 files
Logo Logo
Loading...