Easy Canvas – library MetaTrader 5

Easy Canvas - library for MetaTrader 5
The library and iCanvas class simplify writing programs using Canvas. Here is an example of a simple indicator using this library. In this example, the indicator body features no function for processing OnChartEvent events. But it may also be present. #property indicator_chart_window #include <CanvasiCanvas.mqh> int OnInit()   {    EventSetMillisecondTimer(33);    ChartSetInteger(0,CHART_SHOW,true);    ChartSetInteger(0,CHART_CROSSHAIR_TOOL,false);  // turn off … Read more

Easy Canvas (iCanvas) – library MetaTrader 4

Test iCanvas
The library and iCanvas class simplify writing programs using Canvas. Here is an example of a simple indicator using this library. In this example, the indicator body features no function for processing OnChartEvent events. But it may also be present. #property indicator_chart_window #property strict #include <CanvasiCanvas.mqh> //+——————————————————————+ int OnInit()   {    EventSetMillisecondTimer(30);    ChartSetInteger(0,CHART_CROSSHAIR_TOOL,false);  // turn … Read more