Why doesn't this work in the tester ?

 

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?

 

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

Reason: