strategy BarHunter DAX v1p

Viewing 15 posts - 166 through 180 (of 256 total)
  • Author
    Posts
  • #119641 quote
    Vonasi
    Moderator
    Master

    bertrandpinoy – Only English in the English speaking forums please.

    #119758 quote
    Gubben
    Participant
    Senior

    Ok stopped again with mind set at 60. Trying at 120 now. What is this setting? Stop loss? Asking since it doesn’t change backtest results…

    #119763 quote
    GraHal
    Participant
    Master

    What is this setting? Stop loss? Asking since it doesn’t change backtest results…

    Best if you post the snippet where you are making the change so others can check it out.

    It is possible that when you / we get rejected we are under the conditions I highlighted in my post below. I was manual trading, but it could equally have been an Auto-Trade.

    I couldn’t change my stops!

    #119766 quote
    Francesco
    Participant
    Veteran

    Rejected again, always at the same hour: 4 a.m.

    #119819 quote
    Francesco
    Participant
    Veteran

    Another stop this night. @Gubben did you resolved with mindist 120?

    #119824 quote
    Gubben
    Participant
    Senior

    Stopped at 120 as well. Trying this now

     

    once limitSLbroker=0
    if time >035900 and time<053000 and CurrentDayOfWeek>=0 then
    limitSLbroker=272
    elsif time>053000 and time<03590 and CurrentDayOfWeek>=0 then
    limitSLbroker =10
    elsif time>210000 and CurrentDayOfWeek>5 then
    limitSLbroker=271
    endif
     
    minddist = limitslbroker
    #119825 quote
    Paul
    Participant
    Master

    probably the easiest way to tackle this, is using market orders, 1 minute and mtf. It would clean up the code too!

    or split the code.

    one code setup for backtesting 1 hour timeframe

    one code setup to trade live on 1 minute timeframe for which the trade has to be the same as on the one hour timeframe in the backtest.

    fifi743 thanked this post
    #119826 quote
    Francesco
    Participant
    Veteran

    Stopped at 120 as well. Trying this now

    As i said in the previous page, removing the 4am trade will make the stategy very less profitable; so it’s not a right solution.

    probably the easiest way to tackle this, is using market orders, 1 minute and mtf. It would clean up the code too!

    or split the code.

    one code setup for backtesting 1 hour timeframe

    one code setup to trade live on 1 minute timeframe for which the trade has to be the same as on the one hour timeframe in the backtest.

    Is this possible? Never heard about something like this.. looks interesting!

    #119829 quote
    Paul
    Participant
    Master

    have a look

    It’s in the details and needs more attention, but this is roughly what I mean.

    use mode=1 for one hour timeframe for backtesting

    use mode=0 for 1 minute timeframe for demo/live

    It will never be 100% the same, 1 hour and 1 minute.

    Gubben and Francesco thanked this post
    BarHunter-v4.1p-mtf-MOD-FIFI.itf
    #119831 quote
    Gubben
    Participant
    Senior

    Would this stop it from being rejected repeatedly at 4AM?

    #119832 quote
    Paul
    Participant
    Master

    yes, if running on 1 minute timeframe and with mode=0.

    no entry rejections based on minimum stop distance.

    Still there can be other reason why a trade is, or is not triggered compared to the backtest 1 hour timeframe.

    Gubben thanked this post
    #119866 quote
    Paul
    Participant
    Master

    few minor changes

    the trailingstop on 1 minute timeframe can cause sometimes differences compared to the 1 hour backtest. Needs more testing.

    the file, load on dax 1 hour timeframe

    to run in demo, set mode to 0 and use 1 minute chart.

    Francesco thanked this post
    BarHunter-v4.2p-mtf-MOD-FIFI.itf
    #119951 quote
    Francesco
    Participant
    Veteran

    Ok Paul, so if i understood well, when running the strategy live or demo we need to use mode 0.
    But the strategy with mode 0 needs to be applied on 1h or 1m chart?
    And the results with mode 0 will be the same as the 1h backtested?

    #119966 quote
    Gubben
    Participant
    Senior

    To run live, mode=0  on 1 minute chart.

    #119980 quote
    Paul
    Participant
    Master

    And the results with mode 0 will be the same as the 1h backtested?

    That’s the goal, but there will always be differences, since the entry price is slightly different between 1 hour and 1 minute.

    As result, it could make the difference when a stoploss is triggered or not, same for a trailing stop or profit-level.

    But if one has to choose between a flimsy entry because of the minimum stop distance or this, then this is the way to go I think.

     

    So a.t.m. it’s best to test, as Gubben described it and compare it to the backtest 1 hour.

Viewing 15 posts - 166 through 180 (of 256 total)
  • You must be logged in to reply to this topic.

strategy BarHunter DAX v1p


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Paul @micky75d Participant
Summary

This topic contains 255 replies,
has 11 voices, and was last updated by sfl
2 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/15/2020
Status: Active
Attachments: 136 files
Logo Logo
Loading...