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 samish18, Today, 01:01 PM
      0 responses
      4 views
      0 likes
      Last Post samish18  
      Started by WHICKED, Today, 12:56 PM
      0 responses
      7 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Spiderbird, Today, 12:15 PM
      2 responses
      11 views
      0 likes
      Last Post Spiderbird  
      Started by WHICKED, Today, 12:45 PM
      0 responses
      7 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by FrazMann, Today, 11:21 AM
      2 responses
      8 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X