Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slippage Gain

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Slippage Gain

    Hi,

    Is there a way to allow some slippage to gain ?
    I'm using iorder object, however I can only place gain order as limit order.
    I want to have a target and if the price reaches there I want to garantee the way out of the position allowing some pre-determined slippage.


    Also, if I'm going to buy a retracement, for example, and the the buy order is placed bellow the current price as a limit order (because there can not be busystoplimit orders bellow current price). I would like to garantee entry alowing some slippage.


    Is there a way to do this ?

    Thanks

    #2
    Hello agenor,

    Thank you for your post.

    So for the Profit Target, we are looking for the slippage towards profit or away from profit? So a the Profit Target's Sell Limit can exit the desired size above or below the profit target by what slippage amount?

    For the entry, the same question applies; are you looking for slippage up or down on the price scale from the Buy Limit price level?

    Comment


      #3
      Actually,

      I monitor the condition and put en entryorder utlilizing a iOrder Object and when the execution is detected other iOrder Objects as placed witn StopOrder (STOP) and LimitOrder (GAIN). It's working fine.... The script works... What I want is something like in a bought position... If Close[0] >= gainOrder -> I want to get GainOrder down a pre-determined amount to garantee exit of position...

      The same for entry....If a buylimit order is placed below current price and Close[0]<=entryOrder -> I want to allow entry at entryorder.LimitPrice + slippage to garantee the entry...

      Thanks

      Comment


        #4
        Hello agenor,

        Thank you for your response.

        If these conditions return true (Close[0] >= gainOrder or Close[0]<= entryOrder) then set the Limit Price level to the level + or - the desired slippage amount. For example:
        Code:
        if(Close[0] >= gainOrder)
        {
        gainOrder = ExitLongLimit(prevLevel - TickeSize*slippage);
        }

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X