Forum

Please change IDE documentation to how it was before

There are no arrows to move back and forth after clicking on something like how it was in the old documentation windows. If I search up a function and it has a enum that I click on, I can't click a arrow to go back like how it was in the old documentation, instead it flips thru to the next page when

Feedback on ATR step based trailing stop

This is an ATR step based trailing stop and it works fine in the strategy tester but would like feedback on the SERIES_SYNCHRONIZED and iBarShift checking. Did I do it correctly or am I missing something crucial? Originally I was storing the ATR value in the trade comment since my broker never

Confusion about iClose and CopyRates data syncronization

So I have been reading through https://www.mql5.com/en/forum/451498 and https://www.mql5.com/ru/forum/442814/page2 and from what I understand the iClose/iOpen and things like CopyTime can return wrong values if not synced up and is therefore unreliable? But with both don't you still just check and

Can Someone Please Explain How To Use the New Git Buttons?

I've never used anything related to git or github before because I usually do solo stuff but I would like to learn although I don't want to mess anything up and accident lose days of work. Can anyone please explain how to do it because I tried to follow the steps in the old 2024 article but its for

What Template Do You Guys Follow When Creating EAs/Strategies?

For me personally I build strategies based off indicators so I follow something like the darwinex multisymbol template posted on github. I have a bunch of enums for deciding lot size, sl and tp based on ATR, new filter enum, and a bunch of functions I copy and paste over for placing trades that have

How to Create "Currency Baskets" in MT5?

Hello all, on trading view its possible to create currency baskets like the yen basket (JPYBASKET) but on mt5 I'm not sure how to go about this. I have zero experience in create custom symbols other than downloading tick data from dukascopy so I'd thought I would ask if anyone knew how to do this

Is It Even Possible to Create Something Profitable for the 5 Min Timeframe?

Title says it all. I've been through a lot with EA coding and can do multi symbol stuff, custom performance metrics (Calmar Ratio, Avg Weekly R multiple, etc), news filtering. Yet I have never been able to create any profitable system on the 5 min timeframe. The way I build EAs might be affecting

Is there any workaround for drawing lines on multiple charts in the strategy tester? (Multisymbol EA related)

From my understanding ObjectCreate() can only draw lines on the chart_id which is always the current chart inside the strategy tester . bool CChartObjectVLine::Create( long chart_id, const string name, const int window, const datetime time) { if (! ObjectCreate (chart_id,name, OBJ_VLINE

Problems with DSToffsets when creating News Filters

I am at a total loss of understanding. I read this thread: https://www.mql5.com/en/forum/326554 and tried using the news.mqh file and couldn't get it to draw lines properly, so then I have tried using Rene Balke's CalendarHistory.mqh file and it seems to correctly save all the values in a script but

Coding a Step Based ATR Trailing Stop Function

There are some groups of people out there who used a step based ATR trailing stoploss for their trend following systems so I decided to code this since I couldn't find any free source code out there on the mql5 forum. It seems to be working properly for me right now so here is part of the source