HELP: Buy contract after some time

Forums ProRealTime English forum ProOrder support HELP: Buy contract after some time

Viewing 6 posts - 1 through 6 (of 6 total)
  • #71516

    Hi guys,

    I would like to buy a contract after the first contract is x bars old and negative. So that I would have 2 contract in total. And after that, if the cumulated contracts are positive (lets say 10 pips), the system should sell them both.

    Thanks for helping!

    #71519

    Hallo Raphael!

    I think you mean this:

    https://www.prorealcode.com/blog/trading/averaging-techniques-automated-trading/

    hope this can help you a bit

    #71546

    This should do what you want. Difficult to tell from the description whether you want to stop trading at two positions or not. This code will just keep on buying.

    2 users thanked author for this post.
    #71547

    thank you guys

    #71566

    No problem. there was a minor typo in the first BUY line so I have corrected that.

    You could also consider only re-entering if the market has fallen by a certain percentage with something like this:

    There are benefits and disadvantages to this. Less trades = less exposure but you may miss trades right at the bottom of the market meaning that price has to climb further before you are in profit.

    1 user thanked author for this post.
    #71568

    Another possibility is to increase your position size by an amount relative to the amount that the market has dropped.

    Just some ideas – nothing proven!

     

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

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