NinjaTrader Automated Trading by Algo Futures Trader

hybrid algorithmic automated futures trading for prop firm traders, day & swing traders

🚀 Get Started 🔴LIVE
  • 🚀Get Started
  • NinjaTrader
  • Get Funded
  • Trading Servers
  • Pricing
  • blog
  • Help

How to get started with AFT8 Automated Trading for NinjaTrader 8

March 5, 2026 by Tom Leeson

How to Get Started with AFT8 Automated Trading for NinjaTrader 8 (Day Traders & Prop Traders)

AFT8 is built for hybrid trading (man + machine) and can also be used for
fully automated execution. Unlike classic NinjaTrader “strategies” you attach to charts,
AFT8’s hybrid algorithms run primarily through Market Analyzer columns plus dedicated
Algo Controllers. This means your “control surface” is the workspace, Market Analyzer rows/columns,
and controller state—not a strategy list.

This guide is a practical, day-trader and prop-trader focused walkthrough to get you up and running safely,
avoid the most common first-week failures, and understand the key AFT8 concepts that matter when money and rules
are on the line.

What You Need Before You Start

  • NinjaTrader 8 installed and running.
  • AFT8.NinjaTrader installed (AFT8 add-in for NT8).
  • AFT.Desktop installed and logged in (required to sync licenses, updated files, and settings to your PC).
  • ATS Desktop Apps (recommended all-in-one installer path that includes Workspaces 1 as part of the install bundle).
  • Correct workspace stage for your goal (manual → hybrid → automated).

Download the official installers from the ATS downloads hub and then install in a clean sequence:

  1. Install/Update NinjaTrader 8 (follow NinjaTrader’s official installer flow).
  2. Install ATS Desktop Apps (recommended for default installs).
  3. Install AFT8.NinjaTrader.
  4. Install and run AFT.Desktop to sync licenses/workspaces/settings.
  5. Install additional Workspaces 2–5 if your access level includes them.

Tip: If Windows Defender SmartScreen blocks a newly updated workspace installer, verify the installer path
and proceed only if it’s the official installer from the ATS downloads source.

AFT8 Architecture (Why Market Analyzer Matters)

AFT8 hybrid algos are designed to operate inside NinjaTrader via Market Analyzer.
You control and configure behavior using:

  • Market Analyzer columns (AFT Algo Entry and AFT Trade Manager modules)
  • Market Analyzer templates and saved workspaces
  • Algo Controllers (the control panel that commands the rows/columns)

This is the reason many “classic strategy expectations” don’t apply. Your first job is to ensure the workspace
loads the correct Market Analyzer components and the controllers are visible and populated.

The Two Settings That Break Most Automated Trading Setups

Most automation issues come from time settings and contract symbology.
Fix these early so your sessions, filters, and instrument lookups behave correctly.

1) Time / Region Settings

  • Windows: Region = United States, Language = English (United States).
  • TimeZone: Central US is commonly recommended; some traders use Eastern if troubleshooting date-time issues.
  • NinjaTrader: Language = English, TimeZone = Central (or Eastern if required for your environment).

2) Contract Symbology (Critical)

In NinjaTrader, set Symbology: Numeric. This is called out as critical for AFT8 compatibility.

Choose the Right Workspace Stage

AFT8 workspaces are staged so you can progress from manual skill-building to hybrid and then to more advanced modes.
The key practical rule for automation is:
automated entry requires Workspace 2 or higher (or an equivalent workspace that includes the AFT Algo module).

  • Workspace 1: Manual entry with automated exits (best for day traders learning trade management).
  • Workspace 2: Hybrid automated entry + exits (common starting point for day traders and prop evals).
  • Workspaces 3–4: Additional hybrid variants (including MTF in Workspace 4).
  • Workspace 5: VIP baselines for pure automated trading plus hybrid chart algos.

Best practice: Start in Workspace 1 to validate platform stability and exits, then move to Workspace 2+ once you
can confidently control AutoStart, account selection, and controller state.

First Run Checklist (Day Trader Friendly)

Step 1 — Confirm the AFT8 Control Surface Is Loaded

  • Open a turnkey workspace (Workspace 1 for training, Workspace 2 for automated entry).
  • Confirm Market Analyzer includes the AFT columns/modules.
  • Confirm the Algo Controllers are visible and populated with rows.

Step 2 — Use AutoStart as a Safety Switch

