I guess so, my apologies. But isn't it a bit unusual, in this case, as the tenkan-sen and kijun-sen will have different values at every order opened. So surely this would mean that values can't be given. The only property that would be the same for each order opened is the value of tenkan-sen being higher than the value of kijun-sen.
ToBa: I guess so, my apologies. But isn't it a bit unusual, in this case, as the tenkan-sen and kijun-sen will have different values at every order opened.
But you aren't getting the values that change with each new bar . . . you declare the variables and you never set them . . . so they never change, did you expect them to change by magic ?
If you have given tenkan-sen and kijun-sen the right coding to get its value and you put it in this
then you will get every tick tenkan_sen>kijun_sen a new trade
How many trades do you wanna get open ???
The aim is to place a single open order (1.0 lot) as soon as the tenkan-sen is greater than the kijun-sen and hold the position until the tenkan-sen is less than the kijun-sen.
The aim is to place a single open order (1.0 lot) as soon as the tenkan-sen is greater than the kijun-sen and hold the position until the tenkan-sen is less than the kijun-sen.
I'm not exactly sure what you mean. From the MACD example, it looked to be ok to use: if(MacdCurrent<0 && MacdCurrent>SignalCurrent && MacdPrevious<SignalPrevious &&
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious) and no values are given.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I've "simplified" the coding a little and began strategy testing.
The strategy test shows that the modelling quality is 90% and there are no errors in the journal.
The journal says: 2012.01.18 20:29:44 ICHIMOKU_F1 GBPCHF,H1: loaded successfully
2012.01.18 20:29:47 ICHIMOKU_F1 inputs: Lots=1; Tenkan=9; Kijun=26;
However no trades were undertaken and therefore there were no results.
Could there be a problem with the code?
You initialize these variables but don't give them any values . . .
. . . so the test will always be false. This EA will never place an Order.
I guess so, my apologies. But isn't it a bit unusual, in this case, as the tenkan-sen and kijun-sen will have different values at every order opened.
But you aren't getting the values that change with each new bar . . . you declare the variables and you never set them . . . so they never change, did you expect them to change by magic ?
I've "simplified" the coding a little and began strategy testing.
The strategy test shows that the modelling quality is 90% and there are no errors in the journal.
The journal says: 2012.01.18 20:29:44 ICHIMOKU_F1 GBPCHF,H1: loaded successfully
2012.01.18 20:29:47 ICHIMOKU_F1 inputs: Lots=1; Tenkan=9; Kijun=26;
However no trades were undertaken and therefore there were no results.
Could there be a problem with the code?
"simplified" Why this way....
If you have given tenkan-sen and kijun-sen the right coding to get its value and you put it in this
then you will get every tick tenkan_sen>kijun_sen a new trade
How many trades do you wanna get open ???
"simplified" Why this way....
If you have given tenkan-sen and kijun-sen the right coding to get its value and you put it in this
then you will get every tick tenkan_sen>kijun_sen a new trade
How many trades do you wanna get open ???
The aim is to place a single open order (1.0 lot) as soon as the tenkan-sen is greater than the kijun-sen and hold the position until the tenkan-sen is less than the kijun-sen.
The aim is to place a single open order (1.0 lot) as soon as the tenkan-sen is greater than the kijun-sen and hold the position until the tenkan-sen is less than the kijun-sen.
Where do you get these values from ?
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious) and no values are given.
Ok, I finally see what you mean. Although, I don't have a clue how to retrieve the values.