@sara-m commission and swap shouldn't affect the calculation in any way, as they are always in relation to the lot sizes. So it is enough to weigh the open prices by the share of total lot size.
Posts made by roar
-
RE: How is the average entry price calculated...posted in Questions & Answers
-
RE: News during Backtestposted in Questions & Answers
I'm not sure that works, it would be better like this
-
RE: News during Backtestposted in Questions & Answers
@Archer glad it works. Currently the indicator filters for USD and the margin and profit currency of current pair. These filters are on line 75, you can add more currencies similar to the "USD" part

-
RE: News during Backtestposted in Questions & Answers
Hi!
I got this project a little bit forward, adding the 6 datetimes to the indicator buffers and also visualizing the event dates. Keywords aren't supported in this version.
-
RE: Set Current Timeframe For Next Blocks Not Workingposted in Bug Reports
@oseiwe good find.
To put it more precisely, the "Time" selection by "Candle time" does not follow the "Set Current Timeframe" block. -
RE: Profitable test results on Falcon and Condor, and forward testing looking goodposted in General Discussions
@Julianrob good stats so far, for what it's worth. A Myfxbook tracker would be great, so we can see the equity curves.
-
RE: News during Backtestposted in Questions & Answers
Hi!
I processed the csv file in a custom indicator project, but trying to move the same code to fxdreema causes some weird problems. I think fxdreema cannot handle such big arrays, it needs to be constructed in some other way...
Maybe someone finds the indicator format useful. I will try to better integrate this to fxdreema at some point...
I used the file "All news events 2007-01-01 thru 2023-12-31 timestamped UTC time -- sorted by date, time.csv", renamed to "news.csv" and moved to the Common folder.

newsread.mq5
newsread.ex5 -
RE: Profitable test results on Falcon and Condor, and forward testing looking goodposted in General Discussions
@Julianrob dare to give your strategy a full week lol

-
RE: News during Backtestposted in Questions & Answers
@Archer thank you! That is good data, valuable stuff. I'll try to find some time this week to code it and update here. Please remind me if I dont
-
RE: Profitable test results on Falcon and Condor, and forward testing looking goodposted in General Discussions
Is it confirming your strategy, though, if the same system doesn't work live but instead you need to add more filters...?
Can you show the results when you used live exactly the same system that you backtested?
-
RE: Compilation errors - '::' - syntax errorposted in Questions & Answers
Its a bug in the custom indicators model. You can try to workaround by setting datatype int for the trend method setting.

-
RE: add immediately H-Lineposted in Questions & Answers
Maybe the chart is just not updating the results.
Put
ChartRedraw();in a custom mql block. -
RE: Backtesting problemposted in Questions & Answers
In short, create a proper EA.
In long, your EA only appears to be profitable because the MT4 tester doesn't have enough data and it falsifies the results. The profit doesn't come from your strategy, it comes from a bug in testing software. Its not real, don't get your hopes up.
-
RE: Trying to calculate the distance in pips between Candle Open and MAposted in Questions & Answers
Why do you need to convert the distance into pips? The SL selection supports many other number types too, a price level for example.
-
RE: How to lock robot under client's nameposted in Questions & Answers
@Champ the logic is ok, there is nothing to fix. The problem is that we dont know for sure what to write to the text field.
Another option is a simple password.
-
RE: How to lock robot under client's nameposted in Questions & Answers
Maybe the name is Cadebra Abba, ABBA CADEBRA, Cadebra.... Just use account number instead of name. Otherwise the logic is ok.
-
How to detect choppy marketposted in General Discussions
A challenge for the community: Present the best way to detect a ranging, choppy, non-trending market.
There are many options to do this, but many indicators seem to either filter too agressively or not at all.
I will start with something a bit less ordinary, my own indicator that consists of RSI and a soup of moving averages. When white line is between 45-55, market is ranging (counter-trend strategies are safe). I came up with this in the last 10 minutes, so it is probably not quite perfect.
rsitrend.ex5 rsitrend.mq5

-
RE: Compilation errors when using indicators with Multi Time Frame.posted in Bug Reports
@PhiLykia does the custom indicator have variable names such as "c" or "v"? Those may create the bug. You could try renaming the variables of your indicator.
I do agree these kinds of bugs should be fixed rather than finding such workarounds.
