Im running Max's EA v 66 and STILL getting tons of those blasted error 130s (invalid stops). Is there a fix?
Odysseus
Odysseus
forexfusiondotcom
Nanningbob 4h trading system ver. 5.0 4,432 replies
Nanningbob 60x90 EA 3,920 replies
Help regarding NanningBob EA 27 replies
Nanningbob 4H trading system 2,017 replies
Help to improve profitable EA - 1H NanningBob 40MA 200 BB 10 replies
DislikedSo why the heck am I am making money on this? 1,2 and 3 has earned some good pipsIgnored
DislikedI tried to add a Trix divergence mode in the Ea using THV tread rule and indic "THV3 Trix called".
I writed the following code in my ea in order to draw an arrow and nothing happens. Does someone have an idea why?
Thanks in advance
if (iCustom(Symbol(), 0, "THV3 Trix called", 20, 35, 1, 4, 0) != EMPTY_VALUE)
{
Arrow="A"+DoubleToStr(TimeCurrent(), 0);
ObjectCreate(Arrow,OBJ_ARROW,0,TimeCurrent(), Bid - 0.0001 );
ObjectSet(Arrow,OBJPROP_ARROWCODE,SYMBOL_ARROWUP); }
if (iCustom(Symbol(), 0, "THV3 Trix called", 20, 35, 1, 5, 0) != EMPTY_VALUE)...Ignored
void Mode1Buy() { RefreshRates(); if (Bid < BbLower) { Buy("#1 BUY"); } } void Mode1Sell() { RefreshRates(); if (Ask > BbUpper) { Sell("#1 SELL"); } } void Mode2Buy() { RefreshRates(); double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 1); Var2 = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_LOWER, 1); BbLower = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_LOWER, 0); RefreshRates(); if (Bid > BbLower && Var1 < Var2) { Buy("#2 BUY"); } } void Mode2Sell() { RefreshRates(); double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 1); Var2 = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_UPPER, 1);//mod BbUpper = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_UPPER, 0); if( Bid < BbUpper && Var1 > Var2) { Sell("#2 SELL"); } RefreshRates(); } void Mode3Buy() { double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 0); Var2 = iMA(NULL, 0, 4, 0, MODE_LWMA, PRICE_HIGH, 0);//mod BbLower = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_LOWER, 0); RefreshRates(); if(Bid < Var2 && Var1 > BbLower) { Buy("#3 BUY"); } } void Mode3Sell() { double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 0); Var2 = iMA(NULL, 0, 4, 0, MODE_LWMA, PRICE_LOW, 0);//mod BbUpper = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_UPPER, 0); RefreshRates(); if(Bid > Var2 && Var1 < BbUpper) { Sell("#3 SELL"); } } void Mode4Buy() { BbLower = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_LOWER, 0); double Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 0); double Var2 = iMA(NULL, 0, 3, 1, MODE_LWMA, PRICE_MEDIAN, 0); RefreshRates(); if (Bid < BbLower || (Bid > Var2 && Var1 < Var2)) { Buy("#4 BUY"); } } void Mode4Sell() { BbUpper = iBands(NULL, 0, 25, 2, 0, PRICE_CLOSE, MODE_UPPER, 0); double Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 0); double Var2 = iMA(NULL, 0, 3, 1, MODE_LWMA, PRICE_MEDIAN, 0); RefreshRates(); if(Bid > BbUpper || (Bid < Var2 && Var1 > Var2)) { Sell("#4 SELL"); } } void Mode7Buy() { double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 1); Var2 = iBands(NULL, 0, 25, 2, 3, PRICE_CLOSE, MODE_LOWER, 1); BbLower = iBands(NULL, 0, 25, 2, 3, PRICE_CLOSE, MODE_LOWER, 0); RefreshRates(); if (Bid > BbLower && Var1 < Var2) { Buy("#7 BUY");} } void Mode7Sell() { double Var1, Var2; Var1 = iMA(NULL, 0, 1, 0, MODE_LWMA, PRICE_MEDIAN, 1); Var2 = iBands(NULL, 0, 25, 2, 3, PRICE_CLOSE, MODE_UPPER, 1); // mod BbUpper = iBands(NULL, 0, 25, 2, 3, PRICE_CLOSE, MODE_UPPER, 0); RefreshRates(); if( Bid < BbUpper && Var1 > Var2) { Sell("#7 SELL");} }
else if (tradedirection == buy) // BUY { if (UseSixthsTp) // use Sixths { if ( MathAbs(Ask-TopGreenLine) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; } else { target = TopGreenLine; }
else if (tradedirection == buy) // BUY { if (UseSixthsTp) // use Sixths { if ( MathAbs(Ask-[b]BottomGreenLine[/b]) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; } else { target = [b]BottomGreenLine[/b]; }
DislikedThis is le last version
- Bug corrected (last steve mod trendstatus)
- rewiew buy sell modes
- included H4 Trendline
- Include a new mode : trix divergence. For moment only testing, ie draw arrows, not yet trade. You must load in indic folder : "THV4 Trix called"
Works better on H1
You must use MasterEa 006
Use the template info master 6 in a chart like GbpJpy M15, you have to load the indics _i_xxx to indics folders
Enjoy !Ignored
DislikedI have started reading through the code as promised and have found an error in this function. It currently reads
which I think should beInserted Codeelse if (tradedirection == buy) // BUY { if (UseSixthsTp) // use Sixths { if ( MathAbs(Ask-TopGreenLine) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; } else { target = TopGreenLine; }
[code]
else if (tradedirection == buy) // BUY
{
if (UseSixthsTp) // use Sixths
{
if ( MathAbs(Ask-BottomGreenLine) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; }
else { target = BottomGreenLine;...Ignored
DislikedWill someone please check my thinking on this, as that line may be there for a reason. As I am not sure what the check is there for, I can't offer any suggestions.
Cheers, Beastie.Ignored
DislikedHow many times have you gone to bed only to re-awake and find your Metatrader has shut down.
Well, help is at hand. Please find attached a little windows program I wrote that will check every 5 seconds to see if terminal.exe is running. if not then it will start Metatrader for you.
It doesnt matter where you put the program. When you first run it you will need to tell it where your Metrader root directoty is installed.
Scoobs.
PS. IT WONT HELP IF YOUR PC IS RE-BOOTED!!!!!!!!!!!!!!!!!!!!!!!!!Ignored
DislikedThanks Scooby - interesting
I guess we need a separate instance of the program for each Metatrader we are running?Ignored
DislikedYes, however I dont know what the impact would be on resources.
ScoobsIgnored
DislikedI have started reading through the code as promised and have found an error in this function. It currently reads
which I think should beInserted Codeelse if (tradedirection == buy) // BUY { if (UseSixthsTp) // use Sixths { if ( MathAbs(Ask-TopGreenLine) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; } else { target = TopGreenLine; }
[code]
else if (tradedirection == buy) // BUY
{
if (UseSixthsTp) // use Sixths
{
if ( MathAbs(Ask-BottomGreenLine) < (Point*MinimumTargetinPips) ) { target = TopGreenLine; }
else { target = BottomGreenLine;...Ignored
DislikedThe possible error is around the use of Bollinger Band %b indicator. The text in the code states:
"Bollinger Bands %b measures the market distance from BB Upperline, so a value of 1 means the
market is equal the top line;...Ignored