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 rhyminkevin, Today, 04:58 PM
      3 responses
      47 views
      0 likes
      Last Post Anfedport  
      Started by iceman2018, Today, 05:07 PM
      0 responses
      5 views
      0 likes
      Last Post iceman2018  
      Started by lightsun47, Today, 03:51 PM
      0 responses
      7 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      14 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      50 views
      0 likes
      Last Post futtrader  
      Working...
      X