Codes

Lotsizer for MetaTrader 5

Shows the optimal position size through a comment from a symbol chart based on a risk percentage on daily ATR, you can use either balance or equity

CloseAll FIFO for MetaTrader 5

CloseAll script complying FIFO rules

Forum

Submit to CodeBase (update)

What does this mean and how to avoid it? The file is not suitable for MetaTrader 5 or its name has invalid characters (or coincides with the name of another attached file): name.ex5 I've tried different names, so why is the code not suitable for MetaTrader 5? Got this message without any other

Delete old products

Hi there community, Is it possible to delete old files from published and hidden products or change their names instead? Thank you in advance

How to set different Magics into the same advisor

Ok, I won't beat around the bush. Got two different sets from the same advisor both working pretty nice so I'm trying to merge them into a unique algorithm. The problem here is that each one work through a different hedging loop which need to be identified by their own MagicNumber, and I guess

How to correctly build notifications

Hi there, I've tried to build a notification following the MQL5 guidelines, that's something like this: string CC= StringFormat ( " [" ,CustomComment, "]" ); string PTC= StringFormat ( "Positions to close: " ,TC); string LS= StringFormat ( ", loss: "

Looping problem, return values=0

Hi there community, I'm trying to get Symbol Profit values from the loop. Made this way: double TotalProfit= 0 ; int LongPos= 0 ,ShortPos= 0 ; double SProfit= 0 ,SLoss= 0 ; double Positive= 0 ,Negative= 0 ; for ( int i= 0 ;i< PositionsTotal ();i++){ ulong

Strategy tester, opposite signals same results

Hi there, At first I must say I was wrong on my signals and now it seems going ok. But there's a very strange issue with the strategy tester, first we'll see how they were those signals: //+------------------------------------------------ Signals ---! bool Range=ADX< 25 ,OB=RSI> 61.8

Simple question

Hi there community, I've got a doubt on this lines. double GlobalTarget =(((Positive+ PositionsTotal ())/ 2 )*Equity)/ 100 ; double TakeProfit=GlobalTarget; if (Positive> 0 ){ TakeProfit = NormalizeDouble ( GlobalTarget /Positive, 2 ); GlobalTarget =GlobalTarget/( PositionsTotal

Broker time

Hi there community, I'm about to share an advisor through the market. My broker works at GMT+2/+3 and the advisor is intended to work through this server time, so the question is: How could I set the advisor to work properly through an asian or american broker, which server time do those brokers

FIFO close, processing error

Hi there community, There's a problem on closing several positions from the pool by FIFO rule with this code. It seems to be working ok on EAs through the strategy tester , even throwing better results than LIFO close, but for some reason it's not working fine on live trading. Made the code as

Ratings by backtests

Why the people is giving ratings just based on backtests , can they understand that a backtest means nothing? Everybody can make a backtest and see a great performance, even on the pictures attached, and then get scammed by fake results. Conclusion: no reliable product without a signal, <Deleted>