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'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.