Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Demetra Symbol Spec Sheet - script per MetaTrader 5

Francesca Draoli
Francesca Draoli
Under the name DEMETRA, I develop software for MetaTrader 5. On this profile I publish indicators, utilities and expert advisors. I handle the code, the tests and the updates myself.
Visualizzazioni:
75
Pubblicato:
Aggiornato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The same symbol can be set up quite differently from one broker to the next. Contract size and tick value can differ, so can stop levels and swaps, and the money value of one point or the margin for one lot usually has to be worked out by hand. This script collects it on one sheet, shown in a small panel on the chart and printed to the Experts log.

The point value is not read from a field. The script asks the terminal to price a one-point move with OrderCalcProfit, once for a long position and once for a short one, so the currency conversion is the one your own terminal applies. OrderCalcProfit rounds its result to the account currency, usually to cents, and where one point is worth very little, as on some Bitcoin contracts, that rounding alone can be off by 10% or more. So the move is priced on a volume large enough to make the rounding negligible, then divided back to 1.00 lot. The margin for 1.00 lot comes from OrderCalcMargin. Both need a connection and a live quote. Without them the sheet says so and still shows everything that does not depend on a price.

The rest of the sheet is the plain specification. It starts with the currencies of the symbol, its digits, the contract size and the tick value. The tick value is the field as the broker sends it. Some servers leave it unconverted on a few symbols, so the sheet checks it against the priced value of one tick and shows both numbers when they disagree. The spread is the one at the moment you run the script. The sheet shows the time of that quote and notes whether the spread floats. After the volume limits and the stop and freeze levels you find the swap mode with the long and short values and the day the swap is tripled. The last lines show how the symbol is traded and filled, and the trading sessions the broker sets for today's weekday, in server time. That is the weekly schedule, so a holiday closure does not show there.

Next to the swap values the sheet prints their unit, taken from the swap mode. It can be points, money in a stated currency or a yearly percentage, so a swap of 2.00 does not always mean 2.00 in your account currency.

Inputs

Show the sheet on the chart: the panel stays on the chart after the script ends. Set this to false and run the script again to remove it. With false the script only removes the panel and saves nothing.

Also save the sheet as a CSV file: the file goes to MQL5\Files and is named DEMETRA_SpecSheet_ followed by the symbol. The two columns are separated by a semicolon, so if your spreadsheet expects commas, open the file through its text import.

On a small chart the panel switches to a smaller font or to two columns. On a very small chart part of it can still be cut off, but the Experts log always holds the full sheet, and so does the CSV file if you save one.

The panel keeps the values of the symbol it was run on. If you switch the chart to another symbol, run the script again and the old panel is replaced.

The script only reads data. It never opens, changes or closes a trade.

Structural Swing Migration BUY Structural Swing Migration BUY

Structural Swing Migration BUY is an educational Expert Advisor for MetaTrader 5 that opens BUY positions when confirmed swing highs and swing lows move upward together. It evaluates closed M15 candles and combines structural confirmation with a volatility threshold and a bullish candle filter.

AesHmac: AES-256 encryption with tamper check and password keys for MQL5 AesHmac: AES-256 encryption with tamper check and password keys for MQL5

One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.

Prop Firm Equity Guard Prop Firm Equity Guard

Protects prop firm challenge and funded accounts: watches equity in real time and closes all trades before the daily loss or maximum loss limit is broken, with an optional profit target lock and a live progress panel.

InputRules: Rules Between Inputs and the Share of Passes They Reject InputRules: Rules Between Inputs and the Share of Passes They Reject

A library for MetaTrader 5 that declares rules between the inputs of an Expert Advisor once in the code. OnInit rejects a combination that breaks a rule, with the reason in the Journal; before an optimization starts, OnTesterInit estimates which share of its passes the rules would reject and warns above a limit you set.