The second parameter in ObjectGet() is one from https://docs.mql4.com/constants/objects/properties you have used 0 and 1. 0 is TIME1, 1 is PRICE1, it probably doesnt fullfill the conditions of your ifs
try doing:
double o1 = ObjectGet("Arrow0",0);
double o2 = ObjectGet("Arrow1",1);
Alert("Arrow0 Time= ",o1,");
Alert(" Arrow1 Price= ",o2);
Should make alert with the time of bar the first arrow is at, and alert with the price that the 2nd arrow is at.
Thanks
i will try it
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