Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ling Reg with MA, T3 Small Trigs (Need Help)

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

    Ling Reg with MA, T3 Small Trigs (Need Help)

    Can someone convert from easylanguage to ninja, I am having trouble.

    Thanks in advance

    Inputs: Length(20),BarsPlus(0),TLMALen(5),
    upcolor(blue),dncolor(red),
    upcolorMA(blue),dncolorMA(red);

    Variables:TL(0), TLMA(0);

    TL = TimeSeriesForecast(Length, BarsPlus);
    TLMA = XAverage(TL, TLMALen);

    If TL >= TLMA then begin
    Plot1(TL, "TL", upcolor);
    Plot2(TLMA, "TLMA", upcolorMA);
    SETPLOTBGCOLOR (1, upcolor) ;
    end else begin

    Plot1(TL, "TL", dncolor);
    Plot2(TLMA, "TLMA", dncolorMA);
    SETPLOTBGCOLOR (1, dncolor) ;

    end;

    Begin
    If TL >= TLMA and Close >= TLMA then
    Plot3 (Close, "Bar Close Up", upcolor);
    If TL <= TLMA and Close >= TLMA then
    Plot3 (Close, "Bar Close Up", upcolor);
    end;

    Begin
    If TL <= TLMA and Close <= TLMA then
    Plot4 (Close, "Bar Close Dn", dncolor);
    If TL >= TLMA and Close <= TLMA then
    Plot4 (Close, "Bar Close Dn", dncolor);
    end;

    #2
    Hi bamill11,

    Where exactly do you get stuck with the TS code?

    You might try the 'Trigger Lines' from our sharing section first, they should be very close to your code - see this link please http://www.ninjatrader-support2.com/...&desc=1&sort=n

    If you are not satisfied, please contact our NinjaScript development partners for assistance - http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Comment


      #3
      perfect... Thanks for the link

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      26 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      15 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      10 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      17 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X