Hi,
I created a system for the EURJPY which had lots of conditions but somehow it just didn’t get any result. So I reduced and reduced the conditions until only one simple condition was left (a moving average crossover). But it still doesn’t produce any result on the EURJPY. I can’t see where the issue is so my conclusion is that ProOrder has a problem.
The same rules applied to for example GBPUSD creates lots of trades.
Anyone any idea what the issue is with ProOrder?
I attached the shortest version of my code, which is not a system anymore. But simply wanted to see if ProOrder is able to work with just one condition in EURJPY (which it doesn’t).
Thanks for any help.
Sascha
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
// Prevents the system from placing new orders on specified days of the week
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
SMA50 = Average[50](close)
//------------------------------------------------------------------------------
// CONDITIONS TO ENTER LONG POSITIONS
IF ( ExponentialAverage[8] crosses over ExponentialAverage[21] ) AND not daysForbiddenEntry THEN
BUY 1 SHARES AT MARKET
barorder=barindex
ATR = Averagetruerange[14]
// Stops and targets
SET STOP LOSS 1*atr + 1*pointsize
SET TARGET PROFIT 1*atr + 1*pointsize
ENDIF
// Conditions to exit long positions
e1 = (close < SMA50)
IF e1 and (barindex-barorder>=1 ) THEN //and barorder>0
SELL AT MARKET
barorder=0
ENDIF
It works for me. Do you have the same problem with other forex pairs with JPY? If yes, you should try to expand the initial balance in the backtest window, it is in Yen so it could be not enough to open 1 position.
Hi Nicolas,
That was indeed the issue. Thanks so much!!
Sascha