Help to code a strategy about percentage increase or decrease for OMXS30

Forums ProRealTime English forum ProOrder support Help to code a strategy about percentage increase or decrease for OMXS30

Viewing 15 posts - 1 through 15 (of 18 total)
  • #88917

    Hi,
    I’m new at trading and programming so I wonder if someone can help me to code this for me so I can get started. My request:

    Underlying asset: Sverige30 Cash (20sk) Index

    Open position after 17:30, after hours trading

    Buy when > 1 % down
    Take profit if increases 0,5%
    Take loss if decreases 0,25%

    Sell when > 1% up
    Take profit if decreases 0,5%
    Take loss if increases 0,25%

    Close position at 08:59 day after, before opening hours

    Trade size: 20

    #88918

    I assume you want to use it on a 1-minute TF, don’t you?

    1% compared to previous day closing price?

     

    #88919

    Yes thats right, 1-minute TF.
    When the market close 17:30, after that 1% compared with closing price

    #88922
    • For a new topic, your title should be explicit enough to prompt the community to read your discussion.

    “code help” is not explicit enough.

    #88925

    @Nicolas: What do you suggest for a title?

    #88930

    The one I wrote in replacement, for example 😉

    #88931

    @alipour , by exemple simple title  : suede index market strategy

    #88932

    @nicolas: hahaha yes I saw that. Thanks

    #88963

    @robertogozzi,
    Yes thats right, 1-minute TF.
    When the market close 17:30, after that 1% compared with closing price

    #88979

    Try this one:

     

    1 user thanked author for this post.
    #88997

    @alipour , by exemple simple title : suede index market strategy


    @swapping
    Hi, can i get in touch with you private? =)

    #89000

    No private info can be posted.

    Any member willing to contact other members can only do this with the help of ADMIN. Contact him first.

    #89046

    @robertogozzi
    thank you for your help.

    Is it possbile to back track this strategy?

    #89047

    You can backtest it as any other strategy with ProBackTest. You can launch it from ProOrder after creating the strategy using Copy & Paste.

    To read and learn more about ProBackTesting:

    https://www.prorealcode.com/blog/debugging-probuilder-graph-instruction/

    https://www.prorealcode.com/blog/video-tutorials/tick-tick-backtest-engine-probacktest/

    https://www.prorealcode.com/blog/learning/prorealtime-walk-analysis-tool/

     

     

    #89120

    @robertogozzi

    In your code, Where does it say wich index to buy?

    And if I want to have a trailing stop loss 0,5 instead of regular stop loss, and I want the volume to be low, how can I code that?

     

Viewing 15 posts - 1 through 15 (of 18 total)

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