Please use this code to Get chart type: #define VS_BARS 0 #define VS_CANDLES 1 #define VS_LINE 2 #import "ServicesMT4.dll" int ServiceGetViewChart(int hwndChart); //+------------------------------------------------------------------+ //| script ...