Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    BertrandNinjaTrader Customer Service

    Comment


      #3
      perfect... Thanks for the link

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, Yesterday, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      191 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,230 views
      0 likes
      Last Post xiinteractive  
      Started by andrewtrades, Today, 04:57 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X