I can not figure out why it does not work, anybody can help? Pls see the following code:
the magic number is converted successfully. but the type (either 1 or 0) and the target can not be converted, I get zeros, why?
please see the log, arraysize of res is not zero, size is 3, res[0] is ok, but res[1] and res[2] can not be converted
15:32:10 DFLY_M8 GBPUSD,M15: size of result[] is: 5
15:32:10 DFLY_M8 GBPUSD,M15: size of res[] is: 3
15:32:10 DFLY_M8 GBPUSD,M15: res[0]: 1900 -- Sig[0][0] -- 1900.000000
15:32:10 DFLY_M8 GBPUSD,M15: res[1]: 1 -- Sig[0][1] -- 0.000000
15:32:10 DFLY_M8 GBPUSD,M15: res[2]: 1.6585 -- Sig[0][2] -- 0.000000
15:32:10 DFLY_M8 GBPUSD,M15: size of res[] is: 3
15:32:10 DFLY_M8 GBPUSD,M15: res[0]: 1900 -- Sig[4][0] -- 1900.000000
15:32:10 DFLY_M8 GBPUSD,M15: res[1]: 1 -- Sig[4][1] -- 0.000000
15:32:10 DFLY_M8 GBPUSD,M15: res[2]: 1.6585 -- Sig[4][2] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: size of result[] is: 9
15:32:17 DFLY_M8 AUDCAD,M15: size of res[] is: 3
15:32:17 DFLY_M8 AUDCAD,M15: res[0]: 2800 -- Sig[0][0] -- 2800.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[1]: 1 -- Sig[0][1] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[2]: 1.0127 -- Sig[0][2] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: size of res[] is: 3
15:32:17 DFLY_M8 AUDCAD,M15: res[0]: 2800 -- Sig[4][0] -- 2800.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[1]: 1 -- Sig[4][1] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[2]: 1.0127 -- Sig[4][2] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: size of res[] is: 3
15:32:17 DFLY_M8 AUDCAD,M15: res[0]: 2900 -- Sig[8][0] -- 2900.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[1]: 1 -- Sig[8][1] -- 0.000000
15:32:17 DFLY_M8 AUDCAD,M15: res[2]: 1.017 -- Sig[8][2] -- 0.000000
15:32:20 DFLY_M8 USDCHF,M15: size of result[] is: 5
15:32:20 DFLY_M8 USDCHF,M15: size of res[] is: 3
15:32:20 DFLY_M8 USDCHF,M15: res[0]: 1900 -- Sig[0][0] -- 1900.000000
15:32:20 DFLY_M8 USDCHF,M15: res[1]: 0 -- Sig[0][1] -- 0.000000
15:32:20 DFLY_M8 USDCHF,M15: res[2]: 0.89636 -- Sig[0][2] -- 0.000000
15:32:20 DFLY_M8 USDCHF,M15: size of res[] is: 3
15:32:20 DFLY_M8 USDCHF,M15: res[0]: 1900 -- Sig[4][0] -- 1900.000000
15:32:20 DFLY_M8 USDCHF,M15: res[1]: 0 -- Sig[4][1] -- 0.000000
15:32:20 DFLY_M8 USDCHF,M15: res[2]: 0.89636 -- Sig[4][2] -- 0.000000
I can not figure out why it does not work, anybody can help? Pls see the following code:
the magic number is converted successfully. but the type (either 1 or 0) and the target can not be converted, I get zeros, why?
see the log:
14:40:26 DFLY_M8 GBPJPY,M15: res[0]: 1901 -- Sig[12][0] -- 1901.00
14:40:26 DFLY_M8 GBPJPY,M15: res[1]: 1 -- Sig[12][1] -- 0.00
14:40:26 DFLY_M8 GBPJPY,M15: res[2]: 169.9138 -- Sig[12][2] -- 0.00
14:40:32 DFLY_M8 AUDCAD,M15: res[0]: 2800 -- Sig[0][0] -- 2800.0000
14:40:32 DFLY_M8 AUDCAD,M15: res[1]: 1 -- Sig[0][1] -- 0.0000
14:40:32 DFLY_M8 AUDCAD,M15: res[2]: 1.0127 -- Sig[0][2] -- 0.0000
Your Sig array is defined by :
double Sig[1][1];
Then you are using ArrayResize, which can only resize the first dimension. You only have items with index 0, not Sig[x][1] or Sig[x][2]
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I can not figure out why it does not work, anybody can help? Pls see the following code:
the magic number is converted successfully. but the type (either 1 or 0) and the target can not be converted, I get zeros, why?
see the log:
14:40:26 DFLY_M8 GBPJPY,M15: res[0]: 1901 -- Sig[12][0] -- 1901.00
14:40:26 DFLY_M8 GBPJPY,M15: res[1]: 1 -- Sig[12][1] -- 0.00
14:40:26 DFLY_M8 GBPJPY,M15: res[2]: 169.9138 -- Sig[12][2] -- 0.00
14:40:32 DFLY_M8 AUDCAD,M15: res[0]: 2800 -- Sig[0][0] -- 2800.0000
14:40:32 DFLY_M8 AUDCAD,M15: res[1]: 1 -- Sig[0][1] -- 0.0000
14:40:32 DFLY_M8 AUDCAD,M15: res[2]: 1.0127 -- Sig[0][2] -- 0.0000