Is it possible to get price data of an OBJ_PITCHFORK at a given bar index?
I used ObjectGetValueByShift(), but it doesn't give any useful result (0).
ObjectGetValueByShift's documentation says:
Applied to trendlines and similar objects.
A pitchfork is actually 3 parallel trend lines.
So, why ObjectGetValueByShift() doesn't work with it?
Any solution?
Thanks
I could be wrong, but I'm pretty sure you have to make your own function by getting the coordinates of the anchor points and calculating the slope...
I could be wrong, but I'm pretty sure you have to make your own function by getting the coordinates of the anchor points and calculating the slope...
Yes, I've already done it.
I don't understand why did MQ forget pitchfork when made ObjectGetValueByShift().
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is it possible to get price data of an OBJ_PITCHFORK at a given bar index?
I used ObjectGetValueByShift(), but it doesn't give any useful result (0).
ObjectGetValueByShift's documentation says:
Applied to trendlines and similar objects.
A pitchfork is actually 3 parallel trend lines.
So, why ObjectGetValueByShift() doesn't work with it?
Any solution?
Thanks