Williams %R system

Forums ProRealTime English forum ProOrder support Williams %R system

Viewing 9 posts - 1 through 9 (of 9 total)
  • #50296

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated

    // Conditions to enter long positions
    indicator1 = Williams[3](close)
    c1 = (indicator1 < -90)

    IF c1 THEN
    BUY 100 SHARES AT MARKET
    ENDIF

    // Conditions to exit long positions
    indicator2 = Williams[3](close)
    c2 = (indicator2 > -69)

    IF c2 THEN
    SELL AT MARKET
    ENDIF

    https://www.youtube.com/channel/UCdYlcMOUVnm1iOFlg0_1udQ?disable_polymer=true

    #50401

    Hi Bubo, thanks for sharing this code with us.

    I did test myself on a CFD contract (which are the only instruments possible for automatic trading through prorealtime) and I got almost the same results. However, I’d like to know how you did you defined the Williams percent levels?

    I also did some comparison with buy and hold and it outperforms the strategy, are you aware of this?

    Anyway, thanks again!

    #50562

    Hi Nicolas, how do you insert the price line on the backtest please ? Cannot figure out that trick.

    Thank you.

    #50584

    It’s not the price line but a buy and hold calculation :

    https://www.prorealcode.com/blog/learning/buy-hold-comparison-automated-trading-strategies/

    1 user thanked author for this post.
    #50591

    Awesome.

    That will be from now on a new “Strategy criteria of quality”.

    Thank you again Nicolas for your help.

    FYI: The picture attached shows the comparison only but the strategy is NOT the one mentioned on this post.

    FYI2: It is a customised version of the 1 minute strategy from JunaJ.

    #50593

    @Inierta

    which code did you use in the attachment of post #50591 ?

    Thanks?

    #50595

    oh, sorry. I meant @Inertia 🙂

    #50597

    Buy and hold comparison is much more a way to compare with pure and simple investment in a share or index in daily timeframe than with speculation 1 minute strategy.

    1 user thanked author for this post.
    #50677

    Hi Bubo, thanks for sharing this code with us. I did test myself on a CFD contract (which are the only instruments possible for automatic trading through prorealtime) and I got almost the same results. However, I’d like to know how you did you defined the Williams percent levels? I also did some comparison with buy and hold and it outperforms the strategy, are you aware of this? Anyway, thanks again!

    oaooo good profit

Viewing 9 posts - 1 through 9 (of 9 total)

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