one more small question re: OrderSelect(int handle)

 

Hi again: getch2 was very kind in replying to my earlier question, just one more thing and think I will be set:


Are there any sample calls to API functions, not just header defs? I have not had to use a "handle" when coding in MQ4. For example, this call:

ticketno = (OrderSelect(1,SELECT_BY_POS,MODE_TRADES)) for mq4

does not use a handle in getting the first order. In this example, the first param, 1, refers to the position in the array, is not a "handle".


So, how do I call

"int OrderGet_MT4( const int handle, const int index, const int select, const int pool );"

using this header? I don't know what to supply for the handle value, or how or when the handle is instantiated. So, what value do I supply for the handle?


Thanks once again everyone.


jhhcoder