[quote="александр витальевич"]Посмотрите знающие,что представляет вот эта сова.Сам ничего не понял,заранее благодарен.[/quote]
Этот советник торгует по заданному временному интервалу:
[size=85][code]extern int S = 15; // экперт пытается открыть позицию в пределах первых 30 секунд начала свечи
extern int HourStartTrade = 04; // Час начала обычной торговой сессии (simple trade)
extern int MinuteStartTrade = 59; // Минута начала обычной торговой сессии (simple trade)
extern int HourStopTrade = 18; // Час окончания обычной торговой сессии (simple trade)
extern int MinuteStopTrade = 59; // Минута окончания обычной торговой сессии (simple trade)
extern int MaxSpread = 20; // Максимально допустимый спред при открытии сделок[/code][/size]
Алгоритм работы следующий:
Если на таймфрейме который выставлен в пользовательской переменной "P":
[size=85][code]if (iOpen(Symbol(), P, 1) > iClose(Symbol(), P, 1)) // свеча медвед
KUDA = 1; // сэллим
if (iOpen(Symbol(), P, 1) < iClose(Symbol(), P, 1)) // свеча бычог
KUDA = 2; // баим
if (iOpen(Symbol(), P, 1) == iClose(Symbol(), P, 1)) // свеча ни бык ни медвед
KUDA = 0; // ничо не делаем ))) [/code][/size]
свеча медвежья, то сигнал будет считаться как на Sell. Если свечи бычьи сигнал будет считаться как на Buy. Если дожи, то не будет являться сигналом.
Позиции выставляются сеткой из отложников в промежутке 2 пункта пятизнака. Сразу на Buy и Sell
[size=85][code]
if (KUDA == 1 && ticketsell < 1 ) // условие сэлл
{
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00001,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00003,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00005,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00007,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00009,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00011,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00013,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00015,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00017,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00019,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00001,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00003,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00005,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00007,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00009,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00011,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00013,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00015,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00017,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00019,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
}
if (KUDA == 2 && ticketbuy < 1 ) // условие бай
{
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00001,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00003,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00005,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00007,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00009,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00011,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00013,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00015,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00017,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketbuy=OrderSend(Symbol(),OP_BUYSTOP,Lot,Ask+Y*Point-0.00019,slippage,Ask - SL*Point,Ask + TP*Point,"FS - 09",Magic,TimeCurrent()+EXP*60,Blue);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00001,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00003,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00005,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00007,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00009,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00011,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00013,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00015,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00017,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
ticketsell=OrderSend(Symbol(),OP_SELLSTOP,Lot,Bid - Y*Point+0.00019,slippage,Bid + SL*Point,Bid - TP*Point,"FS - 09",Magic,TimeCurrent() + EXP*60, Red);
}
[/code][/size]