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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      174 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      329 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      355 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      182 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X