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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      65 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      41 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      23 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      26 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      52 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X