How to get complete order history (mt4)

326 views
Skip to first unread message

ka...@gmx.de

unread,
Dec 8, 2014, 12:33:19 PM12/8/14
to nj...@googlegroups.com
I'm using C#/MT4 and always get only a part of the history order list.

when using: "OrdersHistoryTotal() and iterating with OrderSelect(i, SelectionType.SELECT_BY_POS, SelectionPool.MODE_HISTORY)" I get always wrong results (only part of the history is returned).
But I would like to get the complete history. How to get it?

Btw. I didn't find any suitable setting within the terminal.ini file.

Roman Gerasimenko

unread,
Dec 9, 2014, 2:23:36 AM12/9/14
to nj...@googlegroups.com
By default mt4 terminal limits history loaded at startup.

To change it, copy c:\users\<user>\jfx_term\zero_term\config\terminal.ini to jfx_term\custom_term\config\terminal.ini (custom_term\config dirs to be added manually)

Find section [Settings] and add HistoryPeriod=7 under it.

HistoryPeriod=7 stays for "All" orders.

All terminals shall be stopped and .jfx_terminals directory cleaned before first run with a newHistoryPeriod parameter.

Example terminal.ini is attached.

--
You received this message because you are subscribed to the Google Groups "NJ4X Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nj4x+uns...@googlegroups.com.
To post to this group, send email to nj...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

terminal.ini
Reply all
Reply to author
Forward
0 new messages