Start the order on an exact moment

Forums ProRealTime English forum ProBuilder support Start the order on an exact moment

Viewing 2 posts - 1 through 2 (of 2 total)
  • #13224

    Lets suppose following code for ProOrder:

    If I start this code in ProOrder, the order will start on the open of the next candle where the price crosses over the weighted moving average, and not in the exact moment than the prices crosses over this WMA. And the next candle can be too late, or, at least, I can lose the difference between crossing and close.

    The problem is that I don’t know the instruction to change “close” to for example “price” in the code

    “IF close CROSSES OVER wma THEN”

    I also tried with for example “typical price” instead of “close”. It changes a little, but is not what desired.

    Is there any instruction to lose this problem, or which would be the way?

    Please, see the photo hereby for more understanding.

    #13228

    I see 2 reasons for this. Firstly a crossover is valid only when the current period is already closed. Secondly, you may already know that code are only read once per bar, so test is made at bar close then trade is launched at the open of the next one.

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

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