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 ComfyCouch, Today, 06:04 PM
      0 responses
      6 views
      0 likes
      Last Post ComfyCouch  
      Started by Ousher, Today, 04:35 PM
      0 responses
      4 views
      0 likes
      Last Post Ousher
      by Ousher
       
      Started by Rugosoft, 11-17-2020, 08:22 AM
      3 responses
      37 views
      0 likes
      Last Post Shansen
      by Shansen
       
      Started by hpolthof, Today, 03:48 PM
      0 responses
      7 views
      0 likes
      Last Post hpolthof  
      Started by vivekniwas, Today, 02:26 PM
      1 response
      30 views
      0 likes
      Last Post NinjaTrader_Jermaine  
      Working...
      X