This is the ATM I want to create:
When I open a trade (For example a LONG trade) I want to open istantly 3 pendig buy stop order each one 16 tick above the other. To be clear lets assume that I open a trade at price of 1000.00. I want a buy order at 1004.00 one at 1008.00 and one at 1012.00 (assuming that 4 poits are 16 ticks like SP).
When I open my trade I want a stop loss of 16 ticks (in the example above wold be at 996.00) but everytime a buy order is filled I want my stop loss to move a break even. In this case the break even is the average price: if I open a 1000 and 1004 is filled I want my stop loss to move from 996 to 1002, when 1008 is filled the stop loss should move at 1004 and so on.
Of corse the same would be for a SHORT trade.
Can you please suggest me some references or code in order to start?
Comment