I have a strategy that execute both Long and Short trades in parallel. So even if a Long trade is already running and the price go in the opposite direction, the strategy execute another short trade while the Long trade is still running.
I want that when a trade is running, the opposite trade execute with double the normal number of contracts.
So let's say normally each trade, Long or Short, open with 10 contracts. this is when there is no opposite trading already running.
But if a Long trade is running, I want the opposite trade, Short trade to open with 20 contracts instead of 10 contracts.
and the opposite as well, if a Short trade is already running, the Long trade opens with 20 contracts instead of just 10 contracts.
How can I achieve this?
Thank you
Comment