help coding H1 open strategy

Forums ProRealTime English forum ProOrder support help coding H1 open strategy

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 10 posts - 1 through 10 (of 10 total)
  • #144377 Report

    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 Report

    There you go (not tested):

     

    2 users thanked author for this post.
    #144382 Report

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

     

    3 users thanked author for this post.
    #144390 Report

    thanks you guys!

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

     

    Attachments:
    #144395 Report

    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 Report

    It must process too much tick by tick data

    1 user thanked author for this post.
    #144419 Report

    thanks!

     

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

    #144422 Report

    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 Report

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

    #144484 Report

    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