Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer Syntax

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

    Strategy Analyzer Syntax

    This is in the initialze section

    Add(PeriodType.Minute,15);

    CalculateOnBarClose =
    true;
    =============================
    This doesn't compile
    //protectedoverridevoid OnBarUpdate() section

    if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(BarsArray[1],(3, 5, 2).K[0]) < 25 )
    DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);
    I need the barsarray statement above
    ====================================

    This is OK but doesn't make sense
    if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(3, 5, 2).K[0]) < 25 )
    DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);


    Thank you,

    Duke

    Last edited by dukeb; 08-04-2012, 06:27 PM.

    #2
    I found the problem .....

    Originally posted by dukeb View Post
    This is in the initialze section

    Add(PeriodType.Minute,15);

    CalculateOnBarClose =
    true;
    =============================
    This doesn't compile
    //protectedoverridevoid OnBarUpdate() section

    if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(BarsArray[1],(3, 5, 2).K[0]) < 25 )
    DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);
    I need the barsarray statement above
    ====================================

    This is OK but doesn't make sense
    if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(3, 5, 2).K[0]) < 25 )
    DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);


    Thank you,

    Duke

    The program runs .. I am currently testing

    Comment


      #3
      dukeb,

      Please let us know if you require additional assistance.
      Adam P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jonker, Today, 01:19 PM
      0 responses
      1 view
      0 likes
      Last Post Jonker
      by Jonker
       
      Started by futtrader, Today, 01:16 PM
      0 responses
      5 views
      0 likes
      Last Post futtrader  
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,791 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      844 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,294 views
      1 like
      Last Post jgualdronc  
      Working...
      X