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

  • Razor_Trader
    replied
    Thanks Josh!

    Razor

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    Code:
    if (Close[0] > High[1])
         BarColor = Color.Green;
    if (Close[0] < Low[1])
         BarColor = Color.Red;

    Leave a comment:


  • 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

Latest Posts

Collapse

Topics Statistics Last Post
Started by WeyldFalcon, Today, 11:54 AM
1 response
7 views
0 likes
Last Post NinjaTrader_PaulH  
Started by WeyldFalcon, Today, 11:50 AM
1 response
8 views
0 likes
Last Post NinjaTrader_PaulH  
Started by rexsole, Today, 12:19 PM
1 response
4 views
0 likes
Last Post NinjaTrader_BrendanC  
Started by torch2k, Today, 12:07 PM
1 response
7 views
0 likes
Last Post NinjaTrader_Kate  
Started by Bmatarese, Today, 11:01 AM
1 response
7 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X