Each object needs a unique name.... Is that your problem?
trl1 trl2 trl3 etc would do.
ObjectCreate("trl"+counter, OBJ_HLINE, 0, 0, hl, 0, 0);
phy:
Each object needs a unique name.... Is that your problem?
trl1 trl2 trl3 etc would do.
ObjectCreate("trl"+counter, OBJ_HLINE, 0, 0, hl, 0, 0);
Yupp that was my problem, works now! Thanks
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
Trying out some stuff, but due to weekend close I'm running it in the tester.
In the start function:
hl=iLow(Symbol(),PERIOD_M1,0);
ObjectCreate("trl", OBJ_HLINE, 0, 0, hl, 0, 0);
It draws one (the first) hline, but no more. Have checked the price (hl) and it follows the price.
It should work but it doesn't... Why?