When we do back-test, we usually download M1 data from a third party, and then convert M1 data to other timeframes.
This script helps to convert history data from M1 to M5, M15, M30, H1, H4, D1, W1 and MN.
This script must be run on M1 chart.
You may choose whether to convert to D1, W1, MN or not. By default it is false.
Please note that you should disconnect from broker server before backtesting, otherwise the data will be overridden by server data.
To avoid override, the practical method is to delete the password in MetaTrader 4 settings (menu "Tools" → "Options" → "Server").
Generates a random number, and if this number is even, it will buy, if odd - it will sell.RSI with divergency
RSI modified to show the excess of the market (more than 70 and less than 30), and show you the divergency with the price.