Quote:
Originally Posted by ElectricSavant
Now all that it needs is a field to put in a start date for those with live accounts that do not want to count history before a certain time.
|
Beware ! this might not work exactly how you want it to
For some reason known only to the programmer at Metatrader an EA can only access the history that is displayed in the history tab. So for example if you set a custom period to display todays trades, and then you attach the EA and request all trades within the last 3 months, then you'll only get todays trades cos they are the only ones being displayed in history !
You therefore need to control the time period using the custom period facility, if you want to analyse trades from the 28th November last year, then set the custom period from that date to today.
Clearly if the history tab is showing all trades then specifying a start date would work, but you need to be aware that any changes to the custom period is going to effect the EA, just something to watch out for, Ive fallen foul of it a few times and its really annoying !