Announcement

Collapse
No announcement yet.

Exiting Trade under 20MA

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

  • Exiting Trade under 20MA

    How do I use the formula wizard to program an exit that will get me out of a trade when the price bar crosses under the 20 day moving average. I put it sell market and it closes at the open of the bar or I sell close and it sells at the close of the bar for backtesting. How do I get it to sell as it crosses the 20MA instead.

    Thank you

  • #2
    Re: Exiting Trade under 20MA

    gsungar
    You would use the Strategy.STOP or Strategy.LIMIT filltypes which allow you to specify the price.
    You may want to review the Back Testing Tutorials 1-3 which are available in the Help Guides and Tutorials folder of the EFS KnowledgeBase
    Alex


    Originally posted by gsungar
    How do I use the formula wizard to program an exit that will get me out of a trade when the price bar crosses under the 20 day moving average. I put it sell market and it closes at the open of the bar or I sell close and it sells at the close of the bar for backtesting. How do I get it to sell as it crosses the 20MA instead.

    Thank you

    Comment

    Working...
    X