MQL official: Sleep() function does not suspend execution of the Expert Advisor in the Strategy Tester.
Maybe somehow related to it? I also had experience to those time functions that are not bar based, they might not work well in backtester
Posts made by sktsec
-
RE: having problem with delay blockposted in Questions & Answers
-
RE: Need Help Backtesting Errorposted in Questions & Answers
Not long ago this issue has been discussed and workarounds were given
-
RE: singal from trading view to mt5posted in Questions & Answers
I don't think so, as the group mode All means any other stuff doesn't matter. I often used it to control the total profit/loss no matter the trades were opened by EA or by hand.
-
RE: EA Ignoring Parameters on ADX??posted in Questions & Answers
Maybe using the Comment block to print out those values so that you can know exactly hat has happened.
-
RE: singal from trading view to mt5posted in Questions & Answers
Regrading the Group Mode item in the block Position Created, have you tried changing it to All?
-
RE: How to do I build a multi timeframe\symbol portfolio?posted in Questions & Answers
if a then b=1; if a then b=2; -> b must be 2
if a then b=1 else if a then b=2 -> b must be 1I am afraid the logic is clear.
In your case, it may need an array to handle the list of TFs
-
RE: how to use a .ex4 indicator on a mt5 projectposted in Questions & Answers
@cyberspace
If you still find the MT4 indicator is very profitable in a MT4 EA, the only way to make the signal work in MT5 is using signal copier, say, the one made by FXBlue. That's why such signal copier exists. -
RE: Reset Variable and show Zeroposted in Questions & Answers
@diginvest
It is still a 0, just a display issue -
RE: how to use a .ex4 indicator on a mt5 projectposted in Questions & Answers
@cyberspace
I am afraid it won’t work, because of missing the indicator in MT5 -
RE: How to Round to decimal placesposted in Questions & Answers
@Jim67
You are welcome. Indeed you inspired me as I never care about the display format at all -
RE: Giving sell/buy signal by phoneposted in Questions & Answers
@l-andorrà
Not only extra work on EA, but also an extra server program to get/phrase the phone message. -
RE: Last highest/lowest closeposted in General Discussions
@SirLuk
You could use the function
iHighest(NULL,0,MODE_CLOSE,X,0) -
RE: How do we set it not to show? negative sum and I include those that have not yet been processedposted in Questions & Answers
@nicksuksantr
Try use the block Modify Variable:
new_var = MathAbs(original_var) -
RE: is this correct?posted in Questions & Answers
Remove the Block pass once, which make your EA only run for just ONE tick only
-
RE: How to Round to decimal placesposted in Questions & Answers
Try:
Replace the variable in blue color with 1. For the adjust item: *NormalizeDouble(Range_Low,5) -
RE: How to Round to decimal placesposted in Questions & Answers
@Jim67
Try:
Replace the variables with 1, then replace = with *
