Hello, all.
I’m still trying to develop some automation that bypasses the whole "right-click, select the order, go to ‘Attach to Indicator’, click ‘Properties’, select the plot, click the checkbox and then click OK" nonsense. I have searched and found something on the old forum that claims to virtualize this, but on my chart it doesn’t appear to do anything at all.
Even if it did, I can tell by reading the code that what it’s trying to do is just duplicate the process that the whole slew of commands I listed earlier sets up, minus the checkbox. It seems to just act as another indicator that monitors the change in the value of one plot, and changes the order price based on that plot. But, like I said, it doesn’t even do that on my chart.
Anyway, I have my ATM set up to create three TPs and three corresponding SLs. And that’s it. There are no auto-BEs or trailing stop parameters, because I want the SLs to be linked to an indicator, which I’m tired of having to do manually.
Now, I’ve already written an indicator that reproduces the behavior of the checkbox, so all I need is a button that links the SLs (that the ATM placed, but should now be totally detached from because no other function was asked of the ATM beyond that) to that indicator’s plot.
I would have two buttons, one that operates when I’m in long, and one that operates when I’m short.
Any ideas?
P.S. I haven’t tried doing this with Strategy Builder because, frankly, it seems way too complicated, and I was a Computer Science minor in college, so writing my own code is often easier than trying to prybar my ideas into someone else’s menu screen.
Thank you in advance!
