can any one help me rewrite the basket EA to trade only 3 pair eur/usd usd/jpy and eur/jpy and put a total sl option in it?
BASKET TRADE Management: Using multiple trade management EA's on basket trades 11 replies
Basket Knights - A Basket Trading Round Table 1,313 replies
Relative Strength Basket Trading System 3,479 replies
Simple Basket Trading system 61 replies
TMS basket: Dashboard for a basket of MA-Filtered RSI Signals 135 replies
DislikedFascinating.
On a somwehat related topic, I'm still trying to get my arms around my Tadawulfx demo account parameters and whether they accurately represent how a live account would be set up....Ignored
Dislikedfrazerd,
you are missing right parenthesis in your if statement at the end after SymbolArray.
p777mInserted Codeif (AllSymbolTradesInProfit(SymbolArray[i]) && !SymbolMarked(SymbolArray[i]))
Ignored
for (i = Pair1idx; i <= Pair6idx; i++)
{
if (SymbolArray[i] == BiggestPhantomWinnerSymbol &&
AllSymbolTradesInProfit(SymbolArray[i]) &&
!SymbolMarked(SymbolArray[i]))
{
if (i < 3)
{
if (iHigh(SymbolArray[i], PERIOD_M5, 2) > iHigh(SymbolArray[i], PERIOD_M5, 3) && // Check last 15 minutes trend continuation
iHigh(SymbolArray[i], PERIOD_M5, 1) > iHigh(SymbolArray[i], PERIOD_M5, 2) && // Check last 10 minutes trend continuation
MarketInfo(SymbolArray[i], MODE_ASK) > iHigh(SymbolArray[i], PERIOD_M5, 1) && // Last 5 minutes Ask Check for BUYS
iClose(SymbolArray[i], PERIOD_M5, 1) > iHigh(SymbolArray[i], PERIOD_M5, iHighest(SymbolArray[i], PERIOD_M5, MODE_HIGH, 23, 2)))
// Check for 2 hour range breakout
{
Comment("Adding a " + SymbolArray[i] + " buy trade...");
Print("Adding a " + SymbolArray[i] + " long.");
Ticket = OrderSend(SymbolArray[i],OP_BUY,UseLots,MarketInfo(SymbolArray[i], MODE_ASK),
Slippage,0,0,NULL,MagicNumber,Blue);
if (Ticket > 0) MarkSymbolAdded(SymbolArray[i]);
Sleep(100);
}
}
else
// if (i >= 3)
{
if (iLow(SymbolArray[i], PERIOD_M5, 2) < iLow(SymbolArray[i], PERIOD_M5, 3) && // Check last 15 minutes trend continuation
iLow(SymbolArray[i], PERIOD_M5, 1) < iLow(SymbolArray[i], PERIOD_M5, 2) && // Check last 10 minutes trend continuation
MarketInfo(SymbolArray[i], MODE_BID) < iLow(SymbolArray[i], PERIOD_M5, 1) && // Last 5 minutes Bid Check for SELLS
iClose(SymbolArray[i], PERIOD_M5, 1) < iLow(SymbolArray[i], PERIOD_M5, iLowest(SymbolArray[i], PERIOD_M5, MODE_LOW, 23, 2)))
// Check for 2 hour range breakout
{
Comment("Adding a " + SymbolArray[i] + " sell trade...");
Print("Adding a " + SymbolArray[i] + " short.");
Ticket = OrderSend(SymbolArray[i],OP_SELL,UseLots,MarketInfo(SymbolArray[i], MODE_BID),
Slippage,0,0,NULL,MagicNumber,Red);
if (Ticket > 0) MarkSymbolAdded(SymbolArray[i]);
Sleep(100);
}
}
}
} Dislikedremove the ea, hit f3 and delete all the global variables stored there. then reattach the eaIgnored
Dislikedother people forward demo from Steve Hopwood's T101 basket trading auto-trader
http://www.mt4i.com/users/bwbb_demo/stats
http://www.myfxbook.com/members/lion...bfx-bwbb/61493Ignored
DislikedAll of these except 02a have closed since market opened last night... 03 and 03b have closed twice.
All of these are now set at 0.4 MMTU and 0.25 PP.
I like the way these are working with smaller PP. Probably not as profitable in the long run, but no large DDs.Ignored
DislikedI don't think the EA will be effective with a stop loss, this is not a "normal" strategyIgnored