STOP or LIMIT orders that execute on my exact price?

Forums ProRealTime English forum ProOrder support STOP or LIMIT orders that execute on my exact price?

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • #146560

    Hi,

    I have a question about STOP orders. I have some lines in my code that says:

    For example:

    If my BreakoutPrice is 150.15 I want my code to buy at exactly that price 150.15 or at least above that price.  When I use the code lines above my backtest sometimes show buying orders that are exectued below 150.15 which I don’t want to happen since I’m trying to build a breakout long strategy.

    I also tried with LIMIT, which gave me more trades by some reason, but still not the correct values.

    I’m using a 30 minutes timeframe for this strategy. How can I execute my trades at my exact breakout price?

    #146561

    STOP pending orders are to be used when the trigger price is WORSE than the current one (higher if you go Long, lower if you go Short).

    LIMIT pending orders are to be used when the trigger price is BETTER than the current one (lower if you go Long, higher if you go Short).

    I am attaching a pic about LIMIT and STOP orders. It was posted somewhere by Nicolas but I can’t find what post it was attached to. The BLUE point is the current price. The Red and Green lines are the entry (trigger) price.

     

     

     

    1 user thanked author for this post.
    #146577

    Thanks for the explanation @robertogozzi !

    Great image as well, will save it to my desktop 😉

    Not sure if I should start at new topic or keep asking my questions here?

    New Topic: DClose at a specific time

    I have another question about DClose function at a specific time.

    Is it possible to get the yesterdays daily close but not for the time around 00.00 but instead for the normal closing time for example a European Index at 17.30? I tried setting the time in PRT options, but the DClose function still fetched the DClose value at around the time 00.00.

    My question is: How can I get the yesterdays daily close at 17.30 easiest?

    #146580

    You can achieve that result with this code which allows you to select the time of the previous day:

    The attached ITF contains the declaration of the variable CloseTime.

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

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