Renko automatic trading

Viewing 15 posts - 16 through 30 (of 67 total)
  • Author
    Posts
  • #153364 quote
    eckaw
    Participant
    Veteran

    Since we have really limited backtest data on 10s timeframe: would it be an idea to optimise every 2 days, pick 10 results then take an average over a week or month? Or optimise daily and take an average after a couple of weeks?

    Any thoughts on how to get an average optimised value on this timeframe that might actually work?

    #153366 quote
    eckaw
    Participant
    Veteran

    @snuckle would you mind sharing your version here?

    #153404 quote
    snucke
    Participant
    Veteran

    i just replaced your indicator with this one.

    your idea on getting an average over a couple of weeks is not a bad idea, maybe reoptimize after 1 week and keep the first still live and see how the new one performs

    and at the same time take an average of the first optimization and the second and at the end have 3 running at the same time

    Heikin_Candle_smoothed.itf
    #153425 quote
    Paul
    Participant
    Master

    thnx. I’ve got a snippet I added to a rough version, i’am unsure how useful it will be.

    What it does i.e. for long, it shows the buy signals you miss when you’re in a long positionposition, So it doesn’t count the signal when the position is opened, only the buysignals when longonmarket.

    It does also calculated cumulative those signals which total could go up quite rapidly.

    In general the higher the amount of cumulative signals, is not a good sign for robustness.

    for testing if interested.

    conbuy=buysignal
    condsell=sellsignal
    
    // show signals
    once showsignals=1
    if showsignals then
    once count1l=0
    once count1s=0
    
    if not onmarket or ((longonmarket and shortonmarket[1]) or (longonmarket[1] and shortonmarket)) then
    count2l=0
    count2s=0
    endif
    
    if longonmarket then
    if condbuy then
    count1l=count1l+1
    count2l=count2l+1
    endif
    endif
    if shortonmarket then
    if condsell then
    count1s=count1s-1
    count2s=count2s-1
    endif
    endif
    
    graph count1l as "long signals in position cumulative"
    graph count2l as "long signals in position"
    
    graph count1s coloured(255,0,0,255) as "short signals in position cumulative"
    graph count2s coloured(255,0,0,255) as "short signals in position"
    endif
    GraHal, eckaw and icharttop thanked this post
    #153430 quote
    GraHal
    Participant
    Master

    Link to above added as Log 263 to here …

    Snippet Link Library

    Paul and eckaw thanked this post
    #153438 quote
    eckaw
    Participant
    Veteran

    @paul by implementing your snippet, do we need to change cumulateorders= true? I was experimenting with cumulate orders = true in my code as you can see but failed to get more positive results. I think it would be worth taking a look at implementing some reversal code to exit trades as I think the current one isn’t performing very well.

    #153540 quote
    Paul
    Participant
    Master

    do we need to change cumulateorders= true

    no because although it hits the same points, I wanted to optimise a strategy normally with 1 position, but still have visible the missed signals & the totals.

    I’am not a fan of reversal because it cover ups the fact that the original signal was poor.

    eckaw thanked this post
    #153751 quote
    supermyguel
    Participant
    Average

    i just replaced your indicator with this one.

    Hi!

    If not too complicated can you write how replace the indicator? I have to modify some parameters? If I simply replace there is an error about number of called parameters….

    Thanks in advance!

    #154279 quote
    snucke
    Participant
    Veteran

    Results from first optimization on 70/30 WF have now been live for one week, seems ok so far.

    did a new optimization on 70/30 WF and will be running it live simultaniously to this one and see if the first one fades or not.

    GraHal thanked this post
    Skarmbild-2020-12-18-125532.png Skarmbild-2020-12-18-125532.png
    #154302 quote
    GraHal
    Participant
    Master

    If not too complicated

    Maybe snucke would prefer to share his version of the .itf with us all?

    Be easier than typing instructions etc??

    #154309 quote
    snucke
    Participant
    Veteran
    #154327 quote
    DjungelJarl
    Participant
    New

    Hi snucke and everyone else, how do you ensure that the minimum stop distance isn’t violated? I’m on IG and I’ve been trying a few different versions but the algorithm fails because the minimum stop distance of 6 pips isn’t respected. Thanks in advance for any tips regarding this.

    #154331 quote
    nonetheless
    Participant
    Master

    IG minimum stop distance on the DJ is 10

    #154334 quote
    DjungelJarl
    Participant
    New

    Right, my bad. Any idea of how to configure this in the code?

     

    EDIT: This restriction applies to the stop orders as well right?

    #154336 quote
    DjungelJarl
    Participant
    New

    This is my attempt at respecting the stop distance, it was added in the end of the stop loss code in snuckes latest version of this. I’m putting it on demo again to see if it works.

    if newSL > 0 then //and abs(newSL-tradeprice) < stopRoom then
    if newSL-tradeprice > 0 and newSL-tradeprice < stopRoom then
    newSL = newSL + (stopRoom-(newSL-tradeprice))
    elsif newSL-tradeprice < 0 and newSL-tradeprice > -stopRoom then
    newSL = newSL - (stopRoom+(newSL-tradeprice))
    endif
    endif
Viewing 15 posts - 16 through 30 (of 67 total)
  • You must be logged in to reply to this topic.

Renko automatic trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
eckaw @eckaw Participant
Summary

This topic contains 66 replies,
has 17 voices, and was last updated by 孫榗溢
5 years, 1 month ago.

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