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! :-)
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
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.