Download MetaTrader 5

MT4 deleting custom indicator

To add comments, please log in or register
Forex Trader
114269
Forex Trader  

I have a custom indicator that is being deleted from the indicators folder when MT4 starts up. My OS is Windows 7 (64 bit) with Kaspersky anti-virus. I have installed MT4 on a USB Flash drive and run it from there. I take the flash drive to work and run it from the flash drive at work as well. I suspected Windows 7 or Kaspersky of deleting my file (MagicBars.ex4) but I have also run it under Windows XP and I get the same issue there as well. I ran ProcMon to capture all the system events occurring when MT4 is starting up and here are the events regarding the file in question. Note that the fifth event gets an INVALID PARAMETER error and then immediately after during the sixth event, the file is deleted. Here is an an extract of the XML file containing the relevant events (I have removed all the info on my system as a security precaution). Can anyone suggest a solution to this problem?

<eventlist>
<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.2967276 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>CreateFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail>Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened</Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3050681 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>ReadFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail>Offset: 0, Length: 2,793, Priority: Normal</Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3051008 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>CloseFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail></Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3058630 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>CreateFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail>Desired Access: Read Attributes, Delete, Disposition: Open, Options: Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened</Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3062341 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>QueryAttributeTagFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>INVALID PARAMETER</Result>
<Detail></Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3062537 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>SetDispositionInformationFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail>Delete: True</Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:20.3074937 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>CloseFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>SUCCESS</Result>
<Detail></Detail>
</event>

<event>
<ProcessIndex>186</ProcessIndex>
<Time_of_Day>1:03:23.9753128 PM</Time_of_Day>
<Process_Name>terminal.exe</Process_Name>
<PID>1452</PID>
<Operation>CreateFile</Operation>
<Path>L:\Program Files (x86)\MetaTrader 4 at FOREX.com\experts\indicators\MagicBars.ex4</Path>
<Result>NAME NOT FOUND</Result>
<Detail>Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a</Detail>
</event>
</eventlist>

Forex Trader
114269
Forex Trader  

It's possible that your flash disk's file system was just corrupted.

To add comments, please log in or register