Stop entry in live rejected

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #71082 quote
    DymjohnDymjohn
    Participant
    Senior

    Hi

    Yesterday, I had two separate strategies fall over with the description “Rejected: Order level too close to market”. The formulas used for these two strategies was

    BuyPrice = High[0]+1.1*pointsize  -5min

    and the second

    BuyPrice – High[0]+2*pointsize – 4Hr

    They were both on the Dax in normal trading hours.

    Can you help, is this a coding or system problem?

    regards

    Dymjohn

    #71083 quote
    NicolasNicolas
    Keymaster
    Legend

    The minimal stop distance with DAX is 5 points, if I remember correctly.

    #71088 quote
    EricEric
    Participant
    Master
    #71114 quote
    DymjohnDymjohn
    Participant
    Senior

    This was a “stop entry” not a “stop loss” order so would have thought would have gone through possibly at an inferior price?

    #71115 quote
    DymjohnDymjohn
    Participant
    Senior

    Thanks Eric

    #71118 quote
    NicolasNicolas
    Keymaster
    Legend

    Even with a “stop entry”, you must place your order at a minimal distance away from current Close, otherwise your orders will be rejected.

    #71139 quote
    VonasiVonasi
    Moderator
    Master

    Just use MAX to ensure you are never too close:

    MinStopDistance = 5
    
    StopLoss = MAX(MinStopDistance, Your calculated stoploss distance)
    robertogozzi thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Stop entry in live rejected


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Dymjohn @dymjohn Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by VonasiVonasi
8 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/22/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...