need help adding reverse code to open-system

Forums ProRealTime English forum ProOrder support need help adding reverse code to open-system

Viewing 5 posts - 1 through 5 (of 5 total)
  • #114375

    hi, could someone please help me add code to my strategy.

    Right now the system takes a pos in direction when price moved x points from open.

    I want the system to reverse if it goes the other way the same x points.

    Example, price opens at 1500, price goes to 1506, system goes long, when price hits 1494 i want it to close the long and reverse  to short

     

     

    #114376

    You’ll find more help if you post in the correct forum. ProBuilder is for indicators. I will move your topic to the ProOrder forum which is for strategies.

    Please try to post in the correct forum with future topics 🙂

    1 user thanked author for this post.
    #114937

    no one?! :((

     

    In my mind it seems like it should be an easy add, unfortunatly i dont know how to.

    #114940

    Perhaps there is a lack of enthusiasm to code it because it will achieve little?

    First of all we cannot know what price we bought at because of spread and slippage so within the first five minutes we can only guess that we bought at the same price as the close of the previous candle. After the first five minutes we can actually know our trade price and so set a more accurate reverse price.

    However opening a trade and reversing soon after is never profitable as you pay the spread and slippage and then it reverses back and you reverse again and pay again!

    #114977

    You have to put contrarian pending stop orders at these predefined levels, as soon as you enter the market and replace them as long as you are on market.

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

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