b396 Posted October 21, 2022 Report Share Posted October 21, 2022 I would like to this script so that let us say I add 100 to my current position and I call 33% at 2% PT, it would recalculate all stops based on the added position. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted October 21, 2022 Report Share Posted October 21, 2022 Yes you can have one hotkey call another. However, what you're trying to do is a little trickier than that. Just because the order was submitted does not mean that it was executed or that position data was updated. Granted with IB it is pretty quick but still. You can accomplish this by kind of fudging it. By adding a small delay before calling the hotkey that will do the recalculate of the stops Quote Link to comment Share on other sites More sharing options...
b396 Posted October 21, 2022 Author Report Share Posted October 21, 2022 Is there PosOrderQtyChange event which can be used to run this script? crazy idea but still wanted to check with you. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted October 21, 2022 Report Share Posted October 21, 2022 No, there are no events that can trigger hotkeys, not unless you get into using the API. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.