Unlocking the Power of LibCustomChart with Your Expert Advisor on MetaTrader 5

Mike 2012.04.23 21:20 38 0 0
Attachments

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:

  1. Download the LibCustomChart.ex5 library file and place it in your terminal_data_folder/MQL5/Libraries.
  2. Grab the library functions description file, LibCustomChart.mqh, and put it in terminal_data_folder/MQL5/Include.
  3. Download the Example1_LibCustomChart.mq5 Expert Advisor file and move it to terminal_data_folder/MQL5/Experts.
  4. Open Example1_LibCustomChart.mq5 in MetaEditor and hit F7 to compile.
  5. Your Example1_LibCustomChart.ex5 EA is ready to go on both standard and custom charts created using iCustomChart.
  6. 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.
List
Comments 0