Errors, bugs, questions - page 2331

 
pavlick_:

Well, I don't know, are you sure you understood me? Just in case, listing qq.mqh and ee.mqh (one entity, changing one changes the other)

All as ordered, class not inmacros, almost the same except _M.

I've got into your method. It is already on the operating system level that the same file has two names. It is supposed to be easy to transfer the code to any machine, though. Doing mklink every time because of this is a crutch.

 
pavlick_:

I throw it on EURUSD, terminal crashes after 4 seconds.

May be important: x64, Wine

Thanks for the provided EX5.

Very suspicious error.

Please provide the source code for examination (via private message).

After review, your code will be removed.

 
pavlick_:
Yeah, something like that.
 
The "send a message" button is inactive, do I need to be added as a friend first?
 
pavlick_:
The "write me a PM" button is inactive, should I add you as a friend first?

Allowed me to PM everyone and added you as a friend

 
How do I add XAUUSD or e.g. AMAZON to my demo account? I can add a chart but it does not allow me to trade. Button is inactive.
 
For a beginner, analysing the fluctuations of the euro-dollar pair is too complicated. But it would be nice to train in the demo on metals and equities. Is there such an opportunity?
 
Bukmop2018:
For a beginner, the analysis of euro-dollar fluctuations is too complicated. But it would be nice to train in the demo on metals, stocks. Is there such a possibility?

You need to connect to a demo server where these symbols are active.

 

bool file_exists=(bool)FileGetInteger(FileName,FILE_EXISTS);

In any case it returns true if there is file or not, and error 5019 if there is no file. According to help, it should return false if there is no file.

bool file_exists=FileIsExist(FileName); Works correctly
 

Got it in mt 5

2018.11.27 18:07:07.512 VR Watch list and linker (EURUSD,H1)    Access violation at 0x00007FF7EBB4D5E2 read to 0xFFFFFFFFFFFFFFFF
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D580 4053              push       rbx
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D582 56                push       rsi
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D583 57                push       rdi
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D584 4883 EC20          sub        rsp, 0x20
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D588 418 BF0            mov        esi, r8d
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D58B 4 C8BDA            mov        r11, rdx
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D58E 488 BF9            mov        rdi, rcx
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D591 4885 D2            test       rdx, rdx
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D594 7406              jz         0x7ff7ebb4d59c
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D596 66833 A00          cmp        word [rdx], 0x0
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D59A 7507              jnz        0x7ff7ebb4d5a3
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D59C 4 C8D9950340000    lea        r11, [rcx+0x3450]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5A3 8 B9980E30000      mov        ebx, [rcx+0xe380]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5A9 4533 C9            xor        r9d, r9d
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5AC 48896 C2448        mov        [rsp+0x48], rbp
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5B1 4 C89742450        mov        [rsp+0x50], r14
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5B6 85 DB              test       ebx, ebx
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5B8 7466              jz         0x7ff7ebb4d620
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5BA 8 BA988E30000      mov        ebp, [rcx+0xe388]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5C0 4 C8BB178E30000    mov        r14, [rcx+0xe378]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5C7 660 F1F8400000000  o16 nop        [rax+rax+0x0]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                                   00
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5D0 8 BC5              mov        eax, ebp
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5D2 410 FAFC1          imul       eax, r9d
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5D6 4 E8B1430          mov        r10, [rax+r14]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5DA 4 D85D2            test       r10, r10
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5DD 7439              jz         0x7ff7ebb4d618
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5DF 4 D8B02            mov        r8, [r10]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)       crash -->  00007 FF7EBB4D5E2 413 BB098020000    cmp        esi, [r8+0x298]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5E9 752 D              jnz        0x7ff7ebb4d618
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5EB 4981 C0B0020000    add        r8, 0x2b0
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5F2 498 BC3            mov        rax, r11
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5F5 4 D2BC3            sub        r8, r11
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D5F8 0 F1F840000000000  nop        [rax+rax+0x0]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)                  00007 FF7EBB4D600 0 FB710            movzx      edx, word [rax]
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    00: 0x00007FF7EBB4D5E2
2018.11.27 18:07:07.592 VR Watch list and linker (EURUSD,H1)    
Reason: