My strategy is to open long orders upon getting the entry signal and trail stop for each open order so that the stop for each order is independently trailed.
I am guessing we have to loop through the open orders on each incoming tick and use setstoploss to update stop for each open order.
Could someone please help me with a pseudo code for this?
Comment