Discussion about this post

User's avatar
new trader's avatar

Hi Peter,

coming from part 35, there is a correct math formula to calculate the adding size, I wrote my code by my own and tested hundreds of times and it's no problem. I did a careful look into your code, and found your math formula used a wrong variable and thus flawed. Since I'm not a subscriber I can't DM you, so I'll leave it here and hope you can see:

for example adding long position, the correct math using your way should be

{RISK - (CURRENT POS * AVG PRICE - CURRENT POS * YOUR_NEW_STOP_PRICE}/{CURRENT PRICE - NEW STOP}

the difference is this YOUR_NEW_STOP_PRICE part, and the hotkey shall work again. hope it helps!

Expand full comment
Komal's avatar

Hello Peter,

So if I understand correctly, this is very similar to the Free roll hotkey from part 2, but in free roll along with adding more we are moving stop loss to breakeven. In this case we are adding more but also specifying the new stop loss risk dollar amount (which is different than breakeven) . Can you please confirm.

Expand full comment
17 more comments...

No posts