錯誤 3

0
(0)
姓名:
錯誤 3
作者: 托尼 (2010.07.09 09:31)
已下載: 5182
下載:
psar bug 3 1
pSAR bug 3.mq4 (5.7 KB) 看法
An expert advisor designed to open and close respective orders at the first parabolic SAR signal. 其性能取決於自定義的止損參數, 得到好處, 追踪止損, 開倉交易的手數等等. 筆記: You need to change the SAR indicator "步" 和 "最大限度" value/s to that of the EA in order to match the EA operation with that of the SAR indicator. But this is just for visual purposes as the EA does'nt need the indicator in order to work. 例如. if you are using the default step setting for the EA (0.001) you might get a false impression that the EA didnt open an order when the SAR indicator with its default step setting (0.02) showed a signal but in reality the virtual SAR with a step setting of 0.001 had'nt yet shown a signal. If no order was opened and the journal displayed an error as to why, thats when action needs to be taken. Always check this page for updates thank you !!!. This version: contains an extra parameter called StopMult that can either be set to 10 或者 1. Set the value to 10 if in your strategy tester no trades are opened within a month. This solves incompatibility with some brokers e.g. for forex.com set it to 1 while for alpari andStrategy Tester Report
Finexo-Real (建造 226)


象徵 歐日 (Euro vs Japanese Yen)
時期 30 分鐘 (M30) 2010.01.04 02:30 - 2010.06.20 23:30 (2010.01.01 - 2010.06.21)
模型 每一個刻度 (基於所有可用的最短時間範圍的最精確方法)
參數 ToDonateContact="[email protected]"; StopLoss=90; TakeProfit=20; Lots=10; Slippage=5; Caution="Advanced settings follow. Dont change if you dont know what you are doing."; Step=0.001; Maximum=0.2; StopMultExplained="Improves broker compatibility"; StopMultCaution="10 和 1 are the only known values for StopMult"; StopMult=10; ContactMe="[email protected]";
Bars in test 5906 Ticks modelled 13972529 Modelling quality n/a
圖表錯誤不匹配 7997
初始保證金 10000.00
Total net profit 106621.64 毛利 147443.80 Gross loss -40822.15
利潤係數 3.61 Expected payoff 1545.24
Absolute drawdown 1316.32 Maximal drawdown 18684.41 (32.35%) Relative drawdown 48.61% (11109.22)
總交易 69 Short positions (韓元 %) 35 (100.00%) Long positions (韓元 %) 34 (88.24%)
利潤交易 (% 總計) 65 (94.20%) 虧損交易 (% 總計) 4 (5.80%)
最大 profit trade 2343.41 loss trade -10212.07
平均的 profit trade 2268.37 loss trade -10205.54
最大限度 連續獲勝 (profit in money) 24 (54387.37) consecutive losses (loss in money) 1 (-10212.07)
Maximal consecutive profit (count of wins) 54387.37 (24) consecutive loss (count of losses) -10212.07 (1)
平均的 連續獲勝 13 consecutive losses 1

psar bug 3 2

