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 forrestang, Today, 02:36 PM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by NoLoEffeCo, Today, 01:44 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by WeyldFalcon, Today, 11:54 AM
      4 responses
      12 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by WeyldFalcon, Today, 11:50 AM
      4 responses
      15 views
      0 likes
      Last Post WeyldFalcon  
      Started by rexsole, Today, 12:19 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_BrendanC  
      Working...
      X