Requests & Ideas, the beginning - page 23

 

I am testing more than 50 EAs with different settings more than 1 year for this elite section posting the results.

And many EAs are very profitable here during the 6 or 12 months trading live.

Why we need to buy something from non-forex-tsd community members if we have our very good EAs in this elite section?

Sometimes our free EAs (elite section) are more good than their commercial ones. And sometimes EAs posted on our public forum are more good than commercial ones.

6 months or 1 year forward testing is not a joke. It is our serious data for the following:

free EAs (forex-tsd) vs commercial ones.

No one seller will test his EA during the 1 year to sell.

So those our results are very competitive.

 
 
mjchris:
Can someone please tell me how you would specify in your EA code that an EMA is on the High or low?

double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)

Parameters:

symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.

timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.

period - Averaging period for calculation.

ma_shift - MA shift. Indicators line offset relate to the chart by timeframe.

ma_method - MA method. It can be any of the Moving Average method enumeration value.

applied_price - Applied price. It can be any of Applied price enumeration values.

shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

Example.

In the settings type the following:

extern string PARAMETERS_INDICATOR_ONE = "Moving Average signal";

extern int SignalEMA_Period = 8;

extern int SignalMode=1 //0=sma, 1=ema, 2=smma, 3=lwma

extern int SignalPrice=0 //0=Close price; 1=Open price; 2=High price; 3=Low price; 4=Median price, (high+low)/2; 5=Typical price, (high+low+close)/3; 6=Weighted close price, (high+low+close+close)/4.

extern string PARAMETERS_INDICATOR_TWO = "Moving Average main";

extern int MainEMA_Period = 55;

extern int MainMode=1 //0=sma, 1=ema, 2=smma, 3=lwma

extern int MainPrice=0 //0=Close price; 1=Open price; 2=High price; 3=Low price; 4=Median price, (high+low)/2; 5=Typical price, (high+low+close)/3; 6=Weighted close price, (high+low+close+close)/4.

extern string PARAMETERS_INDICATOR_THREE = "Moving Average for close";

extern int CloseEMA_Period = 21;

extern int CloseMode=1 //0=sma, 1=ema, 2=smma, 3=lwma

extern int CloseMAPrice=0 //0=Close price; 1=Open price; 2=High price; 3=Low price; 4=Median price, (high+low)/2; 5=Typical price, (high+low+close)/3; 6=Weighted close price, (high+low+close+close)/4.

And then:

double Buy1_1 = iMA(NULL, 0, SignalEMA_Period, 0, SignalMode, SignalPrice, Current + 1);

double Buy1_2 = iMA(NULL, 0, CloseEMA_Period, 0, CloseMode, CloseMAPrice, Current + 1);

double Buy1_3 = iMA(NULL, 0, MainEMA_Period, 0, MainMode, MainPrice, Current + 1);

Use MettaEditor to read more.

 

Need Your Assistance !

hi guys.

i'm looking for EA with 15-20 pips TACK PROFIT AND STOP LOSS. ( yes , that all)

the most importent thing in my quest is:

- Profit trades (% of total) more than 50% (the higer the better)

- consecutive loss (count of losses) we need this one to be small as possible.

i thought to use 20PipsExpert but the SL is very high.

we have over 50 EA in elite section ,can you guys suggest me what to check?

 
400396:
hi guys.

i'm looking for EA with 15-20 pips TACK PROFIT AND STOP LOSS. ( yes , that all)

the most importent thing in my quest is:

- Profit trades (% of total) more than 50% (the higer the better)

- consecutive loss (count of losses) we need this one to be small as possible.

i thought to use 20PipsExpert but the SL is very high.

we have over 50 EA in elite section ,can you guys suggest me what to check?

Let me think ...

It is not 20PipsExpert. Exactly not. Because this EA is not using any indicator and profit is canculated yearly so I think you will not wait one ear to decide it is good EA or not.

May be qqq? Stop loss is 30 pips.

Or KSRobot?

Other EAs are having stop loss more than 30.

 

Because if 20 pips take profit, profit trades are more than 50% and consecutive loss as small as possible so it may be one important option here so basicly you need to look at this one:

- stop loss value;

- and how long somebody tested it to be profitable.

 

Thanks Nd , Let Me Know If You Got Other Ideas.

 
400396:
Thanks Nd , Let Me Know If You Got Other Ideas.

Just fixed version of Firebird 0.65 was created with and withiout timefilter and without any bug https://www.mql5.com/en/forum/173367/page24

Thanks FiFtHeLeMeNt.

 

EA Problem

I'm trying to build an EA based on several indicators.

My code(below) is fine, but when I test it no orders are carried out:\

Can anyone spot the problem?

//+------------------------------------------------------------------+

//| Kill Thrill v0.1.mq4 |

//| Tomba |

//| |

//+------------------------------------------------------------------+

#property copyright "Tomba"

#property link ""

extern double Differ = 0.1;

