Problem with minstop

Forums ProRealTime English forum ProOrder support Problem with minstop

Viewing 14 posts - 1 through 14 (of 14 total)
  • #177595

    A bot is disconnected because It tries to send an order to place stop below the Minimum stop required by the broker.

    A Solution?

    #177596

    Find what is the minimum stop distance allowed by the broker for that particular instrument and adapt your code or use the stop adjustement function available when you launch a ProOrder code (checkbox). See below attached picture, sorry in French.

    #177603

    Thanks Nicolás.

    #177616

    And how to include on the Code?

    #177680
    JS

    Once MinStopDist = 10

    If StopDist < MinStopDist then

    StopDist = MinStopDist

    EndIf

    Set Stop Loss StopDist

    #177690

    Once MinStopDist = 10

    If StopDist < MinStopDist then
    StopDist = MinStopDist
    EndIf
    Set Stop Loss StopDist

    It can also be written this way:

    #177712
    JS

    Yes, there are many different ways to code it…

    #177721

    Ask Terminator if you dont know 😆

    1 user thanked author for this post.
    avatar JS
    #177739

    below the Minimum stop required by the broker.

    I’m sure your SL’s are > 10 anyway, so what is probably happening is that your code is trying to place a SL during periods of high volatility? This is when IG increases min stop distances to 30, 50, 100 or even many 100’s at times … daft though it sounds.

    To guarantee never to be rejected then we would need to use a value for SL that is > the maximum value IG has ever set the minimum  distance.  So being rejected at times is something we have to live with.

    I have ticked the ‘Guaranteed Stop’ AND ‘Readjust Stop’ boxes when starting my Algos and they still get rejected!

    #178487

     

    #178489

    I can’t understand what you mean by

    I need what this instruction close the operation, but only if price save the minstoploss of broker”.

    Can you explain better?

     

    #178493

    The bot launches an order to close the operation, but when the price is below the minimum stop required by the broker, the bot is deactivated.

    That is the code to close the operation, I need the instruction to save the minimum stop required by the broker.

    #178497

    The bot has its own stop loss.

    These orders are separate from that stop loss.

    If the operation goes wrong, the operation can be closed with those orders, but the price has to be saving the minimum stop required by the broker, depending on the index it can be 5 pips, 8 pips, 10 pips …

    #178552

    To exit using a pending order you have to:

    • set a DISTANCE to be taken into account when placing a pending order
    • choose among STOP, LIMIT and AT MARKET orders according to the position of the current price compared to the exit price (stop loss in this case).

    There you go:

     

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

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