i added your ea to 4 chart daily time frame but always the trade is off in 15 to 15:59 and dont open any position.
thanks
What will be the swap rate for Friday after triple swap? 6 replies
Close orders EA for hedging system 8 replies
Simple Hedging system for newbies 27 replies
Swap Close, Swap Open ? 3 replies
Hedging System 10 replies
DislikedI tested this strategy with different real scenarios. And find out an optimal lot size, changing it by iteration.
I think results are good enough in the medium/long term, based on empiric data.
These are the rules:
- Initial Balance 1000
- Swap of InterbankFX for mini accounts.
- Margin leverage 1/200.
- Mini lot size 10k.
- Use max margin as it is possible (84%). I used $844 on margin of a total balance of $1000. (Yes 84%).
- Used open price for the test. In the 2º scenario the worst price for the strategy was used.
Here are the tests:
1º Scenario: The chinese Tsunami (02/25/07 - 03/05/07)
OP Currency Date 1 - Date 2 Pips USD/PIP LOTS P/L Ints.
B GBPJPY 237.68 224.52 -1316 0.0822 3.75 -405.51 61.65
S CHFJPY 98.24 95.44 280 0.0822 7.50 172.57 -20.10
S GBPUSD 1.9640 1.9338 302 0.1 3.75 113.25 0.90
S USDCHF 1.2311 1.2156 155 0.0813 1.88 23.61 -14.10
TOTALS -579 -96.08 28.35
Net P/L: -67,73
2º Scenario: GBP JPY from the top to the depths (01/23/07 - 03/05-07)
OP Currency Date 1 - Date 2 Pips USD/PIP LOTS P/L Ints.
B GBPJPY 240.37 221.05 -1932 0.0822 3.75 -595.32 315.95
S CHFJPY 97.32 95.46 186 0.0822 7.50 114.63 -103.01
S GBPUSD 1.9768 1.9338 430 0.1 3.75 161.25 4.61
S USDCHF 1.2311 1.2243 248 0.0813 1.88 37.78 -72.26
TOTALS -1068 -96.08 145.29
Net P/L: -136.36
3º Scenario: From scenario 2º to date (01/23/07 - 05/25/07).
OP Currency Date 1 - Date 2 Pips USD/PIP LOTS P/L Ints.
B GBPJPY 240.37 240.71 34 0.0822 3.75 10.48 940.16
S CHFJPY 97.32 98.89 -157 0.0822 7.50 -96.76 -306.53
S GBPUSD 1.9768 1.9847 -79 0.1 3.75 -29.63 13.73
S USDCHF 1.2311 1.2278 213 0.0813 1.88 32.45 -215.03
TOTALS 11 -83.46 432.34
Net P/L: +348.88 (104.38% annual)
I use GBPJPY as the base currency to determine lot size of the others.
GBPJPY = 1 lot
CHFJPY = 2 * GBPJPY lots.
GBPUSD = GBPJYP lots.
USDCHF = 0.5 * GBPJPY lots.
Finally, I made a 4º test, in a year period. But prices are backward. I used prices of 05/25/07 as initial prices, and 05/25/06 as actual (final) prices.
4º scenario: backward (05/25/07 - 05/25/06)
OP Currency Date 1 - Date 2 Pips USD/PIP LOTS P/L Ints.
B GBPJPY 240.71 196.35 -4436 0.0822 3.75 -1366.90 2812.78
S CHFJPY 98.89 92.64 625 0.0822 7.50 385.19 -917.06
S GBPUSD 1.9847 1.8695 1125 0.1 3.75 432 41.06
S USDCHF 1.2278 1.2169 109 0.0813 1.88 16.61 -643.31
TOTALS -2550 -533.10 1293.47
Net P/L: +760.37 (76% annual).
In a wide concept of hedge, this is fully hedge. Hedge isn't strictly a mathematical matter. It also has to give the strategy resistance to the different volatility, concomitant with a positive swap return.
Thanks neo1001 for your ideas.
Rama
Ignored
DislikedI think my way of calculating lot sizes may differ from yours 'coz I'll double USDCHF, that is 2*GBPJPY lots. This is because if you see the average daily range (number of pips moves from top to bottom), you'll find that GBPJPY often moves 2 fold or more than USDCHF, and since their pip value are almost the same, 8.2 and 8.3, the dollar value difference at the end will be huge! At least 2 times.
So if GBPJPY rises, you sure can make a lot of money, but if it drops, it's also a sure to lose.
My calculation of a safer hedge will be
GBPJPY 1 Lot
CHFJPY 3 Lot
GBPUSD 1.5 Lot
USDCHF 2 Lot
The problem is, is you use these lot sizes, you end up lose in swaps...but you may make profit of 1-3% from time to time.
More to go later with more real life test.Ignored
DislikedHi Carllos, your EA is great but is there any diferrent between 2Day EA and 2Day EA V2.0b?
Thanks a lotIgnored
DislikedI installed the 2day EA on all 4 charts with the default settings, and it has not placed a single order in last 14 hours. Do I have to change any input parameters?Ignored
DislikedI can't get this to work....I'm thinking I'm putting in the wrong hour. I'm trying to test it now to see it in action btw.
extern string TM="Turn TradeMode=true to trade";
extern bool TradeMode = true; //if you want to trade change it to true
extern string R="Round 0: Round=0 (1Lot); Round=1,2.. (0.1Lot)";
extern int Round=0;
extern string Lot0="Number lots on Round 0";
extern double lotsini=1.0;
extern string Lot10="Number lots on Rounds 1-10";
extern double lots=1;
extern string Time2Go="Time to place orders for new Round";
extern int hr=16;
extern int min1=25;
extern int min2=59;
extern string StopRound="Stop=1pip after 100 pips profit";
extern bool RoundStopMode = true;
extern int GBP_pips_Profit = 100;
extern int GBP_pips_Stop = 1;Ignored
DislikedWell, I tried Market Time, Local Time, and Broker Time.
Nothing to it to trigger.
Yes it was turned "on"
Ignored