Samma 1 Posted March 26, 2024 (edited) Hi everyone, I'm stuck on this one. It has to do with how the hotkey calculates shares to update stop position share size. I'm trying to create two hotkey scripts: If long, add to an open position (e.g. +50%) and move stop to breakeven. If short, partial from an open position (e.g. -50%) and move stop to breakeven. Basically a buy % of position hotkey that works for both directions with a new breakeven stop. If long, reduce an open position (e.g. -50%) and move stop to breakeven. If short, add to an open position (e.g. +50%) and move stop to breakeven. Basically a sell % of position hotkey that works for both directions with a new breakeven stop. I'm hung up on the stop in the hotkey script. I think it has to do with the stop direction and share size (selling during a short position adds shares short as opposed to reduces position share size). Anyone have such a script? I've pored over Kyle's scripts but they are so complex, I'm a bit lost. Edited March 26, 2024 by Samma Share this post Link to post Share on other sites
peterB 325 Posted March 29, 2024 https://open.substack.com/pub/traderpeter/p/das-trader-advanced-hotkeys-part?r=1wujo4&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true 1 Share this post Link to post Share on other sites
Samma 1 Posted April 5, 2024 Thanks Peter, looks to be a wealth of knowledge on there but exactly what I wanted. I'd like to learn how to code my own hotkeys. Share this post Link to post Share on other sites