Applied the patch from the ticket below
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
Description changed:
Applied the patch from the ticket below
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