Following Patch for V129 Friday Close Not Working jForex (in backtests and forward tests) in ticket 7357 strategies wont compile in jForex

Applied the patch from the ticket below

https://roadmap.strategyquant.com/tasks/sq4_7357/edit



Unfortunately following the patch the strategy wont compile in jForex and throws these erros:

12:05:04 ----------

12:05:04 3 problems (3 errors)

12:05:04 ----------

12:05:04 3. ERROR in /Users/xxxxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 2149)

12:05:04 boolean value = cond[i];

12:05:04 ________________^^^^

12:05:04 cond cannot be resolved to a variable

12:05:04 ----------

12:05:04 2. ERROR in /Users/xxxxxxxxxxxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 284)

12:05:04 order = sqOpenOrder(SELLSTOP, "Current", sqMMRiskFixedAccountPct("Current",SELLSTOP,(sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))),sqGetSLLevel("Current", SELLSTOP, (sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), 1, StopLoss),mmRiskPercent,mmDecimals,mmStopLossPips,mmLotsIfNoMM,mmMaxLots), (sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), MagicNumber, "", 0, true, false, null);

12:05:04 ________^^^^^^^^^^^

12:05:04 The method sqOpenOrder(IEngine.OrderCommand, String, double, double, int, String, long, boolean, boolean, Color, boolean) in the type Strategy_3_58_105_USDJPY_POST_PATCH is not applicable for the arguments (IEngine.OrderCommand, String, double, double, int, String, int, boolean, boolean, null)

12:05:04 ----------

12:05:04 1. ERROR in /Users/xxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 254)

12:05:04 order = sqOpenOrder(BUYSTOP, "Current", sqMMRiskFixedAccountPct("Current",BUYSTOP,(sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))),sqGetSLLevel("Current", BUYSTOP, (sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), 1, StopLoss),mmRiskPercent,mmDecimals,mmStopLossPips,mmLotsIfNoMM,mmMaxLots), (sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), MagicNumber, "", 0, true, false, null);

12:05:04 ________^^^^^^^^^^^

12:05:04 The method sqOpenOrder(IEngine.OrderCommand, String, double, double, int, String, long, boolean, boolean, Color, boolean) in the type Strategy_3_58_105_USDJPY_POST_PATCH is not applicable for the arguments (IEngine.OrderCommand, String, double, double, int, String, int, boolean, boolean, null)

12:05:03 Compiling Strategy_3_58_105_USDJPY_POST_PATCH.java

12:00:15 Compilation successful. Strategy ID: 8E374C727C048441C79A410B87258603

12:00:14 Compiling Strategy_3_58_105_USDJPY_PRE_PATCH.java

Attachments
Strategy_3_58_105_USDJPY_POST_PATCH.java
(117.79 KiB)
Strategy_3_58_105_USDJPY_PRE_PATCH.java
(106.62 KiB)
Strategy 358105 USDJPY.sqx
(373.58 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Duplicate
  • Priority Normal
  • Assignee None

History

N
#1

nathan

04.12.2020 13:21

Task created

N
#2

nathan

04.12.2020 13:28

Description changed:

Applied the patch from the ticket below

https://roadmap.strategyquant.com/tasks/sq4_7357/edit



Unfortunately following the patch the strategy wont compile in jForex and throws these erros:

12:05:04 ----------

12:05:04 3 problems (3 errors)

12:05:04 ----------

12:05:04 3. ERROR in /Users/xxxxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 2149)

12:05:04 boolean value = cond[i];

12:05:04 ________________^^^^

12:05:04 cond cannot be resolved to a variable

12:05:04 ----------

12:05:04 2. ERROR in /Users/xxxxxxxxxxxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 284)

12:05:04 order = sqOpenOrder(SELLSTOP, "Current", sqMMRiskFixedAccountPct("Current",SELLSTOP,(sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))),sqGetSLLevel("Current", SELLSTOP, (sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), 1, StopLoss),mmRiskPercent,mmDecimals,mmStopLossPips,mmLotsIfNoMM,mmMaxLots), (sqLowest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) - (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), MagicNumber, "", 0, true, false, null);

12:05:04 ________^^^^^^^^^^^

12:05:04 The method sqOpenOrder(IEngine.OrderCommand, String, double, double, int, String, long, boolean, boolean, Color, boolean) in the type Strategy_3_58_105_USDJPY_POST_PATCH is not applicable for the arguments (IEngine.OrderCommand, String, double, double, int, String, int, boolean, boolean, null)

12:05:04 ----------

12:05:04 1. ERROR in /Users/xxxxxxxxxxxxxx/Library/Application Support/JForex/xxxxxxxxxxxxxxxx/jfxide/tmp/compile/Strategy_3_58_105_USDJPY_POST_PATCH.java (at line 254)

12:05:04 order = sqOpenOrder(BUYSTOP, "Current", sqMMRiskFixedAccountPct("Current",BUYSTOP,(sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))),sqGetSLLevel("Current", BUYSTOP, (sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), 1, StopLoss),mmRiskPercent,mmDecimals,mmStopLossPips,mmLotsIfNoMM,mmMaxLots), (sqHighest("Current", 0, MEDIAN_PRICE, PeriodParam, 2) + (PriceEntryMult * roundValue(sqATR("Current", 0, MTATRPeriod2, 1)))), MagicNumber, "", 0, true, false, null);

12:05:04 ________^^^^^^^^^^^

12:05:04 The method sqOpenOrder(IEngine.OrderCommand, String, double, double, int, String, long, boolean, boolean, Color, boolean) in the type Strategy_3_58_105_USDJPY_POST_PATCH is not applicable for the arguments (IEngine.OrderCommand, String, double, double, int, String, int, boolean, boolean, null)

12:05:03 Compiling Strategy_3_58_105_USDJPY_POST_PATCH.java

12:00:15 Compilation successful. Strategy ID: 8E374C727C048441C79A410B87258603

12:00:14 Compiling Strategy_3_58_105_USDJPY_PRE_PATCH.java

TT
#3

Tamas

04.12.2020 14:13

Status changed from New to Duplicate


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please