Hang seng trend following strategy with volatility filter H1 Time zone : UK

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #88469 quote
    Francesco78
    Participant
    Master
    defparam cumulateorders = false
    
    periodrsi = 8
    periodatr = 16
    
    a = 30
    b = 0.15
    timeok = time>20000 and time<120000
    oscillator  = rsi[periodrsi](close)
    volindic = (averagetruerange[periodatr](close)/close)*100
    
    
    oversold = oscillator<a and volindic>b and timeok
    overbought =oscillator>100-a and volindic>b and timeok
    
    if oversold then
    sellshort 1 contract at market
    endif
    
    if overbought then
    buy 1 contract at market
    endif
    
    set target pprofit 200
    set stop ploss 150
    hangsengh-154739426284lpc.png hangsengh-154739426284lpc.png
    #88541 quote
    Nicolas
    Keymaster
    Master

    Hi Francesco, I always appreciate your submissions. Thank you very much. In the case of that strategy I must say that I’m a bit perplex about the overfitting of settings due to optimization. Sorry to sound a little annoying, but why don’t you optimize at least with a single OOS period, to validate the settings? Or maybe you already did it? Have a good day 😉

    #88545 quote
    Francesco78
    Participant
    Master

    Hi Nicolas, sure I will post walk forward results ASAP.

    Warm regards

    Francesco

    #88549 quote
    Francesco78
    Participant
    Master

    What do you think about the other 2 strategies ( dax and audcad) I do not see them pending anymore.

    Thank you

    Francesco

    #88550 quote
    Francesco78
    Participant
    Master
    #88556 quote
    Nicolas
    Keymaster
    Master

    The other two strategies are also in the forum because of the same question 🙂

    You should always send a strategy with the WFA you made! This one seems good finally, do the settings in the code are the last one?

    #88557 quote
    Francesco78
    Participant
    Master

    Ok I see, I will post WF for the other 2 as well.

    No the settings are different, In the code you see the sets optimezed for the whole period, if you prefer the code with settings as per walk forward then :

    defparam cumulateorders = false
    
    periodrsi = 7
    periodatr = 10
    
    a = 40
    b = 0.1
    timeok = time>20000 and time<120000
    oscillator  = rsi[periodrsi](close)
    volindic = (averagetruerange[periodatr](close)/close)*100
    
    
    oversold = oscillator<a and volindic>b and timeok
    overbought =oscillator>100-a and volindic>b and timeok
    
    if oversold then
    sellshort 1 contract at market
    endif
    
    if overbought then
    buy 1 contract at market
    endif
    
    set target pprofit 150
    set stop ploss 150

     

    Alfred thanked this post
    #88593 quote
    Francesco78
    Participant
    Master

    Hi Nicolas,


    @Nicolas

    Any chance you will put this into the library?

    Thank you

    #88601 quote
    Vonasi
    Moderator
    Master

    Francesco78 – please try to remember to use the ‘Insert PRT Code’ button. I tidied things up for you! 🙂

    Francesco78 thanked this post
    #88603 quote
    Francesco78
    Participant
    Master

    Thank you Vonasi, sorry about that.

    #88731 quote
    BC
    Participant
    Master

    Hi Francesco

     

    May I know the spread?

     

    THX

    #88755 quote
    Francesco78
    Participant
    Master

    Hi, you can use 10 as spread

    #88799 quote
    Nicolas
    Keymaster
    Master

    Strategy is now in the library: Hang seng automatic trend following strategy with volatility filter

    Francesco78 thanked this post
Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.

Hang seng trend following strategy with volatility filter H1 Time zone : UK


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 12 replies,
has 4 voices, and was last updated by Nicolas
7 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/14/2019
Status: Active
Attachments: 4 files
Logo Logo
Loading...