Instructions
1. Set in box "Tools/Options/Charts":
1.1. "Max bars in history" equal to 100000000;
1.2. "Max bars in chart" equal to 100000000.
2. Close and open again terminal to accept changes.
3. Load history of demanded trading symbol.
4. Open the chart with demanded trading symbol.
5. Compile "AT5.MQ4" in directory "../experts/scripts" and execute the script.
6. AT5 script creates auxiliary file "XXXXXX.CSV" where "XXXXXX" is a name of trading symbol of the chart.
7. This file contains tick volume distribution on price points of the given trading symbol.
8. Set in box "Tools/Options/Charts":
8.1. "Max bars in history" equal to preferred value, for example, 100000;
8.2. "Max bars in chart" equal to preferred value, for example, 100000.
9. Close and open again terminal to accept changes.
10. Compile "AIS5TM.MQ4" in directory "../experts" and start it on the same chart.
11. AIS5TM will display the tick volume distribution on price "zones" with controlled step and initial shift.
12. To change zone shift and zone step press [F3] and:
12.1. set desirable value of Global Variable "AIS50001.Setup.7.1.ZoneBasePoints",
12.2. set desirable value of Global Variable "AIS50001.Setup.7.2.ZoneStepPoints",
12.3. set to "1" value of Global Variable "AIS50001.Setup.6.2.ZoneReset" to accept changes.
13. To reset market profiles set to "1" value of Global Variable "AIS50001.Setup.6.1.ProfileReset".
Important
1. Check and change working trading symbol by one of following ways:
1.1. change line 106 of "AIS5TM.MQ4": "extern string aes.Symbol = "EURUSD";" and recompile "AIS5TM.MQ4";
1.2. change value of external variable "aes.Symbol" at the start of AIS5TM.
2. About working size of history
2.1. Working size of history for AIS5TM depends on value of variable "aci.DateEnd" in line 37 of "AT5.MQ4":
"
...
#define aci.DateEnd D'2009.03.01 00:00' //< 37>
...
"
2.2. Auxiliary script AT5 "compresses" M1 history from Date Of Begin to "aci.DateEnd" and writes it in "*.CSV" file.
2.3. "Date Of Begin" is date of oldes M1 bar of history.
2.4. Set maximal depth/size of history before AT5 run.
2.5. Running script AT5 will output control messages in "Alert" window.
2.6. Set reduced depth/size of history after AT5 finish.
2.7. Reduced depth/size of history must be greater than number of M1 bars between current date and "aci.DateEnd".
2.8. For example, today for "aci.DateEnd == D'2009.03.01 00:00'" more then 260000 M1 bars in history is required.