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

 
Sergey Gritsay:
I don't quite understand, can you elaborate?

see two arrows but no position - set... SL and TP set, going normal, almost 1000 pips already... gbpcad

Торговый отчет
Имя:    Серега
Торговый счет:  3128338 (USD, 1:100, MetaQuotes-Demo, demo)
Брокер:         MetaQuotes Software Corp.
Дата:   2016.03.08 19:08
Торговые позиции
Символ  Время   Тип     Объем   Цена    S / L   T / P   Рыночная цена   Своп    Прибыль         Комментарий
AUDCAD  2016.03.08 15:00:08     buy     0.01    0.99393 0.99369 1.00053 0.99678 0.00    2.13    exp_cci
CHFJPY  2016.03.08 18:02:26     sell    0.01    113.413 113.894 112.459 113.415 0.00    -0.02   exp_cci
EURGBP  2016.03.08 15:00:10     buy     0.02    0.77546 0.77515 0.78002 0.77690 0.00    4.09    exp_cci
EURJPY  2016.03.08 18:02:26     buy     0.01    124.341 123.868 125.293 124.300 0.00    -0.36   exp_cci
GBPCAD  2016.03.08 15:00:15     buy     0.51    1.89467 1.89768 1.90642 1.90373 0.00    344.82  
GBPJPY  2016.03.08 18:02:27     sell    0.01    159.891 160.711 158.287 160.019 0.00    -1.14   exp_cci
GBPUSD  2016.03.08 18:01:04     buy     0.01    1.42073 1.41754 1.42853 1.42130 0.00    0.57    exp_cci
NZDUSD  2016.03.08 12:43:03     buy     0.01    0.67542 0.67377 0.67809 0.67577 0.00    0.35    exp_cci
USDJPY  2016.03.08 18:01:05     sell    0.01    112.460 112.932 111.545 112.570 0.00    -0.98   exp_cci
USDMXN  2016.03.08 18:02:22     sell    0.01    17.91044        17.98159        17.76642        17.92463        0.00    -0.79   exp_cci
        0.00    348.67  

 
Сергей Криушин:

see two arrows but no position - set... SL and TP were set, it is going good, almost 1000 pips already... gbpcad

I have added a new position mode to it, it opens only on a new bar.

 
Sergey Gritsay:

I've put in a bar mode, opening a position only on a new bar. I'll add a button for manual entry

As for me these days so already normal - very well behaved, as if not to spoil - I added buttons in parallel, trade in one click also picks up so that buttons only on closing for convenience, in the base there is such owlshttps://www.mql5.com/ru/code/14869
1 Click To Close All Open Positions at Current Attached Chart
1 Click To Close All Open Positions at Current Attached Chart
  • votes: 15
  • 2016.03.04
  • grandaevus
  • www.mql5.com
Кнопка, в один клик закрывающая все открытые позиции по текущему графику
 
Сергей Криушин:
As for me for these days so already normal - very well behaved, as if not to spoil - I added buttons in parallel, trade in one click also picks up so that buttons only to close for convenience, in the base there is such совhttps://www.mql5.com/ru/code/14869
I've added buttons in parallel and it picks up one click too, so the buttons are convenient for closing only.
 

On the demo the metokwot is very good so far... history today... good, good on the mt5 too...


