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 GLFX005, Today, 03:23 AM
      0 responses
      1 view
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      11 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      6 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      12 views
      0 likes
      Last Post TradeForge  
      Started by Waxavi, Today, 02:00 AM
      0 responses
      2 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Working...
      X