@fabiobioware the calculation is correct the swap and the commissions are negative numbers that it adds to get the 2 of profit. For what you want you have to calculate them individually and add them as positive numbers.
Posts made by miki
-
RE: "As money plus swap and commission" block not working fine.posted in Bug Reports
-
RE: Resources insert indicatorposted in General Discussions
@skauch inserting the indicator in the EA code it is called as if it is a function and not an indicator itself.
https://www.mql5.com/en/articles/4602 -
RE: How to EA draw an indicator on the chart automatic?posted in Questions & Answers
@khacdiepvnc from what i know you can't in mql4, one more reason to switch to mt5

-
RE: How to EA draw an indicator on the chart automatic?posted in Questions & Answers
@khacdiepvnc if you use MT5 to add an indicator on the chart in automatic mode, in on init tab open a custom mql block and copy paste this code :
long handle=ChartID();
if(!ChartIndicatorAdd(handle,1,v::atrcurrent))
PrintFormat("Failed to add ATR indicator on %d chart window. Error code %d",
handle,GetLastError());
if(!ChartIndicatorAdd(handle,0,v::imacurrent))
PrintFormat("Failed to add EMA indicator on %d chart window. Error code %d",
handle,GetLastError());First "if" is for a subwindow indicator like ATR in this case, second "if" is for an indicator in main chart like EMA.
v::atrcurrent and v::imacurrent you have to replace them with the handles of the indicators you want to use. -
RE: Resources insert indicatorposted in General Discussions
@skauch extern indicator must be built in ea to sell in the market.
-
Just a questionposted in Questions & Answers
In the attached file below there is the report of a forward optimization of my ea and it has sharpe ratio as a result. In your opinion, is it better to consider sharpe ratio or profit more?
Ps:rename files to .xml because fxdreema doesn't accept them.
ReportOptimizer-insample.xml.ex5
ReportOptimizer-outofsample.xml.ex5 -
RE: MT$ Or MT5posted in Questions & Answers
@lucivuur personally i prefer mt5 it is much more performing than mt4, but it also depends on the broker you use. Not all brokers offer mt5.
-
RE: Who can use EA built with FXdreemaposted in Questions & Answers
@fmazzot hi,for the first question answer is yes , for the second, custom indicator if not a default installed it must built in ea.
-
RE: Hi guys I would like to know your opinion on this expert advisor.posted in Questions & Answers
@alsomaedhy try to change broker or create a custom symbol with this guide https://www.mql5.com/en/code/20225
-
RE: Hi guys I would like to know your opinion on this expert advisor.posted in Questions & Answers
@alsomaedhy are you used every real tick data in the tester?
-
RE: Strategy Results, Good? Bad? Okay?posted in General Discussions
@seb-0 sp500 is closely related to EURUSD, usually a strategy that works on EURUSD also works on sp500. The goodness of the strategy is there but for a more credible test it simulates withdrawals at least once a year and, not negligible, the drawdown that is psychologically sustainable for you.
-
RE: Hi guys I would like to know your opinion on this expert advisor.posted in Questions & Answers
@alsomaedhy history quality is too low
-
RE: Avoid trading correlated pairposted in Questions & Answers
@sauce an idea is this https://fxdreema.com/shared/5usG5wKfb
but without project i don't know,how to implement it. -
RE: ANOTHER MT5 BUG?posted in Bug Reports
@miro1360 in the tester with a negative number work correctly, it's in live mode that don't work fine
-
RE: ANOTHER MT5 BUG?posted in Bug Reports
@ambrogio you're right in live mode one position is open every tick
-
RE: Issue with risk % equity, strategy tester says error?posted in Questions & Answers
@alfredinho50 on lower time frame may be the spread.
