Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Gap Up/Down Alert

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

    #31
    Originally posted by NinjaTrader_RyanM View Post
    Thanks for posting the script. For your input, you will want to match the type to what you're comparing. For Volume this will be Long. Please see the attached script, with this changed.

    "Volume" is reserved in some places, so would want to use a modifier for the input name, like MyVolume in the attached script.

    To import use File > Utilities > Import NinjaScript and select the .zip file.
    does this indicator find gaps in market analyzer?

    Comment


      #32
      gap

      Originally posted by NinjaTrader_RyanM View Post
      Yes, that's it. To create a new indicator Click Tools > New NinjaScript > Indicator. Click Next to advance through the wizard to customize its name, plots and input parameters if needed.

      Click Generate to have it create the basic indicator structure. The snippet can be pasted exactly as it is, inbetween the two brackets { } of OnBarUpdate, like:

      Code:
      protected override void OnBarUpdate()
      {
      if (CurrentDayOHL().CurrentOpen[0] > PriorDayOHLC().PriorHigh[0] || CurrentDayOHL().CurrentOpen[0] < PriorDayOHLC().PriorLow[0])
          Value.Set(1);
          
      else Value.Set(0);
      }
      If you want to get started with indicator development in NinjaTrader, the following tutorials are helpful for explaining the structure and introducing the basics.
      http://www.ninjatrader.com/support/h...indicators.htm
      can someone create this?
      Last edited by mystiq68; 01-19-2013, 12:44 PM. Reason: error

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      50 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
      69 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