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 wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      26 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, Yesterday, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      192 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,234 views
      0 likes
      Last Post xiinteractive  
      Working...
      X