Is possible to include events (dividends, bonus, etc) on CSV file to built an custom asset on metatrader 5?
Ricardo Rodrigues Lucca:
DEAL_DIVIDEND is used to log dividends when provided by brokers, but custom symbols in MT5 don't support corporate actions like dividends in backtesting.
You'd need to simulate them manually in your CSV or EA logic.
Miguel Angel Vico Alba #:
Yeah, I thought someone resolved this problem with some idea but I'll keep using adjusted chart in most of my testing. :'(DEAL_DIVIDEND is used to log dividends when provided by brokers, but custom symbols in MT5 don't support corporate actions like dividends in backtesting.
You'd need to simulate them manually in your CSV or EA logic.
To appears more realistic in a few tests, I'm using unajusted data and simulate on tester via deposit.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, I know I can create a custom asset using a CSV file for price movements.
However, I don't know how to include dividends to simulate a full corporate action.
I noticed there is a deal_type called DEAL_DIVIDEND, so I thought maybe it would
be possible. What am I missing? Is there a better approach?