Announcement

Collapse
No announcement yet.

IB MACDXover buysell... need help!

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

  • IB MACDXover buysell... need help!

    I am trying to get a buysell signals of an MACD crossover to use with IB.

    Despite my best efforts, I can't seem to learn to program efs.

    I pulled together this efs from left and right (ibbuysell.efs and macdx-over.efs) w/o really understanding the logic.
    Would somebody be kind enough to have a look if I can try it live?

    It seems to be working...

    Thank you in advance.

    Andrei
    Attached Files

  • #2
    Missing only one thing..

    You were missing only one thing..

    The declaration (at the top of the file) that created the IBBroker feature.

    Now, you'll also have to make sure you have intalled the "eSignal IB Plug-in" to be able to execute the trades through TWS.

    One other workd of warning. You are using a LIMIT order for "crossing up". You'll have to cancel these manually in TWS as EFS does not provide for a means to cancel these orders.

    You might change this to a MARKET order.

    I've also added an "if" condition around your order placement code to prevent it from trying to issues orders for past bars. This prevents the system from trying to BUY or SELL a trigger that happened yesterday or 4 hours ago. Your code will now only issue triggers in RT on the current bar.

    If you have any other questions, let me know.
    Attached Files
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X