- #2,935
- Edited 3:17pm Jan 20, 2009 11:39am | Edited 3:17pm
- | Joined Nov 2006 | Status: Trader | 1,143 Posts
24 hours in a day – 24 bottles of beer in a case – Coincidence? I think not
Trading system using relative strength 2,816 replies
BASKET TRADE Management: Using multiple trade management EA's on basket trades 11 replies
Basket Knights - A Basket Trading Round Table 1,313 replies
Trading System Using Relative Strength-Part 2 1,499 replies
My version of a relative strength basket 2 replies
DislikedSandy,
You need to delete the "m" instead of blank it out. Otherwise the program is looking for "EURJPY " instead of "EUYJPY".Ignored
DislikedEddie.
You should build in time/session filters:
if Basket == "JPY" && TimeHour(TimeCurrent()) >= XX && TimeHour(TimeCurrent()) <= XX
etc.
So, dont trade JPY basket during Asia session etc etc.
Yes, this will cut down the number of trades BUT your trades should work much better with allot less drawdown.Ignored
Please correct me if I am wrong.
__________________________________________________________
V2c is attached. Changes are mostly cosmetic, to the Daily Cross user feedback screen. I have coded a routine to tell the EA not to go chasing trades with pairs the broker does not offer. Thanks to matrixebiz for the method.
DC has made a brilliant start. I needs some code to stop the EA placing a new trade soon after an old one closes - a No_Trade_Fot_X_hours thingy. Not the foggiest idea how to do this, so I need to think about it. Suggestions from coders who have a method already will be much appreciated.
At the mo, I am managing the trades with MTTM set to jump the stops every +100 pips. This is probably far too tight for daily trades, so I think I will double this figure. If the DC method proves successful, I will think about porting across some of the code from MPTM to make the EA a complete auto-trader in this method also.
DislikedThanks to matrixebiz for the method.
DC has made a brilliant start. I needs some code to stop the EA placing a new trade soon after an old one closes - a No_Trade_Fot_X_hours thingy. Not the foggiest idea how to do this, so I need to think about it. Suggestions from coders who have a method already will be much appreciated.Ignored
extern int No_Trade_For_X_Bars = 2;
bool DecideToOpenTrade;
.........
DecideToOpenTrade = true;
.........
DesideToOpen();
if (DecideToOpenTrade) { ......rest of order code.........}
..........
void DesideToOpen()
//----------------------------------------------------------------+
{
int total = OrdersTotal();
if (total > 0)
{
for(int cnt=0;cnt<total;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS))
{
if(OrderComment() == MagicNumber+"") DecideToOpenTrade = false;// in case trades has already opened and closed within the candle
}
}
}
int histotal = OrdersHistoryTotal();
if (histotal > 0)
{
for(cnt=0;cnt<histotal;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY))
{
if(OrderComment() == MagicNumber+"")
{
for (int b=0;b<No_Trade_Fot_X_Bars;b++)
if (Time[b] <= OrderOpenTime()) DecideToOpenTrade = false;// if b=0, don't open a new position if we're still on the same candle
}
}
}
}
}
//----------------------------------------------------------------+ DislikedThanks for the credit![]()
Anyway try this for your No_Trade_Fot_X_hours thingy
Maybe change to No_Trade_For_X_Bars then call this before your OrderCall;
Let me know if you need a hand.Ignored
DislikedSteve.
Yes, you are spot on with your suggestion, so:
Asia session = dont trade JPY, AUD, NZD
Euro session = dont trade EUR, GBP, CHF, CAD
USA session = dont trade USD
I built this into my EA and the results are VERY good, so far.Ignored
DislikedSteve.
This is a very good point and i am sure will be open to debate. Personally i have done it at currency level due to the fact that trading sessions overlap.
i.e. EURUSD overlaps London/New York.Ignored