Description:
In this post, we’ll dive into how to effectively use the LibCustomChart.ex5 library with your Expert Advisor on MetaTrader 5. When you attach your EA to a chart, it checks for the iCustomChart custom chart. If it’s there, the EA taps into the custom chart’s data; if not, it seamlessly uses the standard chart data. This means your Expert Advisor is versatile, working perfectly with both custom and standard charts without any hassle!
Instructions:
- Download the LibCustomChart.ex5 library file and place it in your terminal_data_folder/MQL5/Libraries.
- Grab the library functions description file, LibCustomChart.mqh, and put it in terminal_data_folder/MQL5/Include.
- Download the Example1_LibCustomChart.mq5 Expert Advisor file and move it to terminal_data_folder/MQL5/Experts.
- Open Example1_LibCustomChart.mq5 in MetaEditor and hit F7 to compile.
- Your Example1_LibCustomChart.ex5 EA is ready to go on both standard and custom charts created using iCustomChart.
- To run the Expert Advisor on a custom chart, follow these steps:
- Download either the demo or full version of iCustomChart and attach it to any chart window.
- Next, attach Example1_LibCustomChart to the same chart window. It’ll automatically recognize iCustomChart and pull the necessary data for calculations.
Comments 0