I want automatize my open positions management by coding.
I usually use an ATM strategy to set a predefined stop loss and take profit when I open a position. Then I manually adjust the stop loss and take profit added for the ATM strategy to a different price according to my own risk-reward ratio for that specific trade
Let's say I opened a position using a risk:reward 1:5
When the price reaches 1:2+ I move my stop to 1:2
When the price reaches 1:3+ I move my stop to 1:3
When the price reaches 1:4+ I move my stop to 1:4
I do it until the price reaches my target or touches my stop loss
By coding my input should be my initial/moved stop loss or stop loss where it is negative acording my entry. Where it should act as a trailing stop then the price reaches 1:2+, 1:3+, etc
Can someone address to documentation or methods related to an ATM or stop loss?
Is it posible control/adjust my stop loss when the positions are place manually and not from an automatized strategy ?
Regards,
Ale
Comment