Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2007, 11:30 AM
eden159's Avatar
Member
 
Join Date: Jul 2006
Posts: 43
eden159 is on a distinguished road
How to get all history orders?

I want to know how I can get all orders from the account history. The HistoryTotal() function only return the number of history orders that are loaded in the terminal. Is there a way to load ALL orders - even the ones that are not loaded in the terminal?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 09-18-2007, 12:27 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by eden159 View Post
I want to know how I can get all orders from the account history. The HistoryTotal() function only return the number of history orders that are loaded in the terminal. Is there a way to load ALL orders - even the ones that are not loaded in the terminal?
To my knowledge, you have to save all orders to a file yourself as they are closed, cos' as you suggested, MT does the same - store them locally and 'forgets' them periodically. Probably whenever it's closed down and re-started but don't quote me on this.

At least, this is what I have being doing!...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 09-18-2007, 04:59 PM
eden159's Avatar
Member
 
Join Date: Jul 2006
Posts: 43
eden159 is on a distinguished road
Isn't there a way to go through all history orders if you haven't saved them to file before that? A function I don't know of?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 09-18-2007, 07:07 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by eden159 View Post
Isn't there a way to go through all history orders if you haven't saved them to file before that? A function I don't know of?
The only available 'historical' Order function is 'OrdersHistoryTotal()' function which returns the number of closed orders that MT loads into the terminal - you can access these with the 'Orderselect' function and the 'MODE_HISTORY' switch.

In the MT manual, it states that you can change this number in the 'Accounts History' tab - damned if I can find it, even on my real account!

I would be very surprised if the Brokers actually store gazillions of demo orders on their servers though. All real closed orders should be accessible, but then few will have huge numbers of them...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 09-19-2007, 07:04 AM
eden159's Avatar
Member
 
Join Date: Jul 2006
Posts: 43
eden159 is on a distinguished road
Thanks guys for the answers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-19-2007, 07:29 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Quote:
Originally Posted by omelette View Post
The only available 'historical' Order function is 'OrdersHistoryTotal()' function which returns the number of closed orders that MT loads into the terminal - you can access these with the 'Orderselect' function and the 'MODE_HISTORY' switch.

In the MT manual, it states that you can change this number in the 'Accounts History' tab - damned if I can find it, even on my real account!

I would be very surprised if the Brokers actually store gazillions of demo orders on their servers though. All real closed orders should be accessible, but then few will have huge numbers of them...
All orders are saved under the next tab after the closed orders. Right click and choose "all history". I have history for the last 4 months on one of my demos.
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 09-19-2007, 12:24 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by Shinigami View Post
All orders are saved under the next tab after the closed orders. Right click and choose "all history". I have history for the last 4 months on one of my demos.
I always assumed that just effected the number of days displayed in the report. From reading the MT manual you are led to believe that this historical data is d/l from the brokers server but I have one EA running for more than a year with North Finance (doesn't 'reset' accounts) and selecting 'All History' doesn't add to the month or so that's available.

Probably a limit set by the broker...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
meta history!! connecting4less Metatrader 4 3 06-27-2007 04:45 AM
modify orders and close pending orders bkgridley Questions 8 05-23-2007 10:49 PM
History Data dune22 Metatrader 4 2 04-14-2007 08:41 PM
MetaTrader History XOLOSIS Metatrader 4 4 03-11-2007 02:34 PM
History EACAN Questions 5 06-18-2006 11:18 AM


All times are GMT. The time now is 01:39 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.