Williams %R system

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #50296 quote
    deleted_accountdeleted_account
    Member
    New

    // 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

    Skarmklipp.jpg Skarmklipp.jpg skrmklipp-150875175184lpc.jpg skrmklipp-150875175184lpc.jpg
    #50401 quote
    NicolasNicolas
    Keymaster
    Legend

    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!

    DJ30-buy-and-hold-comparison.png DJ30-buy-and-hold-comparison.png
    #50562 quote
    InertiaInertia
    Participant
    Master

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

    Thank you.

    #50584 quote
    NicolasNicolas
    Keymaster
    Legend

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

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

    Inertia thanked this post
    #50591 quote
    InertiaInertia
    Participant
    Master

    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.

    comparaison.png comparaison.png
    #50593 quote
    raphaelopilskiraphaelopilski
    Participant
    Senior

    @Inierta

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

    Thanks?

    #50595 quote
    raphaelopilskiraphaelopilski
    Participant
    Senior

    oh, sorry. I meant @Inertia 🙂

    #50597 quote
    NicolasNicolas
    Keymaster
    Legend

    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.

    Inertia thanked this post
    #50677 quote
    tradingwwwwtradingwwww
    Participant
    New

    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)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Williams %R system


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 8 replies,
has 5 voices, and was last updated by tradingwwwwtradingwwww
8 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/24/2017
Status: Active
Attachments: 4 files
ProRealCode ProRealCode
Loading...