I have a strategy that sets stops and targets based on lines drawn on a chart. I have a routine that check that these will not trigger unwanted orders when the stargegy starts by setting the lines above / below the current notional value of a pairs trade.
Unfortunately, the various operations do not appear to be completed in the correct order. I think this is a syncronising problem and I need to wait until one routine is complete before initiatin the next. Can someone please provide an example of how this can be done. I don't really undestand the example provided in the help.
Thanks
Ian
Comment