Turnkey workspaces can auto-start and can trade automatically once NinjaTrader is connected.
Before you go live, learn how to control AutoStart.

  1. Open the workspace.
  2. In Market Analyzer, right-click → Columns.
  3. Select the AFT Algo Column.
  4. Find TradeEntryAutoStart and set it:
    • OFF while you validate instruments, accounts, filters, and session timing.
    • ON only when you are ready to allow automated entries.
  5. Save the template under a new name and save the workspace under a new name (so updates don’t overwrite your changes).

Step 3 — Paper Trade / Sim First

Run your first sessions in Sim (or demo) to confirm:

  • Signals appear as expected
  • Trades place when conditions are valid
  • Exits and trade management work correctly
  • Time filters and max trade limits behave the way you expect

Prop Trader Setup (Evaluation & Funded Accounts)

Step 1 — License & Sync (Non-Negotiable)

For live or prop firm trading, you must have the correct AFT8 license and your PC must be synced.
Keep AFT.Desktop logged in and confirm you accepted the EULA inside AFT.Desktop so NinjaTrader can see your license.

Step 2 — Account Hygiene (Avoid the #1 Prop Mistake)

Many workspaces default to Sim101. Before you trade evaluation/live:

  • Open Market Analyzer and change the account in all relevant columns/modules to your evaluation/funded account.
  • Save the workspace under a new name.
  • Confirm the controller state is set intentionally (don’t let auto-start surprise you).

Step 3 — Controller State = Your “Kill Switch”

AFT8 can start with NinjaTrader and trade automatically if you don’t set the Algo Entry Controller to a safe state.
Make it a habit: connect → verify → then enable trading.

10-Second Quick Check (Most Issues Are Solved Here)

If AFT8 is running but no trades are being taken, these are the most common causes:

  • Wrong workspace stage: automated entry generally needs Workspace 2+.
  • AFT Algo module missing from the workspace/Market Analyzer template.
  • AutoStart / Long / Short states are OFF, or semi-auto “one shot” has stopped trading.
  • Max trades/session reached (common for day and prop traders).
  • Time/session filters are blocking entries or exits.
  • Contract rollover/expiry protection is preventing trading (roll your contracts forward in NT8 database management).
  • Wrong account selected (Sim101 vs evaluation vs funded).
  • Wrong license for live trading or license not synced (AFT.Desktop not logged in / EULA not accepted).
  • Data lag filter is detected and trading is paused.
  • Prerequisites not applied (timezone/region/symbology).

If you’re stuck, the fastest recovery method is:
close the workspace → open Workspace 2 or 3 → confirm it trades with filters off → add filters back one-by-one.

Best Practices for Day Traders & Prop Traders

1) Treat AFT.Desktop Sync as Pre-Flight

Before every session: open AFT.Desktop, confirm you’re logged in, confirm EULA accepted, and confirm licenses synced.
If NinjaTrader was already running, refresh/restart after syncing if needed.

2) Use “Automation Level” as a Risk Control

Start conservative (AutoStart OFF, controller paused), then increase automation only when the session context,
account selection, and filters are verified.

3) Don’t Assume Classic Strategy Analyzer Workflow

AFT8 hybrid algos are Market Analyzer-based. For hybrid systems, official guidance emphasizes replay/paper/live
operation for statistics rather than classic Strategy Analyzer optimization.

Official Resources

  • ATS Downloads hub (AFT.Desktop, AFT8.NinjaTrader, ATS Desktop Apps)
  • AFT8 prerequisites & recommended settings (timezone/region + Numeric symbology)
  • AFT.Desktop login & license sync steps
  • Workspaces 1–5 installers and stage descriptions
  • Enable live/prop trading checklist
  • AutoStart setup procedure
  • No trades taken diagnostic guide

Risk Disclaimer: Futures trading involves substantial risk of loss and is not suitable for all investors. This article is for educational purposes only and does not constitute financial advice.

Filed Under: AFT8, automated futures trading, ninjatrader automated trading Tagged With: AFT8, automated futures trading, fully automated trading system


🚀 Get Started 100% FREE!

AFT8 update 20260123 Trade System Copier and Self Optimizing bar enhancements

January 23, 2026 by AFT

AFT8 Update Released – Version 2026.01.23

The AFT8 hot-fix update (v2026.01.23) has been released and is now ready for installation.


AFT8 Hot-Fix Update Features

  • Internal white-box optimization for Trade Plan Goals data
    Fixes a rare display error in the Algo Trade Manager.
  • Trade System Copier safety enhancement (primary ↔ sub-account sync)
    In fast markets or sharp reversals, an additional verification layer now runs after a short
    cool-down period to ensure all accounts are correctly balanced and fully synchronized.
  • Self-Optimizing Bar improvements
    White Box Code Enhancements to prevent a very rare NinjaTrader 8 chart freeze during busy tick periods.

