1.) allow for trading on multiple pairs/charts in same account
2.) User Variable TimeBegin & TimeEnd for (re)placing stop orders
3.) User Variable TimeDelete for deleting unexecuted orders at end of trading day.
on 5m GBPUSD data from 8/30/04 & 1m GBPUSD data from 6/16/04 (IBFX bid based) and the parameter set* attached, backtest (for what it's worth) returned the following:
*(save the parameter set to "Presets" & "Tester" Folders, then load through "F7, Inputs" and
"Expert Properties" for Chart & StrategyTester respectively.)
Bars in test 80524
Ticks modelled 1598148
Modelling quality 90.00%
Initial deposit 2000.00
Total net profit 3267.13
Gross profit 12393.42
Gross loss -9126.30
Profit factor 1.36
Expected payoff 5.29
Absolute drawdown 214.47
Maximal drawdown (%) 1046.72 (25.7%)
Total trades 618
Short positions (won %) 308 (62.99%)
Long positions (won %) 310 (59.35%)
Profit trades (% of total) 378 (61.17%)
Loss trades (% of total) 240 (38.83%)
profit trade 55.17
loss trade -85.00
profit trade 32.79
loss trade -38.03
consecutive wins (profit in money) 27 (904.23)
consecutive losses (loss in money) 8 (-422.00)
consecutive profit (count of wins) 904.23 (27)
consecutive loss (count of losses) -422.00 (8)
consecutive wins 5
consecutive losses 3
I noticed the parameter.set didn't get attached, so here's what to do...
in the code, modify
if(Hour()>TimeOpen... to... if(Hour()>=TimeOpen
(for each of the 6(six) OrderSend commands)
then in F7, inputs (or in StrategyTester, Expert Properties)...
everything else, default...
Is the data correct?
"If(Hour()>TimeOpen... to... if(Hour()>=TimeOpen
In your forward testing results that you posted to the Yahoo group, are you still using this (below) as the standard setting instead of 0, 18, 23?
I found an other version of this EA. May be it is the same which was already posted here. I do not know. The author tested it with defauls settings, m5, 7 pairs and 0.1 lot having results.
Modifications uploaded today by Todd.
New Version of Envelope ... refined, edited, will trade multiple pairs/charts in same account w/o conflict, will sendmail() trade results to email/sms address when trade closed. (DeleteOrders==true) will delete all open StopOrders, default=false. Double (variable)TimeDelete incorporated into OrderExpiration(). Use 0.4 EnvDeviation GBPUSD & 0.57 EURUSD.
An other version was updated.
For setup see this thread
sorry for all the updates, when i see something in the code that can be improved or streamlined i do it, but i'm not sure if it warrants a version number change. i too am testing on ibfx demo, defaults USD majors, and when the account expires i'll change the version number so that everyone can be sure to have the latest mod...
thanks for you patience, gl/gt
THX for this work
It was some very small bug in magicnumber as I understand correctly.
So, this envelope EA is the latest for 3.01.