Codes

AutoRisk for MetaTrader 5

Shows your position size through a comment from any symbol chart based on a risk percent on daily ATR, you can use either balance or equity

CloseAll FIFO for MetaTrader 5

CloseAll script complying FIFO rules

Forum

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>

Validation error - PositionModify

MQL5 validation gives me this result, does anyone know why or how can I correct it? test on EURUSD, H1 (netting) 2019.05.03 10:00:00 failed instant sell 1.4 EURGBP at 0.85750, close # 6 buy 1.4 EURGBP 0.85734 [Modification failed due to order or position being close to market] 2019.06.05 03:00:00

Trading filters

Hi, here it's an example on how my hedging bot is performing. It's very close to make it on all 28 forex pairs. The question is how it could be a clever way to filter these signals to make this work safe and smoothed. Signals are Bands and RSI based