Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple Indicator

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

    Simple Indicator

    Hello, is it possible to create indicator without programming, which calculates difference between Highest and Lowest value for "n" periods?

    Thanks

    #2
    Hello U0000999,
    Donchian Channel will plot highest & lowest values for n bars, diff however you need to calculate. Hope it helps!

    Comment


      #3
      Hello U0000999,

      Thanks for your post.

      You could use the Strategy Builder to create the logic you are describing and display it with Draw.TextFixed. Please see the demonstration video linked below which demonstrates how to set this up. I am also attaching an export of the strategy made in the demonstration video.



      Once the Strategy Builder is used to create your logic, you could turn this logic into an indicator. To do so, open a New > NinjaScript Editor window, right-click on the Indicator's folder, and select New Indicator. Then, you could click the 'View code' button in the Strategy Builder to see the code that accomplishes your logic. This code could be copied to the new indicator and you could use AddPlot() to plot the Highest value - Lowest value on a chart.

      Here is a link to our publicly available training videos, 'Strategy Builder 301' and 'NinjaScript Editor 401', for you to view at your own convenience.

      Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s
      NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14

      Please also see the help guide documentation below for more information.

      Strategy Builder: https://ninjatrader.com/support/help...gy_builder.htm
      Draw.TextFixed: https://ninjatrader.com/support/help..._textfixed.htm
      AddPlot: https://ninjatrader.com/support/help...t8/addplot.htm

      Let us know if we may assist further.
      Attached Files
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DeskTroll, Today, 12:09 PM
      3 responses
      22 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Pabulon, 12-02-2024, 03:42 PM
      14 responses
      90 views
      0 likes
      Last Post Pabulon
      by Pabulon
       
      Started by tfa2806trader, Today, 12:04 PM
      10 responses
      25 views
      0 likes
      Last Post tfa2806trader  
      Started by trdninstyle, 11-26-2024, 12:23 PM
      62 responses
      186 views
      0 likes
      Last Post trdninstyle  
      Started by lorien, 08-08-2021, 07:33 AM
      12 responses
      721 views
      0 likes
      Last Post AndyM871  
      Working...
      X