XAUUSD Highs algorithm is not sending orders
3 replies
Gilson Barbosa
2 weeks ago #287535
I have two trend algorithms that operate XAUUSD on TF M15. Until 09/20/2024, it was sending orders normally. After that, it stopped sending orders and there are no errors in the log. Since these are historical highs, my EAs were not tested at these levels. The question is: do the EAs only enter if the prices are within the base that they already know, or are they programmed to enter if the condition is true, regardless of whether the price was in the base or not?
Or is it some configuration? If anyone knows how to solve it, I would appreciate it.
tomas262
2 weeks ago #287557
Without specific strategy and details of a situation shared it is very hard to guess. Please share more details
Gilson Barbosa
2 weeks ago #287568
This is the entry and exit condition, it is a short takeprofit strategy:
//————————
// Rule: Trading signals
//————————
if (_sqIsBarOpen == true) {
// init signals only on bar open
LongEntrySignal = (((sqIsFalling(“sqWeekly(NULL,0,\”Close\”, 1)”, 2, false, 0 + 1, 0))
&& (sqIsGreaterCount(“sqGetIndicatorValue(BOLLINGERBANDS_1, 0 + 1, 1)”,”sqGetIndicatorValue(BOLLINGERBANDS_2, 0 + 1, 1)”,8,true,1)))
&& (sqIsGreaterCount(“sqGetIndicatorValue(LINEARREGRESSION_1, 0, 1)”,”sqDaily(NULL,0,\”Low\”, 1)”,4,false,1)));
ShortEntrySignal = (((sqIsRising(“sqWeekly(NULL,0,\”Close\”, 1)”, 2, false, 0 + 1, 0))
&& (sqIsLowerCount(“sqGetIndicatorValue(BOLLINGERBANDS_3, 1 + 1, 1)”,”sqGetIndicatorValue(BOLLINGERBANDS_2, 1 + 1, 1)”,8,true,1)))
&& (sqIsLowerCount(“sqGetIndicatorValue(LINEARREGRESSION_1, 0, 1)”,”sqDaily(NULL,0,\”High\”, 1)”,4,false,1)));
LongExitSignal = false;
ShortExitSignal = false;
}
with the indicators configured like this:
input int BollingerBandsPrd1 = 50; //BollingerBandsPrd1
input int BollingerBandsPrd2 = 20; //BollingerBandsPrd2
input int LinearRegressionPrd1 = 13; //LinearRegressionPrd1
input double ProfitTarget1 = 0.2; //ProfitTarget1
input double StopLoss1 = 3; //StopLoss1
tomas262
1 week ago #287632
please send the strategy sqx and mql files to our [email protected] for further analysis. We can look into it
Viewing 3 replies - 1 through 3 (of 3 total)