Attached is the changed EA.
DislikedHi,skyscraper.
If you don't mind i suggest to change some code in you EA. Small error
It's in "CalculateGuppy" routine. Below i embossed by red the changes to be made.
---------------------
if (UseInvestorTrend==False) {
if (RedTrend == ALLLONG && GreenTrend == ALLLONG && YellowTrend == ALLLONG && OrangeTrend == ALLLONG && BlueTrend == ALLLONG) GuppyTrend = LONG;
else if (RedTrend == ALLSHORT && GreenTrend == ALLSHORT && YellowTrend == ALLSHORT && OrangeTrend == ALLSHORT && BlueTrend == ALLSHORT) GuppyTrend = SHORT;
else GuppyTrend = FLAT;
}
--------------------
without those changes we may have situation when UseInvestorTrend==False, red and green are down but GuppyTrent=Long
Or red and green are up but GuppyTrent=short
Hope i was clearIgnored
Attached File(s)
SignalTrendFollowerEA-V1.1.mq4
24 KB
|
953 downloads