[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 539

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am writing an EA based on QQEA indicator. So, the idea for the EA is: when the red line crosses the yellow line upwards, one Buy order should open, and when the red line crosses the yellow line downwards, one Sell order should open. But I am not able to open just one order. The orders are opened as long as the condition is fulfilled. Yes, and only buy orders are opened HAYDNT ?!
EA code
I am writing an EA based on QQEA indicator. So, the idea for the EA is: when the red line crosses the yellow line upwards, one Buy order should open, and when the red line crosses the yellow line downwards, one Sell order should open. But I am not able to open just one order. The orders are opened as long as the condition is fulfilled. Yes, and only buy orders are opened HAYDNT ?!
//
EA code
I am writing an EA based on QQEA indicator. So, the idea for the EA is: when the red line crosses the yellow line upwards, one Buy order should open, and when the red line crosses the yellow line downwards, one Sell order should open. But I am not able to open just one order. The orders are opened as long as the condition is fulfilled. And only buy orders are opened.
//
EA code
Let me ask you a question.
On what basis is the string type used?
guys EA uses two different timeframes (30 and 60), tell me what period to put in the tester, and whether the test period in the EA will not change?
What do these log entries mean:
2012.01.31 14:34:45 Memory handler: cannot allocate 10436536 bytes of memory
2012.01.31 14:34:45:45 HistoryBase: not enough memory 'EURGBP1' [206996 bars]
? Is it possible to fix if there is any problem?
Help with the arrays. It doesn't work the way I want it to.
There is a price array p[]. I need to create a new array, the length of which is one element less, and it is counted as the difference between two adjacent elements from the first array. If the difference is negative, then multiply by -1.
there is p [6]={1, 5, 9, 4, 6, 2, 3}
We should get
p_diff[5] = {-1*(1-5), -1*(5-9), 9-4, -1*(4-6), 6-2, -1*(2-3)} i.e. p_diff[5] = {4, 4, 5, 2, 4, 1}
What do these log entries mean:
2012.01.31 14:34:45 Memory handler: cannot allocate 10436536 bytes of memory
2012.01.31 14:34:45:45 HistoryBase: not enough memory 'EURGBP1' [206996 bars]
? Is it possible to fix if there is any problem?
Help with the arrays. It doesn't work the way I want it to.
There is a price array p[]. I need to create a new array, the length of which is one element less, and it is counted as the difference between two adjacent elements from the first array. If the difference is negative, then multiply by -1.
there is p [6]={1, 5, 9, 4, 6, 2, 3}
We should get
p_diff[5] = {-1*(1-5), -1*(5-9), 9-4, -1*(4-6), 6-2, -1*(2-3)} i.e. p_diff[5] = {4, 4, 5, 2, 4, 1}
The function returns the absolute value (modulo value) of the number passed to it