extern double Lots = 1.0;

extern double slip = 3.0;

extern int MagicNumber = 666;

//+------------------------------------------------------------------+

//| expert initialization function |

//+------------------------------------------------------------------+

int init()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

datetime lastbar;

bool NewBar()

{

datetime curbar = Time[0];

if(lastbar!=curbar)

{

lastbar=curbar;

return (true);

}

else

{

return(false);

}

}

int Direction()

{

if (iOpen(NULL, 0, 1) > iClose(NULL, 0, 1)) return(1);

if (iOpen(NULL, 0, 1) < iClose(NULL, 0, 1)) return(2);

else return(0);

}

datetime AddDay()

{

int MonthDays;

if (Month() == 2) MonthDays = 28;

if (Month() == 4 || Month() == 6 || Month() == 9 || Month() == 11) MonthDays = 30;

else MonthDays = 31;

int NextDay = TimeDay(TimeCurrent()) + 1;

datetime Outcome;

if (NextDay <= MonthDays)

{

Outcome = StrToTime(StringConcatenate(TimeYear(TimeCurrent()), ".", TimeMonth(TimeCurrent()), ".", NextDay));

}

else

{

if (TimeMonth(TimeCurrent()) < 12)

{

int NextMonth = TimeMonth(TimeCurrent()) + 1;

Outcome = StrToTime(StringConcatenate(TimeYear(TimeCurrent()), ".", NextMonth, ".01"));

}

else

{

int NextYear = TimeYear(TimeCurrent()) + 1;

Outcome = StrToTime(StringConcatenate(NextYear, ".01.01"));

}

}

return(Outcome);

}

int start()

{

//----

bool IsNew = NewBar();

if (IsNew == true)

{

datetime NewDate;

int IsDirection;

double OC = iOpen(NULL, 0, 1) / iClose(NULL, 0, 1);

double Sign1 = iClose(NULL, 0, 1) - iOpen(NULL, 0, 1);

double Sign2 = iClose(NULL, 0, 2) - iOpen(NULL, 0, 2);

double RSI1 = iCustom(NULL, 0, "RSI", 14, 1, 1);

double RSI2 = iCustom(NULL, 0, "RSI", 14, 1, 2);

double RSI = RSI2 / RSI1;

double SM1 = iStochastic(NULL, 0, 3, 3, 3, MODE_SMMA, 0, MODE_MAIN, 1);

double SM2 = iStochastic(NULL, 0, 3, 3, 3, MODE_SMMA, 0, MODE_MAIN, 2);

double SM = SM2 / SM1;

double SS1 = iStochastic(NULL, 0, 3, 3, 3, MODE_SMMA, 0, MODE_SIGNAL, 1);

double SS2 = iStochastic(NULL, 0, 3, 3, 3, MODE_SMMA, 0, MODE_SIGNAL, 2);

double SS = SS2 / SS1;

bool CheckSigns;

double SGN0 = Sign2 - Sign1;

double RSI0 = RSI2 - RSI1;

double SM0 = SM2 - SM1;

double SS0 = SS2 - SS1;

double min, max;

double min1 = MathMin(SGN0,RSI0);

double min2 = MathMin(SM0,SS0);

double max1 = MathMax(SGN0,RSI0);

double max2 = MathMax(SM0,SS0);

if (min2 < min1) min = min2;

else min = min1;

if (max2 > max1) max = max2;

else max = max1;

if (MathAbs(max) == max)

{

if (MathAbs(min) == min) CheckSigns = false;

else CheckSigns = true;

}

else CheckSigns = false;

NewDate = AddDay();

IsDirection = Direction();

if ( (MathAbs(OC) - MathAbs(RSI) >= 0.1) || (MathAbs(SM) - MathAbs(SS) >= 0.1) || (CheckSigns == true) )

{

if (IsDirection == 2) OrderSend(Symbol(),OP_SELL,Lots,Bid,slip,0,0,MagicNumber,NewDate,Red);

if (IsDirection == 1) OrderSend(Symbol(),OP_BUY,Lots,Ask,slip,0,0,MagicNumber,NewDate,Green);

}

else

{

if (IsDirection == 1) OrderSend(Symbol(),OP_SELL,Lots,Bid,slip,0,0,MagicNumber,NewDate,Red);

if (IsDirection == 2) OrderSend(Symbol(),OP_BUY,Lots,Ask,slip,0,0,MagicNumber,NewDate,Green);

}

}

//----

return(0);

}

//+------------------------------------------------------------------+
Files:
 

I need coders help!

Can anyone help me code “Dynamicpip” option from “Goblin_Options EA” into the latest version of “Goblin Bipolar modH EA” (both attached)

As suggested by the author, a good improvement would be “Dynamic expandable/collapsable pipstep interval settings calculated in realtime, based on near-term price volatility”. And I would like to see if “Dynamicpip” option from the older version will do well that job. Anyway, If you have a better suggestion…

Thanks

Reason: