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 NoLoEffeCo, Today, 01:44 PM
      0 responses
      3 views
      0 likes
      Last Post NoLoEffeCo  
      Started by WeyldFalcon, Today, 11:54 AM
      3 responses
      10 views
      0 likes
      Last Post WeyldFalcon  
      Started by WeyldFalcon, Today, 11:50 AM
      2 responses
      11 views
      0 likes
      Last Post WeyldFalcon  
      Started by rexsole, Today, 12:19 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_BrendanC  
      Started by torch2k, Today, 12:07 PM
      2 responses
      9 views
      0 likes
      Last Post torch2k
      by torch2k
       
      Working...
      X