Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can someone please translate this TS indicator code to NT

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

    Can someone please translate this TS indicator code to NT

    Inputs: upcolor(green), downcolor(red);

    If Close > High[1] then begin
    PlotPaintBar( High, Low, "PD" ) ;
    SetPlotColor(1,upcolor);
    Alert( "Bullish Bar" );
    end;

    If Close < Low[1] then begin
    PlotPaintBar( High, Low, "PD" ) ;
    SetPlotColor(1,downcolor);
    Alert( "Bearish Bar" );
    end;

    Thank you,

    Razor

    #2
    Code:
    if (Close[0] > High[1])
         BarColor = Color.Green;
    if (Close[0] < Low[1])
         BarColor = Color.Red;
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh!

      Razor

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Anthony_0709, Today, 01:29 PM
      0 responses
      4 views
      0 likes
      Last Post Anthony_0709  
      Started by kenbun, Today, 12:21 PM
      0 responses
      8 views
      0 likes
      Last Post kenbun
      by kenbun
       
      Started by WNorton, Today, 11:23 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Spencer  
      Started by stafe, Today, 10:43 AM
      0 responses
      12 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by UltraNIX, Today, 09:13 AM
      3 responses
      18 views
      0 likes
      Last Post UltraNIX  
      Working...
      X