Sergey Gritsay: Tweaked the bar mode. In version for mt5 I added trend indicator THV4
I've been spinning this tester from all angles - it's losing... only if I leave one signal on Buy... I've been working on this tester from all sides - it's losing... only if I leave one signal for Buy... it's more or less picking, and the trawl takes too long... it leaves zeros after itself...
Сергей Криушин: I've been spinning this tester from all angles - it's a loser... only if you leave one signal for Buy... d what do you mean it takes a long time, what kind of zeros does it leave behind...
d what do you mean it takes too long, what zeros does it leave behind?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please advise how to fix unidentified variable error, I'm not very good at MQL4
// lot calculation
if(MarketInfo(Symbol(),MODE_LOTSTEP)==0.01) int digit=2;
if(MarketInfo(Symbol(),MODE_LOTSTEP)==0.10) int digit=1;
if(MarketInfo(Symbol(),MODE_LOTSTEP)==1.00) int digit=0;
double _lot =NormalizeDouble(lot* MathPow(koef,totalO(-1,key)),digit);Here, it does not see the entry of this variable before (
double min=MarketInfo(Symbol(),MODE_MINLOT);
if(_lot<min)_lot=min;
here is the lot normalization function
using
here is the lot normalisation function
application Thank you
Tweaked the bar mode. In version for mt5 I added trend indicator THV4
I've been spinning this tester from all angles - it's a loser... only if you leave one signal for Buy... d what do you mean it takes a long time, what kind of zeros does it leave behind...
here is the lot normalisation function
application
There is a more elegant solution:
d in terms of how long it takes to trigger, what zeros does it leave?
Profit = 0.0
Profit = 0.0
Maybe you're setting the input parameters wrong, I'm fine
Maybe you're setting the input parameters wrong, I'm fine
The changes are as follows:
The changes are as follows:
With these settings.
Trailing can be switched off altogether, as it makes little sense