Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator plots only first signal

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

    Indicator plots only first signal

    I would like to know why the indicator I have is only plotting the first signal -1 after 20 bars and stays like that....

    If I try to complete it with te else statement, I get a million error and I do not know why.

    Any Ideas??

    double dblAtrSellSig = this.AtrCrossSignals(Close).Plot1[0];
    double dblHighVal = MAX(High,10)[1];
    double dblLowVal = MIN(Low,10)[1];

    if (dblAtrSellSig == 0 && Low[0]< dblLowVal);
    {
    Plot0.Set(-
    1);
    }



    else
    {
    Plot0.Set(
    0);
    }


    #2
    Never mind, I found it now. It was this ";" sign at the end of the If statement.

    Comment


      #3
      Glad you got it sorted!

      Last edited by mountainclimber; 05-07-2010, 10:24 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Unsuitable, Today, 07:26 PM
      0 responses
      1 view
      0 likes
      Last Post Unsuitable  
      Started by jvanelli, Today, 06:36 PM
      2 responses
      9 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by twitch251, Today, 05:14 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by robforee2, Today, 05:07 PM
      0 responses
      4 views
      0 likes
      Last Post robforee2  
      Started by blar58, Today, 03:16 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Working...
      X