How to Install the Latest AFT8 Version

You can update AFT8 using any of the following methods:

  1. In-App Update
    AFT8 will automatically display a pending update notification with install buttons.
  2. ATS Universal Account Downloads
    Download and run the “AFT Secondary Installer” from:
    https://account.algotradingsystems.net/
  3. Local Installer (if already downloaded)
    Check your PC downloads folder for:

    \Downloads\AlgoTradingSystems\AlgoFuturesTrader8-Installer-Setup.exe
    

Tip: After updating, restart NinjaTrader 8 and AFT8 to ensure all components load cleanly.

Filed Under: AFT8, Algo Futures Trader, NinjaTrader 8, ninjatrader automated trading systems, ninjatrader trading bot Tagged With: AFT8 Release, AFT8 update, AFT8Update, automated futures trading


🚀 Get Started 100% FREE!

2026 new year trading start AFT8 VIP Workspaces for Prop Trading & Day Trading Futures

January 3, 2026 by AFT

3 Points of importance for 2026 new year trading start

  1. Apex 90% off Sale goes on until 6th Jan 90% Off Coupon HFMOJTET 
  2. AFT8 update – version 2022.1.2.1 released -this corrects some 2025/2026 AWT API Link rollover errors + adds in precision optimizations on the AFT Fib Grid
  3. 2026 Turnkey Workspaces – for VIP traders who are actively trading with a subscription or lifetime license
    1. AFT8-VIP-DayTrader-001 – session breakout for prop trading
    2. AFT8-VIP-DayTrader-002 – trend scalper for prop trading

Optional Annual Maintenance/ Optional Lifetime Renewals
For Lifetime Renewals, please visit ‘My Pricing’ to see what renewal promos await those who have not yet renewed and want to catch up on all the latest tech and turnkey workspaces for 2026… – this also includes vip group access/ AWT access/ support access and so on as listed at:  ATS Universal Account > My Pricing 

Filed Under: AFT8, prop firm trading Tagged With: AFT8 update, AFT8Update, automated futures trading


🚀 Get Started 100% FREE!

AFT8 Update released version 20251013 for NinjaTrader 8

October 1, 2025 by AFT

AFT8 Update released version 20251013 includes a service maintenance update:
– async threading optimizations in bars to prevent thread pool starvation during heavy tick storms,
– ‘MultiShotTradeCopier’ optimizations also on long running os threads and token isolation
– Compiled against the latest version of NinjaTrader 8.16 for the latest features and support of NT8.
– Tweak fix to the way it handles and attaches accounts with rithmic prop/eval account connections
– Tweak to optimize dispatcher usage in indicators AFT120SignalsTrendTTF,AFT120SignalsTrendLTF, and AFT120SignalsTrendHTF

To get the latest Update NinjaTrader to version 8.16 and then download the AFT8 Secondary installer or wait for AFT8 will display an update notification.
Or simple run the “\Downloads\AlgoTradingSystems\AlgoFuturesTrader8-Installer-Setup” program and it will get the latest version.

Filed Under: AFT8, NinjaTrader 8 Tagged With: AFT8 Release, AFT8 update, aft8release, AFT8Update, automated futures trading, fully automated trading system


🚀 Get Started 100% FREE!

Does the AFT8 Full Feature FREE Trial Allow Trading of Sim, Ninja Demo, Prop Evaluation, Prop Live, and Live Brokerage Accounts?

September 30, 2025 by AFT

Free means free — and full feature means you get the complete set of tools to explore AFT8 in any trading environment.

The AFT8 free trial is more than just a basic demo. It’s the complete system unlocked for a full month, giving traders the chance to experience all the features without entering a credit card or personal details. That means you can truly put the software to the test — whether on simulation, prop evaluation, or even your own live brokerage account.

Account Types Supported During the Trial

During the trial, you can connect to and trade on:

  • Sim101 (NinjaTrader simulated account)
  • NinjaTrader Demo (NinjaTrader demo account)
  • Prop Evaluation accounts
  • Prop Live funded accounts
  • Brokerage Live accounts

In short, the free trial license is identical in capability to a paid license — so you can test AFT8 where it matters most.

