Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

displacement in "Strategy An.-Chart"

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

    displacement in "Strategy An.-Chart"


    Hello,
    Could you tell me why in Strategy Analyzer-Chart, it does not show the Donchian Chanel indicator, with the displacement defined inside the indicator...?
    If I include in the code "displacement=1", the rest of the indicators of the strategy (ema, Ema...) are also displaced, and this is not what I want.
    Thanks​


    #2
    Hello elopezh,

    Can you provide more detail on what your end goal is? The Displacement property is for visual use only so if you are using that in a strategy it is not likely what you wanted. Conditions won't use a displaced value and would still use the values as you see them with no displacement.


    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,
      Of course; What I want is that an indicator (for example Ch. Donchian) is shown in "St. Analyzer->Chart", as when I add it in a normal chart, that is to say, with its displacement defined in *.cs (see picture).

      As I said, I have tried to move it inside the strategy code (displacement=1), but this causes the rest of the added indicators to be displaced as well, which I don't want.​

      Comment


        #4
        Hello elopezh,

        When using indicators with AddChartIndicator that should strip the displacement from them because they are being hosted by the strategy where displacement is not used. Displacement is strictly a visual property for manually applied indicators on a standard chart. Strategies can also render so they also have an inherited Displacement property for the intention of displacing Plots which the strategy made on a normal chart. This is otherwise not manually configurable on a strategy.

        When using AddChartindicator in a normal chart or the analyzer you should see that the coded Displacement in indicators is ignored. You can program Displacement into the strategy however that should not affect the analyzer chart and should only affect indicators on the normal chart.

        If the overall goal is just to visually displace the AddChartIndicator then you can't do that in that window. If your intention was to access the displaced data in the strategy in some way then we need to cover that instead of using the displacement property.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hi Jesse,

          Perfect, indeed the goal is only to visually displace the AddChartIndicator, so in the strategy code I include the displacement (displacement=1), but this affects all indicators.....
          Is there any way to program a displacement for each AddChartIndicator?​ (See photo)

          Comment


            #6
            Hello elopezh,

            There is not a way that I am aware of to displace individual indicators aside from manually applying them to a chart to displace them.
            JesseNinjaTrader Customer Service

            Comment


              #7
              All correct, thanks for the information and promptness Jesse, good day.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by DJ888, Today, 10:57 PM
              0 responses
              2 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              158 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Today, 09:29 PM
              0 responses
              7 views
              0 likes
              Last Post Belfortbucks  
              Started by zstheorist, Today, 07:52 PM
              0 responses
              7 views
              0 likes
              Last Post zstheorist  
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              151 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Working...
              X