Economic Calendar Events

Events are defined by user data as an input string on the settings widget panel for the indicator. The event data is a string (semicolon delimited) whose grammar is a representation of a collection of Event records, where each Event record is a comma-separated list of fields, which correspond to:
- The name of the event.
- The symbol or ticker to which the Event applies (or `*` if it should apply to all ticklers).
- The timezone and then the year, month, day, hour, and minute of the event, respectively.
Each Event record is separated by the semicolon ";" character.
As an example, assume `evantData` is the string:
In the above case, there are 4 Events defined, three of which apply to all tickers and one applies only to ETHUSD, as follows:
- The first event is named SVB and applies to all tickers at UTC time on March 10, 2023 at 12:00:00.
- The second event is named US CPI and applies to all tickers at UTC time on April 12, 2023 at 08:30:00.
- The third event is named ETH Shanghai and applies to the ETHUSD ticker at UTC time on April 12, 2023 at 08:30:00.
- The fourth event is named FOMC Rates and applies to all tickers at UTC time on May 3, 2023 at 14:00:00.
The following is a BNF for defining event data:
- Resolved issue with future events disappearing when a new bar is started and the events have already been drawn.
- Expanded event grammar to support partial matching and matching on multiple tickers. For example `ETH*:*BTC*` paints the event on any chart starting either with `ETH` or containing `BTC`
BNF:
Changes as follows:
Expanded event grammar to support partial matching and matching on multiple tickers. For example `ETH*:*BTC*` paints the event on any chart starting either with `ETH or containing `BTC`
The following is a description for specifying event data:
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.