Hello men,
Would you understand how to set expiration date on a pending order in an EA.
OrderSend(Symbol(),OP_SELLLIMIT,1,xxxx,1,xxxx 20*Point,xxxx-20*Point,NULL,0,(This is the place where the expiration date supposed to be),CLR_NONE);
The issue is that I don't really understand how to put the datetime variable here.
The instance is that all order within my EA is opened at 8:00 (pending order), and that I want the order to be expired if it's not executed by 12:00. How do I set the expiration date?