Is there a way to programatically switch between snap modes?
I have gone through the language reference section and I have only found the ignoresnapping property somewhat related. Yet, this property does not allow what I want.
Here what I want to do when drawing, for instance, a trend line:
* I select the trendline tool and I want then the snap mode to go disabled (if it was enabled).
* After I click to set the first anchor, I want bar&price snapping to become enabled.
* When I click for the second anchor, and the trendline is drawn, I want snap mode to be disabled again.
Today, I do this process through the corresponding hotkeys (snap mode) and with this post I am checking if I could do it in code, programming my own trendlines with such behaviours.
I look forward to hear from you...
Thanks,
Comment