help coding H1 open strategy

Forums ProRealTime English forum ProOrder support help coding H1 open strategy

Viewing 10 posts - 1 through 10 (of 10 total)
  • #144377

    Hi, i need help coding a strategy having following rules:

    1. from H1 open
    2. if price moves 5 points either direction. If above open=Buy 1 contract, if below open=short 1 contract
    3. set target and SL 10 points
    #144379

    There you go (not tested):

     

    2 users thanked author for this post.
    #144382

    I would recommend to adapt 5 with the pointsize, if it is not equal to 1:

     

    3 users thanked author for this post.
    #144390

    thanks you guys!

    im getting this problem (see attachment) and if i disable tick it shows insanly good result, does not seem right?

     

    #144395

    You have a stop loss too close to the market entry …. do a test by further distancing the stop.

    1 user thanked author for this post.
    #144397

    It must process too much tick by tick data

    1 user thanked author for this post.
    #144419

    thanks!

     

    can someone please add time restriction, trading hours between 8-11

    #144422

    There you go:

    TIME is the time when a bar closes. If you want to refer the time it opens use OPENTIME, instead.

    1 user thanked author for this post.
    #144483

    thanks alot!! one last thing, if i want to add that it closes all position after 17,30, how to add that code?

    #144484

    Add this as the first line:

    or you can use these common lines:

     

    1 user thanked author for this post.
Viewing 10 posts - 1 through 10 (of 10 total)

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