DislikedNo trade for me today, the box is too big... Tomorrow will be another day, a profitable one I hope.Ignored
London Open Breakout Strategy for GBPUSD 18 replies
GBPUSD Breakout Trading System 18 replies
15 min indicator on 5 min chart 3 replies
Backtesting w/ 1 min tick gap 0 replies
5 min forex with Oanda 11 replies
DislikedThere has been a little said about box size but I believe that a box of 50 pips or less has been mentioned as more reliable. Cain may have better guidance.Ignored
DislikedThere has been a little said about box size but I believe that a box of 50 pips or less has been mentioned ...Ignored
DislikedHi Bob,
Here's my chart - note I just add 10 pips either side of the HLIgnored
extern string periodBegin = "08:00";
extern string periodEnd = "08:10";
extern int Offset = 100;
extern double Lots = 0.05;
extern int Slippage = 3;
datetime TradeDate = TimeCurrent();
datetime TimeBegin, TimeEnd;
double PriceHigh, PriceLow;
int iBarBegin, iBarEnd;
TimeBegin = StrToTime(TimeToStr(TradeDate, TIME_DATE) + " " + periodBegin);
TimeEnd = StrToTime(TimeToStr(TradeDate, TIME_DATE) + " " + periodEnd);
iBarBegin = iBarShift(Symbol(), PERIOD_M5, TimeBegin, true);
iBarEnd = iBarShift(Symbol(), PERIOD_M5, TimeEnd, true);
PriceHigh = High[Highest(NULL, 0, MODE_HIGH, iBarBegin - iBarEnd, iBarEnd)];
PriceLow = Low [Lowest (NULL, 0, MODE_LOW , iBarBegin - iBarEnd, iBarEnd)];
int buyTicket = OrderSend(Symbol(),OP_BUYSTOP,Lots,PriceHigh + Offset*Point,Slippage,PriceLow + Offset*Point,PriceHigh + Offset*Point + (PriceHigh - PriceLow),"_BUY_",0,0,CLR_NONE);
if(buyTicket>0)
if(OrderSelect(buyTicket,SELECT_BY_TICKET,MODE_TRADES))
OrderPrint();
else
Print("Cannot send order because of : ",GetLastError());
int sellTicket = OrderSend(Symbol(),OP_SELLSTOP,Lots,PriceLow - Offset*Point,Slippage,PriceHigh - Offset*Point,PriceLow - Offset*Point - (PriceHigh - PriceLow),"_SELL_",0,0,CLR_NONE);
if(sellTicket>0)
if(OrderSelect(sellTicket,SELECT_BY_TICKET,MODE_TRADES))
OrderPrint();
else
Print("Cannot send order because of : ",GetLastError());
DislikedI'm not a good mql4 programmer so I'm only trying to test some trading strategies, especially box breakout.
I'd like to discuss with you the best way to implement Cain's strategy, so we will be able to backtest it carefully. Moreover, as a lot of you, I have a work and not so time to stay in front of a pc...Ignored