ObjectCreate: Trying to draw a trend line with OBJ_TREND in MT4 between Highs - getting error in code
tenakha:
Hi,
I am getting this error:
'[' -array required
I am using ObjectCreate - the documentation is not very clear about the types of params I should be passing.
Here is the code:
Would be grateful for any help - I have not found any working examples online.
'Ask' is not an array, so there is no Ask[1] and Ask[2]. Use High[1] and High[2] instead.
Seng Joo Thio:
'Ask' is not an array, so there is no Ask[1] and Ask[2]. Use High[1] and High[2] instead.
Thank you so much - your advice worked a treat! The lines are appearing as expected! :-)
Hi,
I am getting this error:
I am using ObjectCreate - the documentation is not very clear about the types of params I should be passing.
Here is the code:
Would be grateful for any help - I have not found any working examples online.