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 Option Whisperer, Today, 09:55 AM
      0 responses
      4 views
      0 likes
      Last Post Option Whisperer  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      8 responses
      58 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      22 views
      0 likes
      Last Post halgo_boulder  
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Started by gwenael, Today, 09:29 AM
      0 responses
      6 views
      0 likes
      Last Post gwenael
      by gwenael
       
      Working...
      X