# 時間 類型 命令 尺寸 價格 小號 / L 噸 / P 利潤 平衡
1 2010.01.04 10:47 1 10.00 133.549 132.649 133.749
2 2010.01.04 13:17 t/p 1 10.00 133.749 132.649 133.749 2269.50 12269.50
3 2010.01.05 05:37 2 10.00 132.634 133.534 132.434
4 2010.01.05 05:47 t/p 2 10.00 132.434 133.534 132.434 2268.73 14538.23
5 2010.01.05 05:47 3 10.00 132.394 133.294 132.194
6 2010.01.05 06:05 t/p 3 10.00 132.194 133.294 132.194 2268.73 16806.96
7 2010.01.06 16:12 4 10.00 133.103 132.203 133.303
8 2010.01.06 16:47 t/p 4 10.00 133.303 132.203 133.303 2269.51 19076.47
9 2010.01.12 02:17 5 10.00 133.221 134.121 133.021
10 2010.01.12 03:05 t/p 5 10.00 133.021 134.121 133.021 2268.73 21345.20
11 2010.01.13 14:00 6 10.00 133.069 132.169 133.269
12 2010.01.14 03:47 t/p 6 10.00 133.269 132.169 133.269 2343.41 23688.61
13 2010.01.14 16:36 7 10.00 131.956 132.856 131.756
14 2010.01.14 17:17 t/p 7 10.00 131.756 132.856 131.756 2268.73 25957.34
15 2010.01.21 02:18 8 10.00 129.084 128.184 129.284
16 2010.01.21 08:05 t/p 8 10.00 129.284 128.184 129.284 2269.50 28226.84
17 2010.01.21 16:17 9 10.00 128.468 129.368 128.268
18 2010.01.21 16:42 t/p 9 10.00 128.268 129.368 128.268 2268.73 30495.57
19 2010.01.26 01:17 10 10.00 128.114 127.214 128.314
20 2010.01.26 02:17 t/p 10 10.00 128.314 127.214 128.314 2269.50 32765.07
21 2010.01.26 06:07 11 10.00 126.590 127.490 126.390
22 2010.01.26 06:17 t/p 11 10.00 126.390 127.490 126.390 2268.73 35033.80
23 2010.01.26 06:17 12 10.00 126.350 127.250 126.150
24 2010.01.26 07:37 t/p 12 10.00 126.150 127.250 126.150 2268.73 37302.53
25 2010.01.28 08:12 13 10.00 126.687 125.787 126.887
26 2010.01.28 08:42 t/p 13 10.00 126.887 125.787 126.887 2269.50 39572.03
27 2010.01.28 17:17 14 10.00 125.310 126.210 125.110
28 2010.01.29 01:17 t/p 14 10.00 125.110 126.210 125.110 2230.02 41802.04
29 2010.02.01 16:12 15 10.00 126.253 125.353 126.453
30 2010.02.01 16:17 t/p 15 10.00 126.453 125.353 126.453 2269.50 44071.54
31 2010.02.01 16:17 16 10.00 126.493 125.593 126.693
32 2010.02.03 11:17 t/p 16 10.00 126.693 125.593 126.693 2318.80 46390.34
33 2010.02.04 09:42 17 10.00 125.792 126.692 125.592
34 2010.02.04 10:23 t/p 17 10.00 125.592 126.692 125.592 2268.73 48659.07
35 2010.02.09 03:07 18 10.00 122.227 121.327 122.427
36 2010.02.09 06:07 t/p 18 10.00 122.427 121.327 122.427 2269.50 50928.57
37 2010.02.11 12:12 19 10.00 123.184 124.084 122.984
38 2010.02.11 13:17 t/p 19 10.00 122.984 124.084 122.984 2268.73 53197.30
39 2010.02.15 23:48 20 10.00 122.524 121.624 122.724
40 2010.02.16 05:47 t/p 20 10.00 122.724 121.624 122.724 2294.15 55491.45
41 2010.02.18 01:47 21 10.00 123.627 124.527 123.427
42 2010.02.18 03:00 t/p 21 10.00 123.427 124.527 123.427 2268.71 57760.16
43 2010.02.18 20:47 22 10.00 124.480 123.580 124.680
44 2010.02.19 01:17 s/l 22 10.00 123.580 123.580 124.680 -10188.01 47572.14
45 2010.02.23 03:00 23 10.00 123.819 124.719 123.619
46 2010.02.23 12:17 t/p 23 10.00 123.619 124.719 123.619 2268.73 49840.87
47 2010.02.26 01:02 24 10.00 120.913 120.013 121.113
48 2010.02.26 01:12 t/p 24 10.00 121.113 120.013 121.113 2269.53 52110.40
49 2010.02.26 01:12 25 10.00 121.153 120.253 121.353
50 2010.02.26 03:17 t/p 25 10.00 121.353 120.253 121.353 2269.53 54379.93
51 2010.03.01 14:00 26 10.00 120.485 121.385 120.285
52 2010.03.01 16:17 t/p 26 10.00 120.285 121.385 120.285 2268.75 56648.68
53 2010.03.03 07:05 27 10.00 121.257 120.357 121.457
54 2010.03.03 17:12 t/p 27 10.00 121.457 120.357 121.457 2269.50 58918.18
55 2010.03.09 02:00 28 10.00 122.709 123.609 122.509
56 2010.03.09 03:37 t/p 28 10.00 122.509 123.609 122.509 2268.62 61186.80
57 2010.03.10 10:12 29 10.00 122.672 121.772 122.872
58 2010.03.10 11:47 t/p 29 10.00 122.872 121.772 122.872 2269.34 63456.14
59 2010.03.15 10:17 30 10.00 124.368 125.268 124.168
60 2010.03.15 15:17 t/p 30 10.00 124.168 125.268 124.168 2268.60 65724.74
61 2010.03.16 15:47 31 10.00 124.528 123.628 124.728
62 2010.03.17 06:07 t/p 31 10.00 124.728 123.628 124.728 2294.01 68018.75
63 2010.03.18 02:17 32 10.00 123.716 124.616 123.516
64 2010.03.18 06:12 t/p 32 10.00 123.516 124.616 123.516 2268.60 70287.35
65 2010.03.23 00:09 33 10.00 122.336 121.436 122.536
66 2010.03.23 00:47 t/p 33 10.00 122.536 121.436 122.536 2269.37 72556.72
67 2010.03.30 02:11 34 10.00 124.417 125.317 124.217
68 2010.03.30 02:53 t/p 34 10.00 124.217 125.317 124.217 2268.60 74825.32
69 2010.03.30 08:18 35 10.00 125.087 124.187 125.287
70 2010.03.30 08:36 t/p 35 10.00 125.287 124.187 125.287 2269.37 77094.69
71 2010.04.05 07:38 36 10.00 127.324 128.224 127.124
72 2010.04.05 17:06 t/p 36 10.00 127.124 128.224 127.124 2268.58 79363.27
73 2010.04.08 15:36 37 10.00 124.429 123.529 124.629
74 2010.04.08 18:36 t/p 37 10.00 124.629 123.529 124.629 2269.20 81632.47
75 2010.04.13 01:03 38 10.00 126.533 127.433 126.333
76 2010.04.13 01:08 t/p 38 10.00 126.333 127.433 126.333 2268.45 83900.92
77 2010.04.13 01:08 39 10.00 126.293 127.193 126.093
78 2010.04.13 02:06 t/p 39 10.00 126.093 127.193 126.093 2268.44 86169.36
79 2010.04.14 01:38 40 10.00 127.262 126.362 127.462
80 2010.04.14 07:06 t/p 40 10.00 127.462 126.362 127.462 2269.22 88438.58
81 2010.04.15 09:53 41 10.00 126.165 127.065 125.965
82 2010.04.15 10:08 t/p 41 10.00 125.965 127.065 125.965 2268.48 90707.06
83 2010.04.19 22:39 42 10.00 124.836 123.936 125.036
84 2010.04.20 02:06 t/p 42 10.00 125.036 123.936 125.036 2293.84 93000.89
85 2010.04.21 12:36 43 10.00 124.411 125.311 124.211
86 2010.04.22 02:21 t/p 43 10.00 124.211 125.311 124.211 2152.38 95153.27
87 2010.04.23 12:36 44 10.00 124.753 123.853 124.953
88 2010.04.23 13:03 t/p 44 10.00 124.953 123.853 124.953 2269.30 97422.57
89 2010.04.27 10:36 45 10.00 124.973 125.873 124.773
90 2010.04.27 10:53 t/p 45 10.00 124.773 125.873 124.773 2268.47 99691.04
91 2010.04.27 10:53 46 10.00 124.733 125.633 124.533
92 2010.04.27 13:38 t/p 46 10.00 124.533 125.633 124.533 2268.47 101959.51
93 2010.04.28 13:53 47 10.00 124.905 124.005 125.105
94 2010.04.28 14:51 s/l 47 10.00 124.005 124.005 125.105 -10211.73 91747.78
95 2010.05.04 09:23 48 10.00 124.559 125.459 124.359
96 2010.05.04 09:42 t/p 48 10.00 124.359 125.459 124.359 2268.50 94016.28
97 2010.05.07 02:32 49 10.00 116.309 115.409 116.509
98 2010.05.07 03:17 t/p 49 10.00 116.509 115.409 116.509 2269.28 96285.56
99 2010.05.11 01:10 50 10.00 118.292 119.192 118.092
100 2010.05.11 04:07 t/p 50 10.00 118.092 119.192 118.092 2268.50 98554.06
101 2010.05.17 11:27 51 10.00 114.224 113.324 114.424
102 2010.05.17 11:47 t/p 51 10.00 114.424 113.324 114.424 2269.35 100823.41
103 2010.05.18 17:42 52 10.00 113.228 114.128 113.028
104 2010.05.18 18:00 t/p 52 10.00 113.028 114.128 113.028 2268.57 103091.98
105 2010.05.19 20:40 53 10.00 113.810 112.910 114.010
106 2010.05.19 21:36 t/p 53 10.00 114.010 112.910 114.010 2269.35 105361.33
107 2010.05.20 13:42 54 10.00 111.153 112.053 110.953
108 2010.05.20 14:10 t/p 54 10.00 110.953 112.053 110.953 2268.58 107629.91
109 2010.05.21 04:07 55 10.00 113.896 112.996 114.096
110 2010.05.21 04:17 t/p 55 10.00 114.096 112.996 114.096 2269.35 109899.26
111 2010.05.21 04:17 56 10.00 114.136 113.236 114.336
112 2010.05.21 04:22 t/p 56 10.00 114.336 113.236 114.336 2269.35 112168.61
113 2010.05.21 04:22 57 10.00 114.376 113.476 114.576
114 2010.05.21 05:03 s/l 57 10.00 113.476 113.476 114.576 -10212.07 101956.54
115 2010.05.25 06:15 58 10.00 109.981 110.881 109.781
116 2010.05.25 07:37 t/p 58 10.00 109.781 110.881 109.781 2268.50 104225.04
117 2010.05.27 14:32 59 10.00 111.484 110.584 111.684
118 2010.05.27 15:02 t/p 59 10.00 111.684 110.584 111.684 2269.25 106494.29
119 2010.05.31 14:57 60 10.00 111.643 112.543 111.443
120 2010.06.01 00:52 t/p 60 10.00 111.443 112.543 111.443 2229.66 108723.95
121 2010.06.02 09:40 61 10.00 112.424 111.524 112.624
122 2010.06.02 09:47 t/p 61 10.00 112.624 111.524 112.624 2268.96 110992.91
123 2010.06.02 09:47 62 10.00 112.664 111.764 112.864
124 2010.06.02 12:42 s/l 62 10.00 111.764 111.764 112.864 -10210.34 100782.57
125 2010.06.04 11:02 63 10.00 112.453 113.353 112.253
126 2010.06.04 11:02 t/p 63 10.00 112.253 113.353 112.253 2268.04 103050.61
127 2010.06.04 11:02 64 10.00 112.212 113.112 112.012
128 2010.06.04 11:07 t/p 64 10.00 112.012 113.112 112.012 2268.03 105318.64
129 2010.06.04 11:07 65 10.00 111.972 112.872 111.772
130 2010.06.04 11:12 t/p 65 10.00 111.772 112.872 111.772 2268.04 107586.68
131 2010.06.04 11:12 66 10.00 111.731 112.631 111.531
132 2010.06.04 11:42 t/p 66 10.00 111.531 112.631 111.531 2268.03 109854.71
133 2010.06.09 06:32 67 10.00 109.465 108.565 109.665
134 2010.06.09 11:40 t/p 67 10.00 109.665 108.565 109.665 2268.81 112123.52
135 2010.06.14 19:43 68 10.00 111.781 112.681 111.581
136 2010.06.15 06:04 t/p 68 10.00 111.581 112.681 111.581 2229.32 114352.83
137 2010.06.15 16:02 69 10.00 112.615 111.715 112.815
138 2010.06.15 17:15 t/p 69 10.00 112.815 111.715 112.815 2268.81 116621.64

 

 

6 評論 發表新評論, 請 登錄 或者 登記

Hello to Author

May you change PSar to MTF selection, becose I trade at M5 chart but using M30 PSar as a Entry and H1 PSar as a Trend.

I relly appreciated that ypur work. Thank You

01.09.2010 20:31 bearNbull

zalinarashid:
I am using Fxopen . This error came out

Error when order select 130

2010.07.16 19:13:51 pSAR錯誤 3 美元日元,M1: Error when order select 130

 

Please help

錯誤 130 means invalid stops. First change StopMult to 1 if it doesnt work return it to 10 and check what your brokers minimum stops are.

23.07.2010 13:07 托尼

Thanks for sharing, good stuff!

Best Performing Expert Advisors

16.07.2010 22:25 Bestrobot

I am using Fxopen . This error came out

Error when order select 130

2010.07.16 19:13:51 pSAR錯誤 3 美元日元,M1: Error when order select 130

 

Please help

16.07.2010 15:16 zalinarashid

Both the three brokers tested are 5 數字 but psar bug2 would work on forex .com but couldnt open orders on alpari and finexo unless you multiply stops by 10. Thats why in psar bug 3 i introduced this feature.
09.07.2010 22:21 托尼

  1. This solves incompatibility with some brokers e.g. for forex.com set it to 1 while for alpari and finexo leave it at 10.

    EA's should automatically adjust for 5 digit brokers not require manual changes. You don't adjust slippage.

    //++++ These are adjusted for 5 數字經紀人.
    double  pips2points,    // 滑移  3 pips    3=points    30=points
            pips2dbl;       // 止損 15 點數    0.0015      0.00150
    int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
    int init(){
        如果 (Digits == 5 || Digits == 3){    // Adjust for five (5) 數字經紀人.
                    pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
        } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }
        // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl

  2. You also assume there are no other EA's running (on other pairs, or other time frames.)
        為了(int pos = OrdersTotal() - 1; pos >= 0; pos--) 如果 (
            OrderSelect(pos, SELECT_BY_POS)                 // Only my orders w/
        &&  OrderMagicNumber()  == Magic.Number             // my magic number
        &&  OrderSymbol()       == Symbol() ){              // and period and symbol

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.