Announcement

Collapse
No announcement yet.

SellStopLimit() -vs- SellShortStopLimit()

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

  • SellStopLimit() -vs- SellShortStopLimit()

    I'd rather not throw money away trying to test this or deal with setting up a simulated trading account through my broker…

    is there any difference between SellStopLimit() and SellShortStopLimit()? can SellStopLimit() only be used to close a long position, or are they interchangeable?

    …in the case that this specifically depends on which broker is integrated with eSignal, I am using Interactive Brokers if that helps.

    Thank you.

  • #2
    I'll try to teach you a little secret... You don't need to use them at all. You can use the following functions to handle all of your historical backtesting needs by writing stop systems into efs (as code).

    Strategy.doLong()
    Strategy.doSell()
    Strategy.doShort()
    Strategy.doCover()

    With the parameters that are available in these functions, you can test for and execute any type of trading system functions (entries, stops, exits, profit targets and multiple-staged exits/entries). All you have to do is write up your code to handle the types of entries and exits you need.

    I'm sorry I could not answer your question though - I simply don't use those functions.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Hello Axiom,

      sellShortStopLimit() is currently broken. This is a known issue that has not been fixed yet. The sellStopLimit() function is used to close a long position.
      Jason K.
      Project Manager
      eSignal - an Interactive Data company

      EFS KnowledgeBase
      JavaScript for EFS Video Series
      EFS Beginner Tutorial Series
      EFS Glossary
      Custom EFS Development Policy

      New User Orientation

      Comment


      • #4
        Originally posted by JasonK
        Hello Axiom,

        sellShortStopLimit() is currently broken. This is a known issue that has not been fixed yet. The sellStopLimit() function is used to close a long position.


        Jason,

        its working for me now, check the attachment.
        Attached Files

        Comment

        Working...
        X