How come the ea open 0.50 lot size when I had 0.10 for lot in the setting? Is that a bug?
That's because I use the "TradeSizeOptimized" function.
The TradeSizeOptimized function aims to make optimal use of trading funds, where after a large profit is achieved, the EA will adjust the lot size so that traders can get a profit that is in accordance with the available funds.
//+------------------------------------------------------------------+//| Calculate optimal lot size |//+------------------------------------------------------------------+double TradeSizeOptimized(void)
{
double price=0.0;
double margin=0.0;
//--- Calculate the lot sizeif(!SymbolInfoDouble(_Symbol,SYMBOL_ASK,price))
return(0.0);
if(!OrderCalcMargin(ORDER_TYPE_BUY,_Symbol,1.0,price,margin))
return(0.0);
if(margin<=0.0)
return(0.0);
double lot=NormalizeDouble(AccountInfoDouble(ACCOUNT_FREEMARGIN)*MaximumRisk/margin,2);
//--- calculate the length of the series of consecutive losing tradesif(DecreaseFactor>0)
{
//--- request the entire trading historyHistorySelect(0,TimeCurrent());
//--int orders=HistoryDealsTotal(); // the total number of dealsint losses=0; // the number of loss deals in the seriesfor(int i=orders-1;i>=0;i--)
{
ulong ticket=HistoryDealGetTicket(i);
if(ticket==0)
{
Print("HistoryDealGetTicket failed, no trade history");
break;
}
//--- checking the deal symbolif(HistoryDealGetString(ticket,DEAL_SYMBOL)!=_Symbol)
continue;
//--- checking the profitdouble profit=HistoryDealGetDouble(ticket,DEAL_PROFIT);
if(profit>0.0)
break;
if(profit<0.0)
losses++;
}
//---if(losses>1)
lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
}
//--- normalizing and checking the allowed values of the trade volumedouble stepvol=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);
lot=stepvol*NormalizeDouble(lot/stepvol,0);
double minvol=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);
if(lot<minvol)
lot=minvol;
double maxvol=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);
if(lot>maxvol)
lot=maxvol;
//--- return the value of the trade volumereturn(lot);
}
I turned on the EA for about 2 days but no trades were made.
Can you answer it for me?
EA does not open every day, sometimes there are a few days EA does not do OP. This is because this EA uses several indicators as well as a filter for signals.
How come the ea open 0.50 lot size when I had 0.10 for lot in the setting? Is that a bug?
How come the ea open 0.50 lot size when I had 0.10 for lot in the setting? Is that a bug?
That's because I use the "TradeSizeOptimized" function.
The TradeSizeOptimized function aims to make optimal use of trading funds, where after a large profit is achieved, the EA will adjust the lot size so that traders can get a profit that is in accordance with the available funds.
Why can't backtest
Do you have any mql5 record for this EA?
EA entry based on what?
Why can't backtest
Do you have any mql5 record for this EA?
Please do a backtest. There is no backtest blocking on this EA.
This NGV1 uses Bollinger as its indicator, I used it last year, and there is no signal for the account.
Currently I use a robot with 3 indicators (Bollinger, MA, RSI), whose signals I publish under the name "Niguru Auto Gold S".
How long before the EA opens first trade?
Are you asking about time frame?
Hi hello.
Does the bot
How much is the minimum amount for it to work?
Hi hello.
Does the bot
How much is the minimum amount for it to work?
I just upload version 2
Minimum amount is USD 100 for 0.01 lots.
Nino Guevara Ruwano #:
I just upload version 2
Minimum amount is USD 100 for 0.01 lots.
Hello Nino, I dont see the new version. It's in the market?
Hello Nino, I dont see the new version. It's in the market?
yup
still using this nama V1, because there is no option to rename the EA here, but I already upload the new one.
old name for updated EA
yup
still using this nama V1, because there is no option to rename the EA here, but I already upload the new one.
old name for updated EA
Ok thanks, but I put the bot on and don't do nothing. why?
Ok thanks, but I put the bot on and don't do nothing. why?
OK, apparently because I installed several filters, this EA doesn't do OP every day. Sorry bro :-)
OK, apparently because I installed several filters, this EA doesn't do OP every day. Sorry bro :-)
Thanks. And, what time of the day works?
Thanks. And, what time of the day works?
There is no time filter.
¿Podrías enseñar que valores poner como TP, SL y Trend Option por favor?
Gracias .. :)
set files?
You can use default parameter.
Hi Nino
I turned on the EA for about 2 days but no trades were made.
Can you answer it for me?
Hi Nino
I turned on the EA for about 2 days but no trades were made.
Can you answer it for me?
EA does not open every day, sometimes there are a few days EA does not do OP. This is because this EA uses several indicators as well as a filter for signals.