Andrew Terhune / Publications
Forum
Track order that was closed with tp/sl?
I have the following code in mql4 and it is partially working but having an issue with order tracking. int ticket; void OnTick (){ ... not included code, setting variables, etc ... if (tenkan_sen < kijun_sen){ comment += "\nSHORT!" ; if ( OrderSelect (ticket,SELECT_BY_TICKET)