Full Flexibility

  • Switch between account types at any time.
  • Trade any supported futures instrument — ES, MES, NQ, MNQ, CL, GC, YM, and more.
  • Adjust position sizes, stops, and targets to fit your style.
  • Explore manual, semi-auto, or fully automated entries with AFT8’s trade algo entry and trade manager handling exits.

Zero to Hero Stages

To guide you, the trial includes turnkey workspaces that walk you through a progressive “Zero to Hero” journey:

  1. Stage 1: Manual entries with automated exits.
  2. Stage 2: Hybrid entries (semi-auto or auto) with automated trade management.
  3. Stage 3: Multi-timeframe confirmation for higher-probability trades.
  4. Stage 4: Advanced hybrid trading with AWT (Alpha WebTrader) integration.

This structure helps new users build confidence step-by-step, while still allowing experienced traders to dive directly into advanced setups.

FAQ

Q: Can I change instruments or settings?
Yes. Instruments, contract size, and settings are fully configurable.

Q: Is fully automated trading allowed with prop firms?
Most prop firms require hybrid (supervised) trading. AFT8 is designed for this man-and-machine approach.

Q: What happens when the trial ends?
After 7 days, the trial expires. You can continue with Sim Mode on Freemium, or upgrade to a paid plan to access live and prop trading features.

Resources

  • ATS Help Center
  • Zero to Hero Guides
  • Prop Trading Articles

Filed Under: AFT8, aft8 turnkey workspaces, ninjatrader automated trading Tagged With: automated futures trading, ninjatrader automated trading, ninjatrader automated trading systems


🚀 Get Started 100% FREE!

Announcing AFT8 Update Release version 20250919

September 21, 2025 by AFT

aft gold intelli stop trail stop

AFT8 Update Release – Freemium Workspaces, Smarter Trails, and Next-Level Stability

Audience: All traders • Applies to: AFT8 (NinjaTrader 8)

Quick Summary

We’re excited to announce a major AFT8 update, bringing new Freemium Workspaces, re-tuned settings for tighter and more responsive turnkey trails, and several under-the-hood improvements that push NinjaTrader performance to new levels. This release continues our mission: making advanced, professional-grade futures trading accessible to all traders.

What’s New

  • Freemium Workspaces: New setups that highlight tighter trading nuances, with T1/T2 trails (variants B and C) designed to show more precise stop behavior. Other workspaces give trades room to breathe, allowing traders to see both tight and loose trail management in action.
  • Trail Offsets Reworked: Default distances have been tightened, moving away from swing-trading artifacts and aligning instead with prop/day-trading defaults.
  • Bidirectional Entry/Exit Orchestration: Round-robin, fine-grain locks coordinate both directions — Trade Manager ↔ Algo Entry — so the active side finishes first. This works in 1:1 and many:many topologies across multiple algos and exit managers, preventing jams, thread-pool starvation, and tick-churn/render delay.
  • Asymmetric Threading Model: Our long-running thread design avoids clogging NT8’s thread pool, keeping NinjaTrader responsive under heavy load – something 99.9% of vendor systems cannot claim.
  • Reploshed Bars & Tick Aggregation: A new adaptive bars engine removes the need for tick purging on NT lag/render delays. Instead, we aggregate ticks in parallel with up to 5Ă— compression, preserving all price/time information while keeping NT8 smooth during news events, market opens, and heavy volume sessions. Another original MicroTrends Ltd invention.
  • NT8 Maintenance Modes: Built-in recovery tools to free stuck orders and improve fault tolerance. OCO entry mode now uses a 5% margin up/down (10% total) by default.
  • Multi-Shot Entry & Exits: Available for AFT8 Lifetime (year 1) users or traders who have renewed their maintenance or lease plans.
  • IntelliStop Migration: The AFT7 invention has been fully integrated into AFT8. IntelliStop is a trailing stop that adapts based on profit as a % of the expected Fib Grid range, with linear and parabolic modes.
    • For example, in a day-trading breakout with a typical 100% range, IntelliStop begins trailing at 50% profit and will close out at 100%.
    • Traders can cap the maximum tightening (e.g., 80%), leaving a final 20% buffer to let winners run.
aft gold intelli stop trail stop
AFT gold intelli-stop trail stop -locking into 100% level with a margin

Innovation Credits

This release includes several proprietary inventions and IP owned by ATS, including: the Fib Grid, USAR methods, Apaptive Bars, and the Intelli-Stop system – both designed to help traders manage risk and profits more intelligently under real-world trading conditions.

Get Started

AFT8 will automatically announce this update via a popup on your next usage.
You can also download the update directly from your ATS account:
ATS User Account › Downloads.

