There is an interesting trading idea. Help me find errors in the code (mql4). - page 15
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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