Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

downward deviation in Darvas indicator

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

    downward deviation in Darvas indicator

    hello, good afternoon, the Darvas indicator allows me to make a deviation to the right, but would it be possible to get a downward deviation ?
    When using it as an exit point, by probability the price usually returns a couple of ticks earlier, so it would be optimal for my strategy the way to get a deviation below to be able to make the exit when the price is equal or greater than the outer band of Darvas.
    thank you very much

    Translated with DeepL.com (free version)​

    #2
    Hello micaeliglesias,

    I'm not quite sure what you are asking.

    The Darvas indicator plots an Upper and Lower plot on the chart.

    Are you asking how to supply one of these plots to the StdDev (standard deviation) indicator?

    Are you asking how to get a value from one of these plots from a previous bar?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello micaeliglesias,

      I'm not quite sure what you are asking.

      The Darvas indicator plots an Upper and Lower plot on the chart.

      Are you asking how to supply one of these plots to the StdDev (standard deviation) indicator?

      Are you asking how to get a value from one of these plots from a previous bar?
      hello, no... I mean that I have the condition : go long when the price is higher than the upper band of darvas.
      and i would really like to get it to exit 1 tick before reaching the upper darvas band.
      the only way i think i could get that is through a downward deviation of the indicator (currently the deviation of the indicator only moves the indicator to the right) so i am asking if there is any way that the indicator can be deviating downwards.
      thank you​

      Comment


        #4
        Hello micaeliglesias,

        "go long when the price is higher than the upper band of darva"

        if (Close[0] >= Darvas().Upper[0] - TickSize && Position.MarketPosition == MarketPosition.Flat)
        EnterLong();​

        "currently the deviation of the indicator only moves the indicator to the right"

        I'm not entirely sure what this means.

        "so i am asking if there is any way that the indicator can be deviating downwards."

        I'm not sure what this is meaning either.

        Instead of using terms, can you provide pseudo logic?

        For example if the Darvas Lower is less than the close?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello micaeliglesias,

          "go long when the price is higher than the upper band of darva"

          if (Close[0] >= Darvas().Upper[0] - TickSize && Position.MarketPosition == MarketPosition.Flat)
          EnterLong();​

          "currently the deviation of the indicator only moves the indicator to the right"

          I'm not entirely sure what this means.

          "so i am asking if there is any way that the indicator can be deviating downwards."

          I'm not sure what this is meaning either.

          Instead of using terms, can you provide pseudo logic?

          For example if the Darvas Lower is less than the close?
          hello, sure i can try with pseudo logic:
          what i need is:

          ExitLong = price (1 tick) < Darvas Upper

          I have no problem to make the exit when it is greater than upper, but what I need is that it is 1 tick before reaching upper. hope I have explained better
          thanks




          Comment


            #6
            Hello micaeliglesias,

            So when the current price is less than the darvas upper plot submit an exit long order?

            if (Close[0] < Darvas().Upper[0])
            ExitLong();

            Below I am providing a link to a support article on getting started with NinjaScript and c#.


            Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            46 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            66 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X