There is an interesting trading idea. Help me find errors in the code (mql4).

 
Try a test run.
Files:
exp_2.mq4  7 kb
 
What are the mistakes ?
 

I can't test the robot in my terminal. I thought there was a mistake in the code - I learned the language myself and from old video tutorials.

Does it work for you? What are the results?

 
Yaroslav Gladkov:

I can't test the robot in my terminal. I thought there was a mistake in the code - I learned the language myself and from old video tutorials.

Does it work for you? What are the results?

What do you mean, I cannot test it? It does not give out errors, but it does not open deals.
 

Same situation - no errors and no transactions. And I don't know how to see what the problem is - I'm a copyist.

 
Alexey Volchanskiy:
Can you be clearer, what do you mean I can't test it? No errors, but no trades open either

By the way, I advise you to put in the first line

#property strict

input double StopLoss=100;

// и все Point заменить на _Point
 
Yaroslav Gladkov:

Same situation - no errors and no transactions. And I don't know how to see what the problem is - I'm a copyist.

Do as I wrote above - you have a bunch of warnings there, you need to remove them, then you can sort it out. The condition to open an order is not met.
 
Alexey Volchanskiy:

By the way, I advise you to insert the first line

And how are the points fundamentally different and what can it affect?, I ask for myself, as I have not found answers to this question, and the options for points already 3 or 4.

 
Alexey Volchanskiy:

By the way, I suggest you put the first line

I'll give it a try.

Take a look at the log, see if it tells you anything

Files:
20160213.log  1 kb
 
Yaroslav Gladkov:

I'll give it a try.

Take a look at the log, see if it tells you anything.

Something seems to be wrong with the history, I have no such errors

0 17:04:35.266 Expert Tests\exp_2 EURUSD.e,M1: loaded successfully

0 17:04:41.178 TestGenerator: spread set to 12

2 17:04:41 2016.02.04 00:00 exp_2 inputs: StopLoss=100; TakeProfit=100; period_CCI_S=100; period_CCI_F=13; Lots=0.1; Prots=0.02;

0 17:04:41.870 EURUSD.e,M1: 352982 tick events (3875 bars, 354029 bar states) processed in 0:00:00.390 (total time 0:00:06.381)

0 17:12:23.065 Expert exp_2 EURUSD.e,M1: removed

0 17:12:23.073 Expert Tests\exp_2 EURUSD.e,M1: loaded successfully

0 17:12:23.078 TestGenerator: spread set to 12

2 17:12:23 2016.02.04 00:00 exp_2 inputs: StopLoss=100; TakeProfit=100; period_CCI_S=100; period_CCI_F=13; Lots=0.1; Prots=0.02;

0 17:12:23.243 EURUSD.e,M1: 352982 tick events (3875 bars, 354029 bar states) processed in 0:00:00.094 (total time 0:00:00.172)

0 17:12:25.994 TestGenerator: spread set to 12

2 17:12:26 2016.02.04 00:00 exp_2 inputs: StopLoss=100; TakeProfit=100; period_CCI_S=100; period_CCI_F=13; Lots=0.1; Prots=0.02;

0 17:12:26.179 EURUSD.e,M1: 352982 tick events (3875 bars, 354029 bar states) processed in 0:00:00.094 (total time 0:00:00.188)

0 17:12:52.092 TestGenerator: spread set to 12

2 17:12:52 2016.02.01 00:00 exp_2 inputs: StopLoss=100; TakeProfit=100; period_CCI_S=100; period_CCI_F=13; Lots=0.1; Prots=0.02;

0 17:12:52.452 EURUSD.e,M1: 760476 tick events (8183 bars, 761523 bar states) processed in 0:00:00.218 (total time 0:00:00.359)

 
Alexey Volchanskiy:


Here's the tweaked version
Files:
exp_2.mq4  7 kb
Reason: