Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit at Keltner Midpoint

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

    Exit at Keltner Midpoint

    I'm trying to set up an exit in the strategy wizard where a long or short position will exit at the Keltner midpoint, and can't seem to get it right. Any help on how to properly set it up would be greatly appreciated.

    I currently have the exit conditions and actions in tab set 2 as follows:

    Conditions:

    Pposition MarketPosition == MarketPosition Long
    High[0]>= KeltnerChannel(5,55) Midline[0]

    Do the following:

    ExitLongLimit(KeltnerChannel(5,55) Midline[0], ",")

    Thanks.
    Last edited by mikem144; 10-08-2014, 08:20 AM.

    #2
    Hello mikem144,

    Thank you for your post.

    If the High of the current bar becomes greater than the KeltnerChannel Midline it is likely also the last price or Close[0] as well. If the Close[0] is above the KeltnerChannel Midline, setting a Sell Limit Order (ExitLongLimit() method) to the Midline will be incorrect and the order will be rejected. So in this case we would use ExitLongStop() instead if we want to exit the long below the current market price.

    If you check your Log tab when running the strategy are you receiving any errors concerning orders? If so, what do they report?

    Comment


      #3
      If I set the exit action as:

      ExitLongStop(KleltnerChannel(5,55) Midline[0], ","), the error log reads: Failed to get property 'AnotherChart' for indicator' _HorizontalLines': Object reference not set to an instance of an object.

      Comment


        #4
        Hello mikem144,

        Thank you for your response.
        Originally posted by mikem144 View Post
        If I set the exit action as:

        ExitLongStop(KleltnerChannel(5,55) Midline[0], ","), the error log reads: Failed to get property 'AnotherChart' for indicator' _HorizontalLines': Object reference not set to an instance of an object.
        Are you using the '_HorizontalLines' indicator in your strategy code?

        When using ExitLongStop(KleltnerChannel(5,55) Midline[0], ",") are you exits working properly? If not, are you seeing entries with your strategy?

        Comment


          #5
          No. That message probably refers to other open charts.

          If I set the exit action to a ExitLongStop(), what would you suggest the parameters be for the stop if I wanted to exit at the Keltner Midline?

          Comment


            #6
            Hello mikem144,

            Thank you for your response.

            The price level of the ExitLongStop() would still be the KeltnerChannel Midline.

            Comment


              #7
              Thanks, Patrick.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              86 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              48 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              29 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              67 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X