Freemium workspaces are available now. Existing AFT8 Lifetime and maintenance/lease users can access Multi-Shot and IntelliStop features immediately. Update today and experience the new responsive trails, smarter stops, and improved NT8 performance under load.

AFT8 Update – Key Highlights

Quick Summary

  • Freemium Workspaces: New turnkey trails (T1/T2 B & C) show tighter trading nuances, while other workspaces allow trades more breathing room.
  • Trail Offsets: Defaults adjusted from swing-style to prop/day-trading responsive settings.
  • Entry/Exit Orchestration: Round-robin, fine-grain locks coordinate Trade Manager ↔ Algo Entry (1:1 or many:many), preventing jams, thread-pool starvation, and tick-churn/render delay.
  • Performance Boost: Adaptive bars with parallel tick aggregation (up to 5Ă— compression) keep NT8 smooth during news/opens and heavy volume.
  • Maintenance & Recovery: New modes to free stuck orders; OCO entry margins adjusted.
  • Multi-Shot & IntelliStop: Available to AFT8 Lifetime (year 1) and renewed users; IntelliStop provides linear & parabolic adaptive trailing stops based on Fib Grid range.

How to Update: AFT8 will announce the update via popup on next usage. You can also download it from your ATS account here:
ATS User Account › Downloads.

Note

These updates include proprietary innovations AFT8 methods and technology including: hybrid automation trade engine, Adaptive bars, Fib Grids, USAR, MultiShot trade copier, Intelli-Stop trail system + more.

Filed Under: AFT8, automated futures trading systems, ninjatrader automated trading Tagged With: AFT8 update, aft8release, AFT8Update, automated futures trading, Automated Trading NinjaTrader


🚀 Get Started 100% FREE!

  • 1
  • 2
  • 3
  • …
  • 8
  • Next Page »

Help & Information

  • ninjatrader automated trading
  • Automated Trading Systems
  • Support Center
  • Help Desk Articles
  • Trading Group & Forum
  • Videos

Recent Posts

  • A Guide to Trading a $50K Futures Prop-Firm Account
  • The Best Path to Getting Funded Trading Futures
  • AFT8 Performance Tweaks for NinjaTrader 8.1.7
  • AFT Lifetime (One-Time Purchase) License Terms Updated
  • ATS Futures Trading Group Rebooted!
  • Facebook
  • RSS
  • Twitter
  • YouTube




  • NinjaTrader Automated Trading
  • automated futures trading
  • automated trading systems
  • Day Trading Futures
  • Get Started Day Trading Futures
  • VIP Trading Group Live Market Trade Along
  • Secret to Day trading futures success
  • AFT8 for NinjaTrader 8
  • Futures Algo Trading Systems
  • Market News
  • NinjaTrader Free Trading Platform
  • Legal Notices
  • AFT Legal Info
  • Terms
  • FULL RISK DISCLOSURE
  • Privacy Policy
  • Cookie Usage
  • About AlgoFuturesTrader
  • Connect to AFT
  • Blog
  • Videos
  • Support
  • Contact
  • My account
  • Sitemap
  • Affiliates

Ninja Futures Trading
Algo Futures Trader Copyright Algo Trading Systems© 2026 ·
AlgoFuturesTrader.com is owned & operated by Algo Trading Systems LLC. By using this website or products & services, you are bound by our Terms & subject to US legal jurisdiction only. Errors & omissions excluded.
AFT made in England, powered by MicroTrends NinjaTrader development

Disclaimer: Trading & investment carry a high level of risk. AlgoFuturesTrader does not make recommendations for buying or selling any financial instruments, nor do we offer trading or investment advice. We are a software company, and we only provide educational information on ways to use our sophisticated Algo Futures trading tools. It is up to our customers & readers to make their own trading & investment decisions, or consult with a registered investment advisor.

Risk Disclosure: Futures, CFDs, & forex trading carry substantial risk and are not suitable for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one's financial security or lifestyle. Only risk capital should be used for trading, and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. Please read the full risk disclosure here.

Hypothetical performance results have many inherent limitations, some of which are described below. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. For example, the ability to withstand losses or adhere to a particular trading program despite trading losses are material points that can adversely affect actual trading results. Numerous other factors related to the markets or the implementation of any specific trading program cannot be fully accounted for in the preparation of hypothetical performance results and can adversely affect trading results.

Testimonials appearing on this website may not be representative of other clients or customers and are not a guarantee of future performance or success.

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, nor do they endorse, recommend, or approve any such product or service.

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT