MGAS Tool · User manual

MGAS Tool – User manual

Version 2.0 - November 2026 · Download the PDF · Watch the demo video (4 min) · Get it from Microsoft Store · Versione italiana

Preface

MGAS Tool is a Windows application that streamlines trading on the Gas Market (MGAS) run by the Italian energy market operator GME (Gestore dei Mercati Energetici). It is designed for traders who work every day for one or more companies and need to enter buy and sell offers quickly, on time and under control, especially close to the 17:30 close, when the price that serves as the PSV reference is formed.

The tool works with the trader's own GME enablement and digital signature, exactly as on the MGAS platform, in compliance with the MGAS Rules (Disciplina) and the Technical Rules (DTF): it does not replace them.

What it does

Who it is for

This manual is intended for the enabled traders who use the tool on behalf of the company or companies whose MGAS activity they manage, and for whoever installs it on the PC. Chapter 1 covers requirements, data to prepare and installation; chapter 2 presents the system, chapters 3 and 4 describe the functions and daily use, chapters 5 and 6 the automations and controls, chapter 7 archives and backup; then troubleshooting, support information and a glossary.

Language

Windows, messages and e-mails are in the language chosen by the user (English or Italian): it is asked at the first start and can be changed in Settings → 1. Smart card and access (applied at the next start). The log files and the Log tab are always in Italian, like the GME platform: the main outcomes are ACCETTATA (accepted), RIFIUTATA (rejected), DA VERIFICARE (to be checked) and NON INVIATA (not sent). Market data read from the GME website (for example acquisto = buy, vendita = sell, abbinata = matched) are shown as GME publishes them.

Responsibility
The tool executes the trader's instructions and applies preventive checks (quantities, prices, guarantees, licence, times), but the responsibility for the offers sent always remains with the trader and the company on whose behalf they act. Before every send the tool shows a summary to be confirmed.
Compliance checks (for example blocking wash trading on the same company) only cover the cases the tool can recognise: compliance with the MGAS Rules, REMIT and the other market rules always remains with whoever trades.

1. Installation

This chapter describes what is needed to use MGAS Tool, which data to obtain before starting and how to install and configure it. With all the data at hand, installation takes about 15 minutes.

1.1 Requirements

Operational and contractual requirements

Technical requirements

ItemRequirement
Operating systemWindows 10 or Windows 11, 64-bit. No other software is needed.
Windows userPassword-protected account: the password is needed once, to enable the automatic sends with the user logged off.
RightsPC administrator rights for installation and for every update. Daily use does not require them.
Smart cardBit4id reader or token with its software installed; with the smart card inserted, the certificates must appear among the Windows personal certificates.
Disk spaceAbout 160 MB for the program, plus a few MB per month for logs and archives.
NetworkInternet access to the GME MGAS platform, the supplier's licence service and, if used, the mail server.
PowerPC switched on at the times of the automatic sends: disable sleep (standby) during market hours.

1.2 Data to obtain before starting

Confidential information (PIN, licence key, mail passwords and secrets) is stored only in encrypted form, usable only by the same Windows user on the same PC.

DataProvided byPurpose
Windows user nameThe user.The licence is valid for one company and one Windows user: it must be sent to the supplier before installation.
Licence company codeThe supplier.Entered at every start (the last one used is proposed).
Licence service keyThe supplier, together with the licence.Entered only once.
Smart card and PINThe trader.To access MGAS and sign offers, amendments, withdrawals and the authorisation. The PIN is remembered so that the automatic sends work without intervention.
Company for the daily authorisationThe trader: any one of their companies.Every day at 10:00 the tool enables the user for the market session for all their companies.
Windows passwordThe user.To enable the automatic sends with the user logged off; it is kept by Windows, not by the program. With a Microsoft account it is the password of that account (not the Windows Hello PIN).
Mail parameters (optional)The IT manager.To receive the result e-mails: with SMTP server, port, security, user, password and sender; with Microsoft 365 tenant ID, ID and secret of an application with the Mail.Send permission, and the sender mailbox. In both cases the recipients.
Backup folders (optional)The IT manager or the user.Network folders or folders of a cloud service synchronised on the PC (OneDrive, Google Drive, SharePoint) that receive a daily copy of logs, messages and orders, to be kept for 5 years.
Before starting
Check that the licence has been activated for the right Windows user and have the smart card inserted: without an active licence or without the smart card the program does not start.

1.3 Installing the program

  1. Install the smart card software (if not already present), insert the smart card and check that the CNS and signature certificates appear among the Windows personal certificates.
  2. Open the installation package MGAS_Tool_x.y.z.msi, supplied on request by Mariano Sprotetto (mariano.sprotetto@msprotetto.com).
  3. If the “Windows protected your PC” warning appears, choose More info, check that the publisher is SPROTETTO MARIANO and then Run anyway.
  4. Confirm the Windows request for administrator rights.
Digitally signed package
The package and the installed programs are digitally signed by the publisher SPROTETTO MARIANO. A package with a different publisher or without a signature does not come from the supplier and must not be installed.

When finished, the “MGAS Tool” shortcut is on the desktop and in the Start menu. The tool data (configuration, logs, archives) are never deleted, not even when the program is uninstalled.

1.4 First start and guided setup

  1. Start MGAS Tool with the smart card inserted.
  2. Choose the program language (English or Italiano).
  3. Enter the licence company code and, the first time only, the licence service key.
  4. The Settings window opens as a guided setup: fill in the tabs described below and press Save.
  5. If the PIN was not entered in the settings, the program asks for it now. Then the main window opens.
TabWhat to set
1. Smart card and accessChoose the language, the access certificate (CNS) and the qualified signature certificate, enter the PIN, press Test MGAS login and choose the company used for the daily authorisation.
2. E-mail notificationsChoose No e-mail, SMTP or Microsoft 365, fill in parameters, sender and recipients (separated by ;) and check with Send test e-mail.
3. BackupEnter the backup folders (chapter 7). Leave empty for no backup.
4. Scheduled tasksSee the next section.

The settings can be reopened at any time with the Settings button of the main window.

1.5 Enabling the automatic sends

The 10:00 authorisation, the 17:29:58 send, the orders at a chosen time and the backup are enabled with a single button:

  1. In Settings → 4. Scheduled tasks press Create / update the tasks.
  2. Enter the user's Windows password when asked.
  3. Check that all four tasks are created, with the date of the next run.

From the same tab the tasks can be disabled, enabled again or removed. If the Windows password changes, press Create / update the tasks again and enter the new password.

If the company applies security policies
On PCs managed by an IT department, Windows policies may prevent the automatic sends with the user logged off: the program reports it. In that case ask IT to grant the user the “Log on as a batch job” right.

1.6 Final check

  1. In the main window check that the book and the user's companies appear and that the status shows “fast send: ready”.
  2. Send a test offer of 1 MW at a price that cannot be executed (for example a sell well above the best bid) and check in the Log the outcome “ACCETTATA” (accepted) and the arrival of the e-mail.
  3. Withdraw the offer immediately from the Open offers tab.

1.7 Program updates

The program reports new versions at every start and, at any time, with the Check for software updates button at the bottom of the Settings window (next to it is the version in use).

  1. If a newer version is available, a message with the changes appears.
  2. Yes = install now; No = later: the update is offered again at the next start.
  3. Confirm the Windows administrator request: when finished the program reopens in the new version.

Only intact updates signed by the supplier are installed. Configuration, archives and scheduled tasks stay unchanged.

When updates are not installed
For safety the update is not installed between 09:55 and 10:05 (daily authorisation), between 17:20 and 17:35 (17:29:58 send), while an operation is in progress or with orders scheduled within the next 15 minutes: the program reports it and offers it again at the next start.

1.8 Uninstalling

First remove the tasks from Settings → 4. Scheduled tasks → Remove, then uninstall MGAS Tool from Windows Settings → Apps. The tool data are not deleted: they contain the archives to be kept for 5 years.

2. System overview

MGAS Tool includes a main window for the trader and some automations that run by themselves at the set times, even with the program closed.

ComponentWhat it provides
MGAS Tool windowBook, immediate and scheduled orders, open offers, guarantees, statistics, log.
Fast sendSend, amendment and withdrawal in about one and a half seconds from the click to the GME outcome.
Daily authorisationEvery day at 10:00 it enables the user for the market session, once for all companies.
17:29:58 sendSends the scheduled orders at 17:29:58 by the GME clock.
Orders at a chosen timeSends at the chosen time the orders scheduled for another moment of the day.
BackupEvery morning copies logs, messages and orders to a company network or cloud drive.
E-mail notificationsSummaries of sends, amendments, withdrawals, authorisation and warnings.

Scheduled times are expressed in GME time: the send is on time even if the PC clock is a few seconds ahead or behind.

3. The main window

Figure 1 - The MGAS Tool main window (demo data).
Figure 1 - The MGAS Tool main window (demo data).

3.1 Start, licence and access

The tool starts with the MGAS Tool shortcut and opens full screen. At start it asks for the licence company code (the last one used is proposed) and, the first time, the smart card PIN; then it shows the market and the companies enabled for the user.

Messages at start
“Invalid licence. Contact the software supplier Sprotetto Mariano”: the licence is not active for the company or the user; the program closes.
“Smart card not inserted”: the tool works only with the smart card inserted; close it, insert the card and reopen.
PIN rejected: the tool asks for the correct PIN. Warning: after 3 wrong attempts the smart card locks.

3.2 Top bar

ItemFunction
StatusConnected user, time of the last update, number of companies shown, fast send status (“fast send: ready”), licence expiry, any operation in progress.
ManualOpens this manual online (www.msprotetto.com/mgas-tool/manual); without Internet it opens the installed PDF, also available from the Start menu (“MGAS Tool Manual”).
SettingsLanguage, smart card and access, e-mail notifications, backup and scheduled tasks (1.4 and 1.5); at the bottom the version in use and Check for software updates (1.7).
Change PINUpdates the PIN remembered by the program, if the smart card PIN has been changed.
Refresh nowRefreshes all data immediately.
ExitCloses the program, with confirmation. Scheduled orders stay active even with the program closed.

3.3 Book MGP / WE / MI / WD

Shows, for every tradable product, the best bid and ask with their quantities (MW), updated every 5 seconds. The price is green with ▲ if it has risen and red with ▼ if it has fallen; the colour stays until the price changes again.

3.4 Companies box and confidentiality

Lists the companies the user is enabled for, with the GME operator code. The information of a company is visible only when the company is ticked: guarantees, scheduled orders, open offers, executed orders and daily activity. Companies that are not ticked do not even appear in the choice for new orders: useful, for example, when a client is watching the screen.

3.5 New orders

Each row is an order. Add it with Add row and delete it with Delete row.

ColumnContent
CompanyCompany for which the offer is sent (only among the ticked ones).
ProductProduct in the book (e.g. MGP-2026-10-21, MI-..., WE-..., WD-...).
SideBuy or Sell.
Quantity (MW)Positive whole number of MW (MGAS Rules, art. 28.2).
Price (optional)If entered, the offer is at a fixed price. If empty, the offer is at market price: buy = best ask in the book + delta; sell = best bid in the book - delta, at the time of sending.
Guarantee use (€)How much the order uses of the company's guarantee according to MGAS DTF 15 (examples in section 6.1). It is the value on which the row is accepted or rejected.

3.6 Market price delta

The Delta field (EUR/MWh) sets the offset from the book for market-price orders (default 0,05; from 0 to 5). Change it by typing the new value and pressing Save delta: it applies at once to immediate sends and to scheduled orders not yet sent.

How to read the delta
The delta sets the limit price, not the price paid: normally the executed price is that of the offer already in the book. The delta matters when the book moves or the quantity at the first level is not enough: a smaller delta improves the price in those cases, but increases the risk that the order remains (wholly or partly) unexecuted.

Automatic close within the PSV range

The PSV range row (default 0,03 EUR/MWh, automatic close tick box, Save button) applies to scheduled market-price orders; fixed-price orders are never touched. If 10 seconds after sending an offer is not completely closed, the tool compares it with the 17:30 PSV of the product:

OfferLimitWhat happens
SellPSV - rangeIf the best bid in the book is equal to or above the limit, the offer is amended to the limit for the residual quantity and closes against the bids in the book, at their price.
BuyPSV + rangeIf the best ask in the book is equal to or below the limit, the offer is amended to the limit and closes against the asks in the book.
Outside range-No amendment: an e-mail “WARNING - close by hand” arrives with PSV, limit and best book price.

Example (made-up data): market sell not closed, 17:30 PSV = 90,40, range 0,03, therefore minimum 90,37. Best bid in the book 90,38: the offer is amended to 90,37 and closes at 90,38. Best bid 90,30: no amendment and an e-mail to close by hand.

3.7 Send now

SEND NOW immediately sends the orders in the table. Before sending, the tool shows a summary with the price that will be applied and the guarantee check; the send starts only after confirmation. The outcome of each offer appears in the Log, the tables refresh at once and a summary e-mail arrives.

With several orders, all buys are sent first and then the sells; within each group, market-price orders first, then fixed-price ones. This order applies to all sends: immediate, 17:29:58 and at a chosen time.

GME discards an offer that would match an opposite offer of the same user, even of another company (code OF1000). For this reason, if in the same send the buy of one company and the sell of another on the same product could cross, the sell is sent as soon as the buy can no longer match it, at the market price of that moment. If this does not happen within 3 seconds, the sell is not sent (status NOT SENT in the summary e-mail) and must be decided by hand.

Buy and sell of the same company on the same product in the same send that would cross are blocked as possible wash trading (section 6.1).

3.8 Scheduling orders

SCHEDULE 17:29:58

Schedules the orders for the automatic send at 17:29:58 (GME time). After 17:27:30 the orders will be sent the following day (the tool reports it). If orders are already scheduled for the ticked companies, you choose whether to add or replace them.

SCHEDULE AT

In the box next to the SCHEDULE AT button, type a time of the day in GME time, for example 15:00 or 15:00:30, and press the button. Rules:

When scheduling too, buy and sell of the same company on the same product at the same time that would cross are blocked, including those already scheduled at that time (section 6.1).

3.9 The tabs at the bottom

Guarantees

For every ticked company: guarantee, exposure and capacity from the GME MP Guarantee Summary (net of the 3% maintenance margin), use of the scheduled orders and available = capacity - scheduled orders. Updated every 30 seconds and right after every send or withdrawal. Orders not covered by the available amount are blocked (section 6.1).

Guarantees at the end of the day
Around 17:00-17:45 GME makes the guarantees temporarily unavailable. In that window the tool shows the last values with the warning NOT UPDATED and realigns by itself as soon as they are available again.

Open offers

Lists the offers still open of the ticked companies. Amend selected (one offer only) changes quantity and price: the amended offer loses time priority (MGAS Rules art. 28.7) and, if the new price crosses the book, it is executed. Withdraw selected withdraws one or more offers (multiple selection with Ctrl/Shift). Both ask for confirmation and produce a result e-mail.

For the offers still open (residuals) there are two buttons, each with a list in which you tick the offers to work on:

Scheduled orders

All orders waiting to be sent, with the time (GME). Cancel schedule cancels the orders of the time of the selected rows or, without a selection, all those shown. Cancelled orders stay in the archive as “annullato” (cancelled).

Executed orders (today)

The day's matches of the ticked companies.

Daily activity

The GME operations (submissions, matches, residuals, withdrawals) of the ticked companies. By default it shows today; with From and To you choose another period (Today returns to the current day) and with Operation only the rows of one type are shown. Clicking the headers sorts the rows.

Export to Excel saves the rows shown in the same format as the official export of the GME website.

Statistics

Figure 2 - The Statistics tab: expected PSV, average prices by gas day and trade chart (demo data).
Figure 2 - The Statistics tab: expected PSV, average prices by gas day and trade chart (demo data).

Trade list

The trades of the whole market on one day in a table (time, product, quantity, price, daily value), with filters for date, time from / to and product, and a summary (number of trades, total quantity, weighted average price, minimum, maximum, last). Export to Excel saves the rows shown together with the summary.

Log

History of everything the tool does in the session: logins, sends with timings and outcomes, amendments, withdrawals, schedules, delta changes, warnings. The log is in Italian (see the Preface).

4. Daily operations

4.1 A typical day

TimeWhat happensWho
09:30Backup of the logs and orders of the previous day (or at Windows sign-in, if the PC was off).Automatic
10:00Daily authorisation of the user, valid for all companies; result e-mail.Automatic
During the dayBook monitoring, immediate sends, amendments and withdrawals; order scheduling.Trader
Chosen timesSending of the orders scheduled at a chosen time; summary e-mail.Automatic
17:29:58Sending of the scheduled orders (buys first, then sells), GME outcome and summary e-mail.Automatic
17:30:08Market-price orders not closed: close within the PSV range (section 3.6); an e-mail for each matched trade.Automatic
After the sendCheck the outcomes in the e-mails or in the Executed orders / Open offers tabs; if residuals remain, Close residual offers or Withdraw residuals.Trader

4.2 Step-by-step procedures

Sending an offer now

  1. Tick the company in the Companies box.
  2. Press Add row and fill in company, product, side and quantity; enter the price only if you want a fixed price.
  3. Press SEND NOW.
  4. Read the summary (price, guarantee) and confirm with Yes.
  5. Check the outcome in the Log: “ACCETTATA” (accepted) with the offer number; the offer appears in Open offers or in Executed orders.

Scheduling the end-of-day offers

  1. Fill in the rows as for an immediate send (normally without price, i.e. at market).
  2. Press SCHEDULE 17:29:58 and confirm.
  3. Check the Scheduled orders tab.
  4. Leave the PC on (not in standby) with the smart card inserted: the program can be closed.
  5. After 17:30 read the summary e-mail.

Scheduling at another time

  1. Fill in the rows.
  2. Type the time (GME time) in the box next to SCHEDULE AT, e.g. 15:00.
  3. Press SCHEDULE AT and confirm.
  4. At the chosen time the result e-mail arrives.

Amending or withdrawing an open offer

  1. Open the Open offers tab and select the offer (or several offers for a withdrawal).
  2. Press Amend selected (new quantity and new price) or Withdraw selected.
  3. Confirm; outcome in the Log within 1-2 seconds and a summary e-mail.

Closing or withdrawing residual offers

  1. Tick the companies and open the Open offers tab.
  2. To close: type the range in the PSV range ± box (e.g. 0,10) and press Close residual offers; to withdraw them: Withdraw residuals.
  3. In the list tick the offers to work on and confirm; outcome in the Log and an e-mail.

Cancelling scheduled orders

  1. Open the Scheduled orders tab.
  2. Select a row of the time to cancel (without a selection all those shown are cancelled).
  3. Press Cancel schedule and confirm.

4.3 Execution times

OperationTypical time
Immediate send (from the click to the GME outcome)about 1,3-1,5 seconds
Withdrawal or amendment (from the click to the GME outcome)about 1,3 seconds
Scheduled sendabout 0,5 seconds per offer (offers are sent one after the other)
Data refreshevery 5 seconds (guarantees every 30 seconds)
Margin before 17:30
With the send at 17:29:58 (GME time) the offers arrive about half a second apart: with three offers the last one arrives around 17:29:59,5. If the GME website responds more slowly than usual the margin shrinks: the timings of each offer are in the Log.

5. Automations and notifications

5.1 Scheduled tasks

The automations are enabled and managed from Settings → 4. Scheduled tasks (section 1.5):

TaskWhenWhat it doesRuns
Authorisationevery day 10:00Enables the user for the market session (if not already enabled) and sends the result e-mail.also with the user logged off
Offers 17-29-58every daySends at 17:29:58 (GME time) the orders scheduled with SCHEDULE 17:29:58.also with the user logged off
Scheduled ordersevery minuteSends the orders scheduled at a chosen time; reports the expired ones.also with the user logged off
Backup09:30 and at sign-inCopies logs, messages and orders to the backup folders (chapter 7).with the user signed in

In the Windows Task Scheduler the tasks keep their Italian names (Autorizzazione, Offerte 17-29-58, Ordini programmati, Backup) in the \MGAS Tool\ folder.

Conditions for the automations
The PC must be on (not off, not in standby) with the smart card inserted. The program does not need to be open, nor the user signed in to Windows (except for the backup to cloud drives, available only with the user signed in).

A manual send is always possible, even at the times of the automatic sends.

5.2 E-mail notifications

Subject (example)When
[MGAS] Authorisation dd/mm/yyyy: user enabled / user already enabled / ERROREvery day after the 10:00 authorisation.
[MGAS] Offers dd/mm/yyyy: OK (n/n accepted) / WARNINGAfter every send (immediate, 17:29:58, chosen time), with the detail attached.
[MGAS] Trade confirmed: Company SELL Product N MWh at priceAt every match: after a scheduled send and, with the program open, for the ticked companies. One e-mail per trade (can be disabled in Settings, E-mail notifications).
[MGAS] PSV range close dd/mm/yyyy: OK / WARNING - close by handAfter the close within the PSV range, automatic or from Close residual offers.
[MGAS] Offer amendment N: ACCEPTED / REJECTED / TO BE CHECKEDAfter every amendment.
[MGAS] Withdrawal dd/mm/yyyy Company: OK (n/n withdrawn) / WARNINGAfter every withdrawal.
[MGAS] Orders scheduled at HH:MM:SS: NOT SENT (time passed)If a scheduled time passed with the PC off or in standby.
[MGAS] Backup dd/mm/yyyy: ERROROnly if the backup fails (e.g. backup drive not reachable).

The recipients are set in Settings, E-mail notifications tab (section 1.4). The attached log is in Italian.

6. Controls, security and compliance

6.1 Checks before sending

The tool checks the orders when a row is confirmed in the New orders table, when SEND NOW / SCHEDULE is pressed and in the automatic sends. A rejected row stays in edit mode until it is corrected; Esc restores the previous values.

CheckOn row confirmationOn send / scheduleOutcome if not passed
Order data (ticked company, product, side, whole quantity, price)-YesBlocked
Wash trading between rows (same company, same product)YesYes (also with the orders already scheduled at the same time)Blocked
Wash trading against the company's own open offersYesSend now: yesBlocked, or allowed with a warning if the book holds enough offers from others
Guarantee (MGAS DTF 15)Yes (rows of the company in the table)Yes (also orders already scheduled)Blocked
Market price without a reference in the book-YesOrder not sent
Licence and daily authorisation-YesNothing is sent / authorisation performed first

Every block is reported in the Log (and, for the automatic sends, in the result e-mail); nothing is sent to GME. Sends, schedules, amendments, withdrawals, cancellations and delta changes always require the trader's explicit confirmation.

1. Wash trading between rows of the same company

Buy and sell of the same company on the same product to be sent at the same time (same SEND NOW, same 17:29:58 schedule or same chosen time) are blocked if they can cross:

Example (Company A, next-day MGP)OutcomeWhy
Buy 10 MW at 90 + Sell 10 MW at 95AllowedThe sell is priced above the buy: they cannot cross.
Buy 10 MW at 95 + Sell 10 MW at 95BlockedSame price: they would cross.
Buy 10 MW at 95 + Sell 5 MW at 94BlockedThe sell is cheaper than the buy.
Buy 10 MW at market + Sell 10 MW at 95BlockedThe market price is known only when sending: crossing cannot be ruled out.
Buy 10 MW at 95 (Company A) + Sell 10 MW at 95 (Company B)Allowed by the toolDifferent companies: see the warning on companies of the same group.
Buy 10 MW MGP at 95 + Sell 10 MW WE at 90AllowedDifferent products.

2. Wash trading against the company's own open offers

If the company already has an open offer on the opposite side of the same product and the new order would cross it, the new order is allowed, with a warning, only if the book holds enough offers from other operators for the whole quantity at the best level; otherwise it is blocked. Examples with the company's own open buy of 4 MW at 90 and a new sell of the same product:

New sellBest bid in the book (other operators)Outcome
1 MW at 92anyAllowed: 92 is above the own buy at 90, no crossing.
1 MW at 9091,60 with 90 MWAllowed with warning: the 90 MW of others at 91,60 are enough for 1 MW.
300 MW at 8092,00 with 240 MWBlocked: 240 MW of others are not enough for 300 MW.
10 MW at 9089,50 with 50 MWBlocked: 89,50 is below the sell price, the level cannot be reached.
10 MW at market91,60 with 90 MWExpected price 91,60 - delta: above 90, no crossing (allowed).

The check considers only the best level of the book, the only one published by GME: as a precaution it blocks even if there would be quantity at the following levels. To proceed: withdraw or amend the open offer, or change price or quantity.

3. Guarantee

The guarantee use of every order is estimated according to MGAS DTF 15 and compared with the company's available guarantee:

OperationEstimated use
BuyMW × 24 hours × delivery days × max(price, control price)
SellMW × 24 hours × delivery days × (Alpha × control price + any difference if the price is below the control price)
WhenWhat is compared
Row confirmationThis row + the other rows of the same company in the table, against the GME capacity.
Send nowOrders to be sent + orders already scheduled for the company, against the available amount.
Schedule (17:29:58 or chosen time)As above; with Add the orders already scheduled at the same time are also counted, with Replace they are not.
Amendment of an open offerOnly the additional use compared with the current offer.

Examples for a company with a GME capacity of €20.000, one-day MGP product (24 hours), control price 88 €/MWh, Alpha 10,4%:

OrdersEstimated useOutcome
Buy 5 MW at 905 × 24 × 90 = €10.800Accepted
Buy 5 MW at 90 + Buy 5 MW at 9210.800 + 11.040 = €21.840Second row rejected: above €20.000
Buy 10 MW at 8510 × 24 × max(85; 88) = €21.120Rejected: the control price 88 is used
Sell 50 MW at 9050 × 24 × (0,104 × 88) = €10.982Accepted
Sell 50 MW at 5050 × 24 × (0,104 × 88 + (88 - 50)) = €56.582Rejected: below the control price the difference is covered too

For a sell the use can be very different from the order value: selling below the control price it can exceed it. If the guarantee is not available or the use cannot be estimated, the summary says so.

Numbers follow the GME format: comma as decimal separator and dot as thousands separator (90,40 = ninety point four).

Regulatory references on wash trading

ReferenceContent
MGAS Rules (Disciplina), art. 32.7Buy and sell offers submitted by the same operator are not matched with each other: opposite orders of the same company have no economic effect and only distort the book.
Reg. (EU) 1227/2011 (REMIT), art. 5Prohibits market manipulation. According to ACER Guidance Note 1/2017, wash trading (trades with no real change in ownership or risk) is a manipulation practice, even when the misleading price signal is not intended.
MGAS Rules (Disciplina), arts. 83-85For conduct contrary to the principles of fairness and good faith GME applies disciplinary measures: written warning, fine from EUR 20.000, suspension or exclusion from the market. ARERA sanctions for REMIT breaches come in addition.

Block messages start with a red band: “ORDERS BLOCKED - POSSIBLE WASH TRADING”, followed by the conflicting rows, the prices and what to do to proceed.

Companies of the same group - the trader's responsibility
The block applies only to the same company. Buy and sell of the same product between different companies managed by the same trader or belonging to the same group are not blocked: according to the ACER Guidance they may still amount to wash trading if the parties act in concert.
The tool cannot know which companies belong to the same group or act in concert, nor assess the intentions of whoever trades. The tool's checks are an aid and do not guarantee compliance with the market rules: the responsibility for the orders entered, scheduled and sent, and for their compliance with the MGAS Rules and REMIT, always remains with the trader and the companies they act for, not with the program or its supplier.

6.2 Send reliability

6.3 Credential security

6.4 Traceability and retention

For every operation the tool keeps the order as entered by the trader, the message sent and signed, the GME response and the log with times and outcomes. The archives are kept for 5 years and copied every day to the backup; no function of the tool deletes them. This evidence supports the recording and control obligations for algorithmic trading (REMIT, art. 5a).

7. Archives and backup

Logs, messages and orders are separated by company: for an audit or a request concerning one company, its data can be handed over without showing the operations of the others. The e-mails and the Log tab stay unified, because they belong to the trader.

The backup (Settings, tab 3) has one folder for each company, which receives every day only the data of that company; several companies can use the same folder and a company without a folder is not copied. The general logs, which concern all companies, go only to the optional general folder, which must be a folder of the trader. The backup adds and updates files without ever deleting anything at the destination; configuration and program are not copied.

Retention
Logs, messages and orders must be kept for at least 5 years: do not delete them manually (chapter 9).

8. Troubleshooting

ProblemLikely causeWhat to do
“Smart card not inserted”The smart card is not inserted or does not respond.Close the tool, insert the smart card, reopen.
Invalid licenceLicence expired or not active for company/user.Contact the supplier (Sprotetto Mariano).
Guarantees “NOT UPDATED” around 17:00-17:45GME temporarily suspends the guarantees.No action: the tool realigns by itself.
Offer REJECTED OF200User not authorised for the market session.The tool repeats the authorisation at the next send; check the 10:00 e-mail.
Outcome “TO BE CHECKED”GME did not respond in time.Check Open offers or the message list on the website before sending again.
Scheduled orders “NOT SENT”PC off or in standby at the scheduled time.Send manually if still useful; avoid sleep during market hours.
No e-mail receivedNotification settings or network.Use Settings, E-mail notifications, Send test e-mail.
Backup ERRORBackup drive not available (e.g. Google Drive not started).Start the drive: the next backup recovers all missing files.
PIN rejectedPIN changed on the smart card.Use Change PIN. Warning: 3 wrong attempts lock the smart card.
“ORDERS BLOCKED - POSSIBLE WASH TRADING”Buy and sell of the same company on the same product that would cross, or an order that would cross an own open offer without enough offers from other operators in the book.Correct the orders; if needed, first withdraw or amend the open offer (section 6.1). Nothing has been sent.

9. Support information

For support send the supplier a description of the problem, the program version (in Settings) and, if requested, the logs of the day, after checking that they do not contain information you do not wish to share.

ItemLocation
ProgramC:\Program Files\MGAS Tool
Tool dataC:\ProgramData\MGAS_Tool (configuration, logs, messages, orders and archives). It is not deleted even when the program is uninstalled.
logsGeneral logs of the trader, one file per day and per function (mgas_gui_, mgas_offers_, mgas_modify_, mgas_revoke_, mgas_auth_, mgas_scheduler_, mgas_backup_YYYYMMDD.log); update outcomes in mgas_update_YYYYMMDD.log.
logs\CompanyLogs of each company (the rows of its orders and the common ones).
work\CompanyXML messages sent and signed .p7m files of the company; in work the common files and the snapshot of the 17:30 book (book_1730_YYYYMMDD.csv).
archivio\CompanyOrders of the company as entered, sent, cancelled, expired or not sent.
Backup foldersLog\Company, Work\Company and Ordini\Company in the folder of each company.
Scheduled tasksWindows Task Scheduler, \MGAS Tool\ folder.
History of previous versionsSplit by company with the command MgasAgent dividi-storico (with --prova it only shows what it would do).

10. Glossary

TermMeaning
GMEGestore dei Mercati Energetici, the Italian energy market operator that runs the MGAS platform.
MGASGas Market: continuous trading platform for gas products (MGP-gas, MI-gas, WE, WD and others).
MGP / MIDaily products of the day-ahead and intraday markets (e.g. MGP-2026-10-21 = delivery on 21/10/2026).
WE / WDWeekend products and working days of the following week (Working Days).
PSVPunto di Scambio Virtuale, the Italian gas hub.
Expected PSVPrice of the trades at 17:30:00 (or in the first following second) of the product that delivers a gas day.
Wash tradingTrades with no real change in ownership or risk (e.g. buy and sell of the same company on the same product): a market manipulation practice under REMIT.
BookList of the offers in the market for a product; the best level is the one shown in the window.
Bid / AskBest buy offer / best sell offer in the book.
OfferIdNumber assigned by GME to an accepted offer; used for amendment and withdrawal.
DeltaOffset from the best book price used for market-price orders.
CapacityGuarantee available for new offers (MP Guarantee Summary), already net of the maintenance margin.
DTFGME Technical Rules (Disposizioni Tecniche di Funzionamento), e.g. DTF 15 on guarantees.
DisciplinaThe MGAS Rules issued by GME.
CNSCarta Nazionale dei Servizi: authentication certificate on the smart card.
GME timeTime of the GME server clock, the reference for scheduled sends.
REMITRegulation (EU) 1227/2011 on wholesale energy market integrity and transparency.

For support, licences and updates: Mariano Sprotetto - Natural Gas & Energy Consultant.

Information and licences

MGAS Tool is available under licence to traders enabled on the GME Gas Market (MGAS). For a presentation, a trial or the licence terms: mariano.sprotetto@msprotetto.com

Book a Teams call

Data and privacy notice for MGAS Tool