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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      580 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      335 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X