101802814       2016.03.09 12:45:02     buy     0.23    usdchf  1.00036 1.00118 1.00332 2016.03.09 12:47:26     1.00332 0.00    0.00    0.00    67.85
101798673       2016.03.09 12:24:55     sell    0.18    chfjpy  112.439 112.421 112.034 2016.03.09 12:47:25     112.034 0.00    0.00    0.00    64.89
101799800       2016.03.09 12:30:03     buy     0.33    eurchf  1.09633 1.09634 1.09822 2016.03.09 12:47:16     1.09822 0.00    0.00    0.00    62.24
101792041       2016.03.09 11:54:57     buy     0.19    audchf  0.74675 0.74729 0.75004 2016.03.09 12:47:16     0.75004 0.00    0.00    0.00    62.39
101792051       2016.03.09 11:55:00     buy     0.24    cadchf  0.74552 0.74619 0.74808 2016.03.09 12:47:13     0.74808 0.00    0.00    0.00    61.34
101792030       2016.03.09 11:54:54     buy     0.16    gbpchf  1.42052 1.42173 1.42445 2016.03.09 12:47:06     1.42445 0.00    0.00    0.00    62.82
101762352       2016.03.09 09:39:57     sell    0.17    xauusd  1257.53 1259.72 1253.59 2016.03.09 12:16:07     1259.72 0.00    0.00    0.00    -37.23
101679322       2016.03.08 23:09:53     sell    0.37    xagusd  15.34   15.41   15.20   2016.03.09 12:16:00     15.41   0.00    0.00    0.01    -25.90
101792044       2016.03.09 11:54:58     buy     0.17    audjpy  84.131  83.865  84.588  2016.03.09 12:08:46     83.865  0.00    0.00    0.00    -40.27
101762312       2016.03.09 09:39:39     sell    0.35    eurusd  1.09816 1.09763 1.09622 2016.03.09 12:07:22     1.09622 0.00    0.00    0.00    67.90
101779509       2016.03.09 11:07:52     buy     0.07    audusd  0.74628 0.74794 0.00000 2016.03.09 11:44:15     0.74794 0.00    0.00    0.00    11.62
101685293       2016.03.09 00:24:58     buy     0.15    gbpchf  1.41609 1.41464 1.41957 2016.03.09 11:14:34     1.41957 0.00    0.00    0.00    52.32
101393156       2016.03.08 13:27:44     buy     0.05    audusd  0.74392 0.74538 0.00000 2016.03.09 10:56:10     0.74538 0.00    0.00    0.06    7.30
101393155       2016.03.09 01:59:53     buy     0.07    audusd  0.74348 0.74538 0.00000 2016.03.09 10:56:10     0.74538 0.00    0.00    0.00    13.30
101766279       2016.03.09 10:00:21     sell    0.28    nzdusd  0.67374 0.67511 0.67154 2016.03.09 10:48:39     0.67511 0.00    0.00    0.00    -38.36
101766267       2016.03.09 10:00:17     buy     0.32    audusd  0.74377 0.74288 0.74589 2016.03.09 10:46:24     0.74589 0.00    0.00    0.00    67.84
101766264       2016.03.09 10:00:17     sell    0.24    gbpusd  1.41971 1.42045 1.41690 2016.03.09 10:45:53     1.42045 0.00    0.00    0.00    -17.76
101685294       2016.03.09 00:24:59     buy     0.27    audcad  0.99762 0.99687 1.00058 2016.03.09 10:44:48     1.00058 0.00    0.00    0.00    59.56
101679710       2016.03.08 23:15:03     sell    0.11    gbpjpy  160.112 159.880 159.412 2016.03.09 10:32:43     159.880 0.00    0.00    -0.30   22.66
101762316       2016.03.09 09:39:41     sell    0.26    usdjpy  112.542 112.607 112.243 2016.03.09 10:31:48     112.607 0.00    0.00    0.00    -15.01
101679319       2016.03.08 23:09:52     sell    0.17    nzdjpy  75.895  75.949  75.460  2016.03.09 10:25:51     75.949  0.00    0.00    -0.28   -8.16
101679313       2016.03.08 23:09:49     sell    0.15    cadjpy  83.952  83.945  83.432  2016.03.09 10:17:27     83.945  0.00    0.00    -0.13   0.93
101685686       2016.03.09 00:30:03     buy     0.19    audchf  0.74020 0.74088 0.74313 2016.03.09 10:14:09     0.74313 0.00    0.00    0.00    55.78
 

Where else is better - you can mess up... silver and gold dumped on SL and opened again in the same direction...

Торговый счет:  50005630 (USD, 1:500, Alpari-Ltd-MT5, demo)
Брокер:         Alpari Limited
Дата:   2016.03.09 14:30
Торговые позиции
Символ  Время   Тип     Объем   Цена    S / L   T / P   Рыночная цена   Своп    Прибыль         Комментарий
AUDJPY  2016.03.09 13:30:01     sell    0.04    84.158  84.493  83.898  84.156  0.00    0.07    exp_cci
AUDUSD  2016.03.09 11:30:00     buy     0.15    0.74301 0.74735 0.75100 0.74847 0.00    81.90   exp_cci
CHFJPY  2016.03.09 13:00:03     sell    0.10    112.103 112.365 111.458 112.090 0.00    1.16    exp_cci
 напрEURAUD  2016.03.09 12:30:07     sell    0.06    1.46491 1.46740 1.45549 1.46492 0.00    -0.04   exp_cci
