Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 260
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
A hint I'm drawing an object:
ObjectCreate(0, "good_"+(string)s,OBJ_ARROW,0,0,0,0); // create an arrow
ObjectSetInteger(0, "good_"+(string)s,OBJPROP_ARROWCODE,252); // set arrow code
ObjectSetInteger(0, "good_"+(string)s,OBJPROP_TIME,Time[1]); // set time
ObjectSetDouble(0, "good_"+(string)s,OBJPROP_PRICE,High[1]+0.0001);
ObjectSet("good_"+(string)s,OBJPROP_COLOR,Lime);
ObjectSet("good_"+(string)s,OBJPROP_WIDTH,2);
s++;
How to make the arrow go 10 pips higher than the bar's high. High[1]+0.0001 doesn't do it(((
High[1]+10*Point
Does High[1]+10*_Point != High[1]+0.0001 ??????????????
In which quotes should it be 10?
High[1]+10*Point
Chet doesn't work in the tester. My quotes are 5 decimal places.
Chet doesn't work in the tester. My quotes are 5 decimal places.
How do you determine what's not working? The price of the object is not at the bottom. That's why you can't see that one point. Do 5-7 points and you'll see.
How to calculate the SL by ATR ?
How to calculate the SL by ATR ?
Simply iATR/Point() - get in points
is this correct ?
If you have a five digit Point() function - see reference - or a variable with an underscore ahead of _Point is 0.00001
If you have five digits, the Point() function or a variable with an underscore ahead of _Point is 0.00001
Thank you.
is that correct ?
I told you - just divide the atr value by the point.