Announcement

Collapse
No announcement yet.

EFS Live Auto Trade Enters / Exits At Random Position

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

  • EFS Live Auto Trade Enters / Exits At Random Position

    Hi, sometimes when I use sellMarket or buyMarket the trade enters at an incorrect price.

    For example, if I enter long at the open at a candle using buyMarket, the entry price will sometimes be correct at the open, but other times it may be below the low which is impossible, Slippage should not be problem with paper trading but it seems like entry & exit price are wrong about 50% of the time by 25 or 50 cents.

  • #2
    When I call
    PHP Code:
    sellMarket() 
    , does it enter at the latest Bid using
    PHP Code:
    getMostRecentBid() 
    and
    PHP Code:
    buyMarket 
    using the latest Ask with
    PHP Code:
    getMostRecentAsk() 
    ?

    If so that would explain for me at least why the entry and exits are off.

    Looking at these 2 threads,

    http://forum.esignal.com/forum/produ...placing-orders

    http://forum.esignal.com/forum/produ...m-price-levels

    I think that is the issue. What I'm still wondering is why those Bids / Asks were not filled in the real market. (as they are sometimes outside the candle limits)

    Comment

    Working...
    X