Hi aryma, I think "uninit reason 0" simply means the script was removed from the chart. So I think it ran as expected as it couldn't find any history files. I presume you are using the charts that are generated in real time from mt4 itself. If so then you don't need the dll to scan the charts. I have attached a simple mt4 script that scans common forex charts (4 hours). For example the code "ScanSymbol("USDCHF",PERIOD_H4);" scans the USDCHF 4hr chart. Note: The symbol must match (case sensitive I think) what MT4 calls it. Some MT4 brokers might call it something like USDCHFFX.