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
What are the quotes 4 or 5 decimal places?
4 digits...tried it on 5 digits too. NormalizeDouble does not work :(
That's what I'm saying. Why is a 10 pips stop wrong...
Here's the thing: a 10 pips Stop may be wrong because the minimum distance at which you can place a Stop Loss is more than 10 pips (for example: 15 pips). This value is set by the dealing room.I've tried 200 too! Still the same...
Can you post the original EA code?
The principle of setting a stop loss in the OrderSend() function is correct. So there is no need to change anything there.
When the Print() function runs, ZigZag=0, hence the stop loss : 0+15*Point, i.e. equal to 0.0015. That is why it generates error OrderSend Error 130.
double ZZ_1 = NormalizeDouble(iCustom(NULL,0, "ZigZag",21,5,3,0,1),4);// 21,5,3 are external indicator variables, they must be specified in the order they are declared in the ZigZag indicator.
Similarly, double Buffer1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,0,1),4);
double Buf1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,6,1),4);
double Buffer2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,0,1),4);
double Buf2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,6,1),4);
No external variables are specified here.
But they are optional, as written in MQL4 documentation.
And in
double Buffer1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,0,1),4);
double Buf1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,6,1),4);
double Buffer2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,0,1),4);
double Buf2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,6,1),4);
no external variables at all :)
By the way, my PRINT function outputs ZigZag normally:
But they are optional, as written in MQL4 documentation.
And in
double Buffer1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,0,1),4);
double Buf1 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mx",0,6,1),4);
double Buffer2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,0,1),4);
double Buf2 = NormalizeDouble(iCustom(NULL,Frame, "Osc_Mn",0,6,1),4);
no external variables at all :)
By the way, my PRINT function outputs ZigZag normally:
If there are no external variables in these indicators, there is no claim :). But I still need to think about the stops. Maybe you'll get an insight.If there are no external variables in these indicators, there is no claim :). But I still need to think about the stops. Maybe you will get an insight.
Don't worry about it :) To developers: BASIC TESTER/OPTIMIZER
I'm sure it's the same with stopomi.