EURCAD  2016.03.09 13:00:04     buy     0.12    1.46778 1.46616 1.47359 1.46875 0.00    8.70    exp_cci
EURCHF  2016.03.09 13:00:04     buy     0.06    1.09861 1.09839 1.10168 1.09967 0.00    6.34    exp_cci
EURGBP  2016.03.09 11:00:01     sell    0.07    0.77201 0.77161 0.76981 0.77089 0.00    11.15   exp_cci
EURJPY  2016.03.09 10:30:04     sell    0.12    123.404 123.383 122.893 123.272 0.00    14.09   exp_cci
EURUSD  2016.03.09 13:00:05     sell    0.10    1.09627 1.09804 1.09232 1.09651 0.00    -2.40   exp_cci
GBPAUD  2016.03.09 12:30:01     sell    0.05    1.89972 1.90389 1.88860 1.90053 0.00    -3.01   exp_cci
GBPJPY  2016.03.09 11:00:02     sell    0.07    159.924 160.150 159.112 159.930 0.00    -0.37   exp_cci
GBPUSD  2016.03.09 11:00:02     buy     0.04    1.42171 1.42147 1.42541 1.42246 0.00    3.00    exp_cci
NZDJPY  2016.03.09 13:30:02     sell    0.04    76.237  76.567  75.906  76.261  0.00    -0.85   exp_cci
NZDUSD  2016.03.09 13:00:01     sell    0.09    0.67838 0.68017 0.67542 0.67834 0.00    0.36    exp_cci
USDCAD  2016.03.09 13:00:00     buy     0.18    1.33866 1.33743 1.34274 1.33960 0.00    12.60   exp_cci
USDCHF  2016.03.09 13:00:00     buy     0.19    1.00207 1.00124 1.00612 1.00297 0.00    17.05   exp_cci
USDJPY  2016.03.09 12:00:01     sell    0.04    112.436 112.488 112.097 112.423 0.00    0.46    exp_cci
XAGUSD  2016.03.09 12:30:07     sell    0.37    15.353  15.396  15.227  15.322  0.00    57.35   exp_cci
XAUUSD  2016.03.09 12:30:06     sell    0.01    1258.540        1258.132        1249.901        1253.770        0.00    4.77    exp_cci
        0.00    212.33  
Торговый счет: 3128338 (USD, 1:100, MetaQuotes-Demo, demo)
Брокер: MetaQuotes Software Corp.
Дата: 2016.03.09 14:46
Торговые позиции
Символ Время Тип Объем Цена S / L T / P Рыночная цена Своп Прибыль Комментарий
AUDCAD2016.03.09 11:36:18buy0.041.002490.999661.004671.002100.00-1.16
AUDUSD2016.03.09 13:00:03buy0.110.749260.746100.751750.748060.00-13.20exp_cci
CHFJPY2016.03.09 13:00:01sell0.08112.097112.497111.754112.2340.00-9.75exp_cci
EURGBP2016.03.09 11:00:02sell0.010.772020.772460.769840.771010.001.44exp_cci
EURJPY2016.03.09 13:00:02sell0.09123.147123.546122.843123.2820.00-10.81exp_cci
EURUSD2016.03.08 21:00:00buy0.211.100501.094531.103981.09649-0.15-84.12
GBPCAD2016.03.08 23:00:01buy0.011.906991.900131.914221.90537-0.05-1.21exp_cci
GBPJPY2016.03.08 20:04:09buy0.01160.183159.597160.965159.8860.00-2.64
GBPUSD2016.03.09 11:00:02buy0.011.421751.420171.425421.422240.000.49exp_cci
NZDUSD2016.03.09 12:00:04buy0.120.677290.675590.679470.677190.00-1.20exp_cci
USDCAD2016.03.09 13:00:00buy0.091.338651.335711.341991.339790.007.66exp_cci
USDCHF2016.03.09 13:00:01buy0.101.002100.999771.004821.001730.00-3.69exp_cci
USDHKD2016.03.08 22:01:06sell0.017.764387.767797.761587.76588-0.01-0.19exp_cci
USDJPY2016.03.09 10:00:00sell0.01112.472112.584112.143112.4310.000.36exp_cci
USDMXN2016.03.08 23:00:00buy0.0117.9441317.8159218.0234517.855970.26-4.94exp_cci
USDSEK2016.03.09 10:00:01sell0.018.480698.499728.452158.480350.000.04exp_cci
USDZAR2016.03.09 10:00:01sell0.0115.4582515.4693815.3765115.394580.004.14exp_cci
0.05 -118.78
 
Сергей Криушин:

On the demo the metokwot is very good so far... history today... good, good on the mt5 too...


you paged me? I'm here. Can't help you.)
 

For mt4 I have made the following Expert Advisor, according to results, so far the leaders are USDJPY and AUDSGD

Files:
InfoProfit.mq4  29 kb
 
khorosh:
You wanted to see me? I'm here. I can't help you.)
Hi! no seems so far, if only testing owls for mt5 on the fund and reporting here
 
khorosh:
You wanted to see me? I'm here. I can't help you.)
Thought and thought, if you can make a table of profit figures sorted in descending order
Reason: