i noticed that the ea doesn't run in offline chart.. I test using alert in LookForTradingOpportunities ...anyone having the same problem and what could be the problem?
Fratelli Intraday trading system 3,366 replies
Fratelli trading system signal indicator 42 replies
Fratelli Improvements and upcoming projects 15 replies
System Test: Invictus V Fratelli 541 replies
DislikedMACD readings can't be "none", so you definitely have a problem there.Maybe the EA settings, or the default MACD indi in MT4 build.Ignored
DislikedJust checked your code:
MACD = none;
if (MACD1 > (0+2*Point) || MACD0 >= (0+2*Point)) MACD = up;
if (MACD1 < (0-2*Point) || MACD0 <= (0-2*Point)) MACD = down;}
This means -> if (MACD1 <= (0+2*Point) && MACD0 < (0+2*Point) && MACD1 >= (0-2*Point) && MACD0 > (0-2*Point) MACD = none;
So MACD can be "none", right?Ignored
DislikedOk, just for fun, you got here the version that can use OsMA instead of MACD. It's a built in OsMA, so you don't need external indi. Use OsMA OR MACD, not both.Ignored
Dislikedtks for the new version
Pierre do you set macs and osma on true or just osma and with wich parameters
regardsIgnored
DislikedBut it can simultanesously be < 0+2*point and > 0-2*point, or am I wrong?Ignored
DislikedDrago
Could you put an option in the EA to Enable/disable the
use of the 89 EMA.
Thanks in advance.
LufkindogIgnored
Dislikedgms, once this string called "MACD" has an assigned value"up" or "down", this can't be none again, as it's cancelled just by the opposite. So, if MACD is below 0+buffer, value is "down".Opposite for "up".Ignored
DislikedSorry Drago, I do not want to be a pain in your neck, but whenever the function ReadIndicatorValues is called, the MACD string is reset to none. Since the function is called from the start() function, the reset happens again and again.
If at that point in time the MACD1 and MACD0 values are between 0+2*point and 0-2*point, then the string will stay on none.
In this situation according to the rules the EA should not enter a trade. However, the lines
if (MACD == up) return;
if (MACD == down) return;
will not keep the EA from entering in this case....Ignored
QuoteDislikedif (MACD == up) return;
if (MACD == down) return;
QuoteDislikedif (MACD == up || MACD==none) return;
if (MACD == down || MACD==none) return;
DislikedI already modified the code locally. But I wanted you to know and understand! Otherwise the problem will be back as soon as you send out a new version ...
(I did not mean to correct you in any way. Your EA is great work!)
garyIgnored
DislikedThe following are the results of running the EA with OSMA indi on 14-12-2011 with the settings as in my previous post, testing four pairs (GU, EU, AU and EJ).
The net contribution by GU was +20 pips.
The results using MACD with same settings are in the next post.
Cheers.
EDIT : Total = -72 pipsIgnored
DislikedThe following are the results of running the EA with OSMA indi on 14-12-2011 with the settings as in my previous post, testing four pairs (GU, EU, AU and EJ).
The net contribution by GU was +20 pips.
The results using MACD with same settings are in the next post.
Cheers.
EDIT : Total = -72 pipsIgnored
DislikedResults of running EA with MACD indi on 14-12-2011, same settings as above.
Net contribution by GU was minus 14 pips.
Cheers.
EDIT : Total = -171 pipsIgnored