Announcement

Collapse
No announcement yet.

Strategy (either Long or Cash)

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

  • Strategy (either Long or Cash)

    Strategy switching from Long to Short is OK.
    switching from Long to Close fails...
    which Strategy should i use to go to Cash?

    going long i use this code:

    if condition is true{
    if (!Strategy.isLong() ( {
    Strategy.doLong (....
    }
    } else {
    if(!Strategy.CLOSE()) {...
    Strategy.CLOSE(....
    }
    }
    continue......
    appreciate any help or insight.
    thank you
    peter.

  • #2
    Re: Strategy (either Long or Cash)

    peter
    You may want to review the Back Testing Tutorials 1-3 that are in the Help Guides and Tutorials folder of the EFS KnowledgeBase which will provide you with a complete description and tutorial [complete with detailed examples] on the use of the Strategy Object
    Alex


    Originally posted by peterjerome
    Strategy switching from Long to Short is OK.
    switching from Long to Close fails...
    which Strategy should i use to go to Cash?

    going long i use this code:

    if condition is true{
    if (!Strategy.isLong() ( {
    Strategy.doLong (....
    }
    } else {
    if(!Strategy.CLOSE()) {...
    Strategy.CLOSE(....
    }
    }
    continue......
    appreciate any help or insight.
    thank you
    peter.

    Comment


    • #3
      alex,
      i reread the tutorials and discovered my error..
      the strategy analyzer gives amazing results...best i've ever seen
      thanks alex,
      peter.

      Comment


      • #4
        peter
        You are welcome
        Alex


        Originally posted by peterjerome
        alex,
        i reread the tutorials and discovered my error..
        the strategy analyzer gives amazing results...best i've ever seen
        thanks alex,
        peter.

        Comment

        Working...
        X