Problem with File functions - page 2

 
onewithzachy:

You're welcome :)

No. Open[1] will never change its value when there's a new tick, and also Close [1], High [1], Low [1], Time [1], Volume [1].

The only thing that change it's value when there's a new tick is, Close [0], Open [0], High [0], Low [0], Time [0], Volume [0].

Open[1] does change when the new tick brings a new bar . . . when a new tick does not bring a new bar the values of Open [0] and Time [0] do not change.
 
if(comment == "DEPASSEMENT_UPPER" || c...
Using the comment is Not a good idea, brokers can change comments, including complete replacement.
 
WHRoeder:
Using the comment is Not a good idea, brokers can change comments, including complete replacement.

Good idea, try this :

        string comment = OrderComment();
        Print("Order comment is " + OrderComment() + " " + depassement + " " + reverse + " " + touched);

Run your codes on Vista : no problem.

Also search at : \users\_your_name_\AppData\Local\VirtualStore\_your_metatrader_\ ... . AppData is hidden directory.

 

Well I didn't know that they could change comment, I will use magic number in this case, but here comment aren't modified, I've already checked it

I tried to modify permissions on MT4 folders, but it doesn't fix the problem, probably because Program Files folder is still locked and I can't change it, even as administrator (I'm actually running on Windows 7 with MT4).

So I reinstalled MT4 in another folder, C:\, and now it works well ! :)

Thanks !

 
Arkenis:

So I reinstalled MT4 in another folder, C:\, and now it works well ! :)

 
dabbler:

dabbler inside !
Reason: