New Year sale: Professional and Ultra up to 50 PLN cheaper — until 6 January onlyGet your discount →

How to file PIT-ZG from NinjaTrader for tax year 2026

  • Futures broker

Updated guide for people filing NinjaTrader activity in Poland: data export, tax calculation, and how to complete PIT-ZG.

Last updated: October 30, 2026•Reading time: ~15 minutes

Author: Podatek Giełdy Team

Capital gains tax specialists

When do you need PIT-ZG with NinjaTrader?

PIT-ZG is an attachment to PIT-38 where you report income from sales earned abroad and the tax paid abroad — separately for each country. The country follows from what you sell, not from where NinjaTrader is based: selling Polish shares through NinjaTrader does not go on PIT-ZG.

In the PIT-ZG attachment, income must be reported by country. PIT-ZG is filed together with PIT-38 by April 30.

Tip: PIT-ZG shows details of foreign income by country. PIT-38 shows total income (Polish + foreign).

Read the complete PIT-ZG guide →

How to export data from NinjaTrader?

To file PIT-ZG, you need to export the full transaction history from NinjaTrader for the entire tax year.

Step by step:

  1. 1Log in to the NinjaTrader web platform
  2. 2In the top right corner, click your initials and choose “Statements” from the menu
  3. 3On the “Statements and Reports” page, select your account (Live) and set “Report type” to “Fills”
  4. 4Set the period to the whole tax year: instead of “Today”, choose a custom date range (Custom Range) from 1 January to 31 December
  5. 5Click “Download CSV” — this downloads Fills.csv
  6. 6Set “Report type” to “Cash History”, keep the same period and click “Download CSV” — this is Cash History.csv
  7. 7Import both files together, in one import

Tip: For FIFO method, export history from the first purchase of shares that you still hold or sold in the reporting year.

Read detailed export instructions for NinjaTrader →

How to calculate PIT-ZG tax for NinjaTrader?

PIT-ZG tax calculation consists of several steps:

  1. 1Import file from NinjaTrader: Use our calculator to import the exported file.
  2. 2System automatically: Applies FIFO method, converts currencies to PLN using NBP rates, calculates tax.
  3. 3You will receive a summary: Ready to transcribe to the PIT-ZG form.

Use our calculator

Our calculator automatically performs all calculations for you. Just import the file from NinjaTrader.

Start calculations
Read more about calculations →

How to fill in the PIT-ZG form?

For each country you have income from through NinjaTrader, you fill in a separate PIT-ZG. In it you enter:

  • Country of income and country code (boxes 6 and 7 in form PIT/ZG(8)): for shares, the country where the company is based; for ETFs, the country where the fund is based (e.g. Ireland). Where NinjaTrader is based does not decide it. If no tax was taken abroad on the gain, the choice of country does not change your tax.
  • Income from selling shares and ETFs from that country (box 29 in form PIT/ZG(8)): proceeds minus costs, in złoty at NBP rates. Skip countries with a loss — the loss still lowers your income in PIT-38.
  • Crypto income, if you have any (box 31 in form PIT/ZG(8)) — separately from shares and ETFs.
  • Tax paid abroad on this income (if applicable)

Tip: The calculator finds each company's and fund's country from its ISIN and works out the income separately for each country. It reports CFDs and forex only in PIT-38, without PIT-ZG: the country of the company the contract is on is not the source of this income. It adds crypto to PIT-ZG only once you choose the country, because crypto exchanges do not give one.

Read more about filling in the form →

Frequently asked questions

Do I have to report all transactions from NinjaTrader?

Yes. In PIT-38 you report all sales and closed positions at NinjaTrader for the year — including those at a loss: a reported loss can be deducted in later years.

Are NinjaTrader commissions deductible?

Yes, commissions are a cost of revenue and reduce taxable income. The calculator automatically includes commissions.

Does NinjaTrader require PIT-ZG?

Not because of the broker itself. You attach PIT-ZG when you have income from sales in a country other than Poland — e.g. from shares or ETFs of non-Polish companies and funds — one attachment per country; that is what podatki.gov.pl advises. Some KIS rulings hold that PIT-ZG is not needed when the treaty with that country gives the taxing right only to Poland — the tax is the same either way. Polish shares and countries with a loss do not go on PIT-ZG.

Related guides

Ready to file PIT-ZG from NinjaTrader?

Use our calculator to automatically compute your tax. Just import the file from NinjaTrader - the system will automatically apply FIFO, convert currencies and generate a summary ready to transcribe to PIT-ZG.

Up to 10 sales a year free • No credit card