I have tested 2 times with real IB account and got the same result. If you use "Assign initial position at broker" and assign a non zero initial position, the setpercenttrailing will assume the stop trailing price reach immediately and a market order with exercise immediately.
I think this is an bug since no other code in the signal is exercise yet. Also, my parameters for setpercenttrailing is constant variable and not calculated parameters. Therefore, unlikely a programming error.
Questions about MultiCharts and user contributed studies.
2 posts • Page 1 of 1