Dao Thanh Tan / Publications
Forum
How to close all position trade at end of Week
Hi everyone! Now I want to send to all the method to close all positions trade at time end of weekness. Detail as below: void OnTick () { if (close_end_of_week()) { Close_allpending(symbol_index, POSITION_TYPE_SELL ); Close_allpending(symbol_index, POSITION_TYPE_BUY );