Скачать MetaTrader 5

у советника не работает штатный стоп-лосс, вставтье сюда корректный стоп-лосс, пожалуйста!

Авторизуйтесь или зарегистрируйтесь, чтобы добавить комментарий
Документация доступна в CHM и PDF. Скачай в удобном тебе виде!
Forex Trader
114255
Forex Trader 2007.06.29 17:00 
у советника не работает штатный стоп-лосс, вставтье сюда корректный стоп-лосс, пожалуйста!
/*[[
Name := TDSGlobal
Author := Copyright © 2005 Bob O'Brien / Barcode
Link :=
Notes := Based on Alexander Elder's Triple Screen system. To be run only on any chart.
Lots := 1
Stop Loss := 0
Take Profit := 100
Trailing Stop := 60
]]*/
//+------------------------------------------------------------------+
//| External Variables |
//+------------------------------------------------------------------+

extern int Lots = 1;
extern int TakeProfit = 100;
extern int Stoploss = 0;
extern int TrailingStop = 60;
extern int Slippage=5; // Slippage
extern int StopYear=2005;
extern int MM=0,Leverage=1,AcctSize=10000;

int BuyEntryOrderTicket=0,SellEntryOrderTicket=0,cnt=0,total=0;

double MacdCurrent=0, MacdPrevious=0, MacdPrevious2=0, Direction=0, OsMAPrevious=0, OsMAPrevious2=0, OsMADirection=0;

double newbar=0,PrevDay=0,PrevMonth=0,PrevYear=0,PrevCurtime=0;

double PriceOpen=0; // Price Open


bool First=True;

double TradesThisSymbol=0;
double ForcePos=0, ForceNeg=0, Force=0,NewPrice=0;
double StartMinute1=0,EndMinute1=0,StartMinute2=0,EndMinute2=0,StartMinute3=0,EndMinute3=0;
double StartMinute4=0,EndMinute4=0,StartMinute5=0,EndMinute5=0,StartMinute6=0,EndMinute6=0;
double StartMinute7=0,EndMinute7=0,DummyField=0;

int start()
{

Comment("TSD for MT4 ver beta 0.2 - DO NOT USE WITH REAL MONEY YET",
"\n",
"\n","Weekly MacdPrevious = ",MacdPrevious," Weekly OsMAPrevious = ",OsMAPrevious,
"\n","Weekly MacdPrevious2 = ",MacdPrevious2," Weekly OsMAPrevious2 = ",OsMAPrevious2,
"\n","Weekly Direction = ",Direction," Weekly OsMADirection = ",OsMADirection,
"\n",
"\n","Daily Force = ",Force,
"\n","Is Daily Force Bullish = ",ForcePos,
"\n","Is Daily Force Bearish = ",ForceNeg,
"\n",
"\n","Total Orders = ",total,
"\n","Trades this Symbol(",Symbol(),") = ",TradesThisSymbol,
"\n",
"\n","New Bar Time is ",TimeToStr(newbar),
"\n",
"\n","Daily High[1] = ",iHigh(NULL,PERIOD_D1,1),
"\n","Daily High[2] = ",iHigh(NULL,PERIOD_D1,2),
"\n","Daily Low[1] = ",iLow(NULL,PERIOD_D1,1),
"\n","Daily Low[2] = ",iLow(NULL,PERIOD_D1,2),
"\n",AccountBalance(),
"\n",(AccountEquity()-AccountBalance()),
"\n","Current Ask Price + 16 pips = ",Ask+(16*Point),
"\n","Current Bid Price - 16 pips = ",Bid-(16*Point));



total=OrdersTotal();
TradesThisSymbol=0;
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

if(OrderSymbol()==Symbol())
{
TradesThisSymbol ++;
} // close for if(OrderSymbol()==Symbol())
} // close for for(cnt=0;cnt<total;cnt++)






MacdPrevious = iMACD(NULL,10080,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
MacdPrevious2 = iMACD(NULL,10080,12,26,9,PRICE_CLOSE,MODE_MAIN,2);

OsMAPrevious = iOsMA(NULL,10080,12,26,9,PRICE_CLOSE,1);
OsMAPrevious2 = iOsMA(NULL,10080,12,26,9,PRICE_CLOSE,2);

Force = iForce(NULL,1440,2,MODE_EMA,PRICE_CLOSE,1);
ForcePos = iForce(NULL,1440,2,MODE_EMA,PRICE_CLOSE,1) > 0;
ForceNeg = iForce(NULL,1440,2,MODE_EMA,PRICE_CLOSE,1) < 0;


if (MacdPrevious > MacdPrevious2) Direction = 1;
if (MacdPrevious < MacdPrevious2) Direction = -1;
if (MacdPrevious == MacdPrevious2) Direction = 0;

if (OsMAPrevious > OsMAPrevious2) OsMADirection = 1;
if (OsMAPrevious < OsMAPrevious2) OsMADirection = -1;
if (OsMAPrevious == OsMAPrevious2) OsMADirection = 0;




// Select a range of minutes in the day to start trading based on the currency pair.
// This is to stop collisions occurring when 2 or more currencies set orders at the same time.

if(Symbol() == "USDCHF")
{
StartMinute1 = 0;
EndMinute1 = 1;
StartMinute2 = 8;
EndMinute2 = 9;
StartMinute3 = 16;
EndMinute3 = 17;
StartMinute4 = 24;
EndMinute4 = 25;
StartMinute5 = 32;
EndMinute5 = 33;
StartMinute6 = 40;
EndMinute6 = 41;
StartMinute7 = 48;
EndMinute7 = 49;
} // close for if(Symbol() == "USDCHF")
if(Symbol() == "GBPUSD")
{
StartMinute1 = 2;
EndMinute1 = 3;
StartMinute2 = 10;
EndMinute2 = 11;
StartMinute3 = 18;
EndMinute3 = 19;
StartMinute4 = 26;
EndMinute4 = 27;
StartMinute5 = 34;
EndMinute5 = 35;
StartMinute6 = 42;
EndMinute6 = 43;
StartMinute7 = 50;
EndMinute7 = 51;
} // close for if(Symbol() == "GBPUSD")
if(Symbol() == "USDJPY")
{
StartMinute1 = 4;
EndMinute1 = 5;
StartMinute2 = 12;
EndMinute2 = 13;
StartMinute3 = 20;
EndMinute3 = 21;
StartMinute4 = 28;
EndMinute4 = 29;
StartMinute5 = 36;
EndMinute5 = 37;
StartMinute6 = 44;
EndMinute6 = 45;
StartMinute7 = 52;
EndMinute7 = 53;
} //close for if(Symbol() == "USDJPY")
if(Symbol() == "EURUSD")
{
StartMinute1 = 6;
EndMinute1 = 7;
StartMinute2 = 14;
EndMinute2 = 15;
StartMinute3 = 22;
EndMinute3 = 23;
StartMinute4 = 30;
EndMinute4 = 31;
StartMinute5 = 38;
EndMinute5 = 39;
StartMinute6 = 46;
EndMinute6 = 47;
StartMinute7 = 54;
EndMinute7 = 59;
} // close for if(Symbol() == "EURUSD")



if( (Minute() >= StartMinute1 && Minute() <= EndMinute1) ||
(Minute() >= StartMinute2 && Minute() <= EndMinute2) ||
(Minute() >= StartMinute3 && Minute() <= EndMinute3) ||
(Minute() >= StartMinute4 && Minute() <= EndMinute4) ||
(Minute() >= StartMinute5 && Minute() <= EndMinute5) ||
(Minute() >= StartMinute6 && Minute() <= EndMinute6) ||
(Minute() >= StartMinute7 && Minute() <= EndMinute7) )
{
DummyField = 0; // dummy statement because MT will not allow me to use a continue statement
} // close for LARGE if statement
else return(0);

/////////////////////////////////////////////////
// Process the next bar details
/////////////////////////////////////////////////

if (newbar != Time[0])
{
newbar = Time[0];

if(TradesThisSymbol < 1)
{

if(OsMADirection == 1 && ForceNeg)
{
PriceOpen = iHigh(NULL,PERIOD_D1,1) + 1 * Point; // Buy 1 point above high of previous candle
if(PriceOpen > (Ask + 16 * Point)) // Check if buy price is a least 16 points > Ask
{
BuyEntryOrderTicket=OrderSend(Symbol(),OP_BUYSTOP,Lots,PriceOpen,Slippage,iLow(NULL,PERIOD_D1,1) - 1 * Point,PriceOpen + TakeProfit * Point,"Buy Entry Order placed at "+CurTime(),0,0,Green);
return(0);

} // close for if(PriceOpen > (Ask + 16 * Point))
else
{
NewPrice = Ask + 16 * Point;
BuyEntryOrderTicket=OrderSend(Symbol(),OP_BUYSTOP,Lots,NewPrice,Slippage,iLow(NULL,PERIOD_D1,1) - 1 * Point,NewPrice + TakeProfit * Point,"Buy Entry Order placed at "+CurTime(),0,0,Green);
return(0);
} // close for else statement
} // close for if(Direction == 1 && ForceNeg)


if(OsMADirection == -1 && ForcePos)
{
PriceOpen = iLow(NULL,PERIOD_D1,1) - 1 * Point;
if(PriceOpen < (Bid - 16 * Point)) // Check if buy price is a least 16 points < Bid
{
SellEntryOrderTicket=OrderSend(Symbol(),OP_SELLSTOP,Lots,PriceOpen,Slippage,iHigh(NULL,PERIOD_D1,1) + 1 * Point,PriceOpen - TakeProfit * Point,"Sell Entry Order placed at "+CurTime(),0,0,Green);
return(0);
} // close for if(PriceOpen < (Bid - 16 * Point))
else
{
NewPrice = Bid - 16 * Point;
SellEntryOrderTicket=OrderSend(Symbol(),OP_SELLSTOP,Lots,NewPrice,Slippage,iHigh(NULL,PERIOD_D1,1) + 1 * Point,NewPrice - TakeProfit * Point,"Sell Entry Order placed at "+CurTime(),0,0,Green);
return(0);
} // close for else statement

} // close for if(Direction == -1 && ForcePos)
} //Close of if(TradesThisSymbol < 1)


/////////////////////////////////////////////////
// Pending Order Management
/////////////////////////////////////////////////

if(TradesThisSymbol > 0)
{
total=OrdersTotal();
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

if(OrderSymbol()==Symbol() && OrderType()==OP_BUYSTOP)
{

if(OsMADirection == -1)
{
OrderDelete(OrderTicket());
return(0);
} // close for if(Direction == -1)
} // close for if(OrderSymbol()==Symbol() && OrderType()==OP_BUYSTOP)

if(OrderSymbol()==Symbol() && OrderType()==OP_SELLSTOP)
{

if(OsMADirection == 1)
{
OrderDelete(OrderTicket());
return(0);
} //close for if(Direction == 1)
} //close for if(OrderSymbol()==Symbol() && OrderType()==OP_SELLSTOP)


if(OrderSymbol()==Symbol() && OrderType()==OP_BUYSTOP)
{
if(iHigh(NULL,PERIOD_D1,1) < iHigh(NULL,PERIOD_D1,2))
{
if(iHigh(NULL,PERIOD_D1,1) > (Ask + 16 * Point))
{
OrderModify(OrderTicket(),iHigh(NULL,PERIOD_D1,1) + 1 * Point,iLow(NULL,PERIOD_D1,1) - 1 * Point,OrderTakeProfit(),0,Cyan);
return(0);
} //close for if(iHigh(NULL,PERIOD_D1,1) > (Ask + 16 * Point))
else
{
OrderModify(OrderTicket(),Ask + 16 * Point,iLow(NULL,PERIOD_D1,1) - 1 * Point,OrderTakeProfit(),0,Cyan);
return(0);

} //close for else statement
} //close for if(iHigh(NULL,PERIOD_D1,1) < iHigh(NULL,PERIOD_D1,2))
} //close for if(OrderSymbol()==Symbol() && OrderType()==OP_BUYSTOP)

if(OrderSymbol()==Symbol() && OrderType()==OP_SELLSTOP)
{
if(iLow(NULL,PERIOD_D1,1) > iLow(NULL,PERIOD_D1,2))
{
if(iLow(NULL,PERIOD_D1,1) < (Bid - 16 * Point))
{
OrderModify(OrderTicket(),iLow(NULL,PERIOD_D1,1) - 1 * Point,iHigh(NULL,PERIOD_D1,1) + 1 * Point,OrderTakeProfit(),0,Cyan);
return(0);
} // close for if(iLow(NULL,PERIOD_D1,1) < (Bid - 16 * Point))
else
{
OrderModify(OrderTicket(),Bid - 16 * Point,iHigh(NULL,PERIOD_D1,1) + 1 * Point,OrderTakeProfit(),0,Cyan);
return(0);

} //close for else statement
} //close for if(iLow(NULL,PERIOD_D1,1) > iLow(NULL,PERIOD_D1,2))
} //close for if(OrderSymbol()==Symbol() && OrderType()==OP_SELLSTOP)
} // close for for(cnt=0;cnt<total;cnt++)
} // close for if(TradesThisSymbol > 0)
} // close for if (newbar != Time[0])


/////////////////////////////////////////////////
// Stop Loss Management
/////////////////////////////////////////////////
if(TradesThisSymbol > 0)
{
total=OrdersTotal();
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

if(OrderSymbol()==Symbol() && OrderType()==OP_BUY)
{
if(Ask-OrderOpenPrice() > (TrailingStop * Point))
{
if(OrderStopLoss() < (Ask - TrailingStop * Point))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Ask - TrailingStop * Point,Ask + TakeProfit * Point,0,Cyan);
return(0);

} // close for if(OrderStopLoss() < (Ask - TrailingStop * Point))
} // close for if(Ask-OrderOpenPrice() > (TrailingStop * Point))
} // close for if(OrderSymbol()==Symbol() && OrderType()==OP_BUY)

if(OrderSymbol()==Symbol() && OrderType()==OP_SELL)
{
if(OrderOpenPrice() - Bid > (TrailingStop * Point))
{
if(OrderStopLoss() > (Bid + TrailingStop * Point))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid + TrailingStop * Point,Bid - TakeProfit * Point,0,Cyan);
return(0);

} // close for if(OrderStopLoss() > (Bid + TrailingStop * Point))
} // close for if(OrderOpenPrice() - Bid > (TrailingStop * Point))
} // close for if(OrderSymbol()==Symbol() && OrderType()==OP_SELL)
} // close for for(cnt=0;cnt<total;cnt++)
} // close for if(TradesThisSymbol > 0)



//return(0);

} // close for start
Forex Trader
114255
Forex Trader 2007.06.29 20:59  
что-то форум глючит, написал ответ, обновляю страничку ответа не видно, а в списке веток видно цифра 2, перелогинился , еще раз вставил ответ, вижу цифра изменилась на 3, а моего ответа нету
Forex Trader
114255
Forex Trader 2007.06.29 21:07  
1. код нужно оформлять тегами /code/
2. много раз уже говорили что нужно нормализировать цены
3. полезно выводить выполнение кода в логи и там смотреть результаты, или хотя бы уточнить что выдает стандартный лог, после выполнения определенных операций проверять код ошибки
4. уже в нете приведено целый вагон и маленькая тележка подобных кусков кода, если не можешь заглянуть в код встроенных советников.

я прогнал его у себя, у меня он вроде нормально менял стоп
вот логи


везде на модифай пишет ок

-------------
попробовал запостил без логов
Forex Trader
114255
Forex Trader 2007.06.29 21:10  
вот лог отдельно

19:58:41 1 GBPUSD,M30: loaded successfully
19:58:41 1 inputs: Lots=1; TakeProfit=100; Stoploss=0; TrailingStop=60; Slippage=5; StopYear=2005; MM=0; Leverage=1; AcctSize=10000; 
....
19:59:09 2006.10.12 09:30  Tester: order #1, buy 1.00 GBPUSD is opened at 1.8588
19:59:10 2006.10.16 15:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8590 tp: 1.8750 ok
19:59:10 2006.10.17 11:34  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8591 tp: 1.8751 ok
19:59:10 2006.10.17 12:02  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8603 tp: 1.8763 ok
19:59:10 2006.10.17 12:10  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8612 tp: 1.8772 ok
19:59:10 2006.10.17 12:51  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8613 tp: 1.8773 ok
19:59:10 2006.10.17 13:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8620 tp: 1.8780 ok
19:59:10 2006.10.17 13:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8623 tp: 1.8783 ok
19:59:10 2006.10.17 13:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8624 tp: 1.8784 ok
19:59:10 2006.10.17 13:34  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8625 tp: 1.8785 ok
19:59:10 2006.10.17 13:34  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8626 tp: 1.8786 ok
19:59:10 2006.10.17 14:27  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8627 tp: 1.8787 ok
19:59:10 2006.10.17 15:51  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8628 tp: 1.8788 ok
19:59:10 2006.10.17 15:51  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8629 tp: 1.8789 ok
19:59:10 2006.10.17 16:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8633 tp: 1.8793 ok
19:59:10 2006.10.17 16:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8634 tp: 1.8794 ok
19:59:10 2006.10.17 16:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8635 tp: 1.8795 ok
19:59:10 2006.10.17 16:18  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8636 tp: 1.8796 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8637 tp: 1.8797 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8638 tp: 1.8798 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8639 tp: 1.8799 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8640 tp: 1.8800 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8642 tp: 1.8802 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8643 tp: 1.8803 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8644 tp: 1.8804 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8645 tp: 1.8805 ok
19:59:10 2006.10.17 16:19  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8647 tp: 1.8807 ok
19:59:10 2006.10.17 16:26  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8648 tp: 1.8808 ok
19:59:10 2006.10.17 16:26  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8649 tp: 1.8809 ok
19:59:10 2006.10.17 16:26  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8650 tp: 1.8810 ok
19:59:10 2006.10.17 16:26  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8651 tp: 1.8811 ok
19:59:10 2006.10.17 17:02  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8652 tp: 1.8812 ok
19:59:10 2006.10.17 17:03  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8653 tp: 1.8813 ok
19:59:10 2006.10.17 17:10  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8668 tp: 1.8828 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8673 tp: 1.8833 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8674 tp: 1.8834 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8675 tp: 1.8835 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8676 tp: 1.8836 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8677 tp: 1.8837 ok
19:59:10 2006.10.17 18:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8678 tp: 1.8838 ok
19:59:12 2006.10.18 09:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8680 tp: 1.8840 ok
19:59:12 2006.10.18 09:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8681 tp: 1.8841 ok
19:59:12 2006.10.18 09:42  1 GBPUSD,M30: modify #1 buy 1.00 GBPUSD at 1.8588 sl: 1.8682 tp: 1.8842 ok
19:59:12 2006.10.18 15:41  Tester: stop loss #1 at 1.8682 (1.8682 / 1.8686)
...
19:59:15 2006.10.25 17:23  Tester: order #3, buy 1.00 GBPUSD is opened at 1.8775
19:59:16 2006.10.26 10:10  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8777 tp: 1.8937 ok
19:59:16 2006.10.26 10:10  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8778 tp: 1.8938 ok
19:59:16 2006.10.26 10:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8783 tp: 1.8943 ok
19:59:16 2006.10.26 10:42  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8784 tp: 1.8944 ok
19:59:16 2006.10.26 10:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8785 tp: 1.8945 ok
19:59:16 2006.10.26 11:19  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8786 tp: 1.8946 ok
19:59:16 2006.10.26 11:19  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8787 tp: 1.8947 ok
19:59:16 2006.10.26 11:19  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8788 tp: 1.8948 ok
19:59:16 2006.10.26 12:18  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8792 tp: 1.8952 ok
19:59:16 2006.10.26 15:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8795 tp: 1.8955 ok
19:59:16 2006.10.26 15:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8796 tp: 1.8956 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8806 tp: 1.8966 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8807 tp: 1.8967 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8809 tp: 1.8969 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8810 tp: 1.8970 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8811 tp: 1.8971 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8812 tp: 1.8972 ok
19:59:16 2006.10.26 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8813 tp: 1.8973 ok
19:59:16 2006.10.26 15:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8815 tp: 1.8975 ok
19:59:16 2006.10.26 17:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8820 tp: 1.8980 ok
19:59:16 2006.10.26 17:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8823 tp: 1.8983 ok
19:59:16 2006.10.26 19:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8838 tp: 1.8998 ok
19:59:16 2006.10.26 19:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8839 tp: 1.8999 ok
19:59:16 2006.10.26 19:26  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8840 tp: 1.9000 ok
19:59:16 2006.10.26 19:27  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8841 tp: 1.9001 ok
19:59:16 2006.10.26 19:27  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8842 tp: 1.9002 ok
19:59:16 2006.10.26 19:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8843 tp: 1.9003 ok
19:59:16 2006.10.26 19:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8844 tp: 1.9004 ok
19:59:16 2006.10.26 19:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8846 tp: 1.9006 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8862 tp: 1.9022 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8863 tp: 1.9023 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8864 tp: 1.9024 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8865 tp: 1.9025 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8866 tp: 1.9026 ok
19:59:16 2006.10.26 19:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8867 tp: 1.9027 ok
19:59:16 2006.10.26 19:51  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8868 tp: 1.9028 ok
19:59:17 2006.10.27 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8903 tp: 1.9063 ok
19:59:17 2006.10.27 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8904 tp: 1.9064 ok
19:59:17 2006.10.27 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8905 tp: 1.9065 ok
19:59:17 2006.10.27 15:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8906 tp: 1.9066 ok
19:59:17 2006.10.27 15:35  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8907 tp: 1.9067 ok
19:59:17 2006.10.27 15:35  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8909 tp: 1.9069 ok
19:59:17 2006.10.27 16:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8910 tp: 1.9070 ok
19:59:17 2006.10.27 16:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8911 tp: 1.9071 ok
19:59:17 2006.10.27 16:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8912 tp: 1.9072 ok
19:59:17 2006.10.27 16:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8914 tp: 1.9074 ok
19:59:17 2006.10.27 16:03  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8915 tp: 1.9075 ok
19:59:17 2006.10.27 16:10  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8931 tp: 1.9091 ok
19:59:17 2006.10.27 16:10  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8932 tp: 1.9092 ok
19:59:17 2006.10.27 16:11  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8933 tp: 1.9093 ok
19:59:17 2006.10.27 16:11  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8934 tp: 1.9094 ok
19:59:17 2006.10.27 16:11  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8935 tp: 1.9095 ok
19:59:17 2006.10.27 16:11  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8936 tp: 1.9096 ok
19:59:17 2006.10.27 16:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8943 tp: 1.9103 ok
19:59:17 2006.10.27 16:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8944 tp: 1.9104 ok
19:59:17 2006.10.30 13:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8945 tp: 1.9105 ok
19:59:17 2006.10.30 13:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8947 tp: 1.9107 ok
19:59:17 2006.10.30 13:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8948 tp: 1.9108 ok
19:59:17 2006.10.30 13:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8954 tp: 1.9114 ok
19:59:17 2006.10.30 14:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8957 tp: 1.9117 ok
19:59:17 2006.10.30 14:02  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8961 tp: 1.9121 ok
19:59:17 2006.10.30 14:03  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8963 tp: 1.9123 ok
19:59:17 2006.10.30 14:27  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8964 tp: 1.9124 ok
19:59:17 2006.10.30 14:34  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8966 tp: 1.9126 ok
19:59:17 2006.10.30 14:42  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8967 tp: 1.9127 ok
19:59:17 2006.10.30 14:42  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8968 tp: 1.9128 ok
19:59:17 2006.10.30 14:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8969 tp: 1.9129 ok
19:59:17 2006.10.30 14:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8970 tp: 1.9130 ok
19:59:17 2006.10.30 14:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8971 tp: 1.9131 ok
19:59:17 2006.10.30 14:43  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8972 tp: 1.9132 ok
19:59:17 2006.10.30 14:50  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8984 tp: 1.9144 ok
19:59:17 2006.10.30 14:51  1 GBPUSD,M30: modify #3 buy 1.00 GBPUSD at 1.8775 sl: 1.8986 tp: 1.9146 ok
...
19:59:21 2006.11.07 06:24  Tester: order #4, buy 1.00 GBPUSD is opened at 1.9028
19:59:21 2006.11.07 16:10  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9028 tp: 1.9188 ok
19:59:21 2006.11.07 16:10  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9029 tp: 1.9189 ok
19:59:21 2006.11.07 16:18  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9033 tp: 1.9193 ok
19:59:21 2006.11.07 16:34  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9040 tp: 1.9200 ok
19:59:21 2006.11.07 16:34  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9041 tp: 1.9201 ok
19:59:21 2006.11.07 16:42  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9043 tp: 1.9203 ok
19:59:21 2006.11.07 16:42  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9044 tp: 1.9204 ok
19:59:21 2006.11.07 16:42  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9045 tp: 1.9205 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9046 tp: 1.9206 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9047 tp: 1.9207 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9048 tp: 1.9208 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9049 tp: 1.9209 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9050 tp: 1.9210 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9051 tp: 1.9211 ok
19:59:21 2006.11.07 16:43  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9052 tp: 1.9212 ok
19:59:21 2006.11.07 16:50  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9053 tp: 1.9213 ok
19:59:21 2006.11.07 16:51  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9054 tp: 1.9214 ok
19:59:21 2006.11.07 16:51  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9055 tp: 1.9215 ok
19:59:21 2006.11.07 16:51  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9056 tp: 1.9216 ok
19:59:21 2006.11.07 17:18  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9057 tp: 1.9217 ok
19:59:21 2006.11.07 17:18  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9058 tp: 1.9218 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9059 tp: 1.9219 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9060 tp: 1.9220 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9061 tp: 1.9221 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9062 tp: 1.9222 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9063 tp: 1.9223 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9064 tp: 1.9224 ok
19:59:21 2006.11.07 17:19  1 GBPUSD,M30: modify #4 buy 1.00 GBPUSD at 1.9028 sl: 1.9065 tp: 1.9225 ok



размер поста ограничен?
точно, куском запостилось, логи пришлось урезать

Forex Trader
114255
Forex Trader 2007.06.30 01:23  
профи! трейлинг стоп и алгоритмический в норме, но тот который вручную во входных параметрах вбивается не работает. часто когда алгоритмический срабатывает бывает уже поздно. обидно!
Forex Trader
114255
Forex Trader 2007.07.01 18:49  
не понятно???
как таковой трейлинг-стоп функции нету, при желании она описывается только кодом советника, т.е. кроме как кодом больше советник никак не может подвинуть стоп-лосс, что-то я не понимаю в этом был вопрос?
Forex Trader
114255
Forex Trader 2007.07.09 11:01  
[img][/img]
Forex Trader
114255
Forex Trader 2007.07.09 11:05  
я тут долго думал и придумал идею советника. сможете написать такого советника? общая идея такова: заметил, что в подавляющем большинстве случаев цена идет дальше пиков или открытий-закрытий предыдущего дня, что ессснно:) если поставить лимитные ордера на эти важные точки, то при минимальном трейлинге можно в 95% случаев получить профит. если свеча красная, надо бай на открытии вчерашней свечи, селл на ее же лоу, если свеча зеленая, надо лимитный ордер на селл на открытии вчерашней и бай на ее же хае. то есть два ордера в обе стороны в день. и надо чтоб все причандалы типа стоп-лосса, тейк-профита и трейлинга работали. в принципе, может можно убрать из того же ТСД ерунду типа макд и осма и чем-нибудь воспользоватья из него, к сожалению, слаб в тех. стороне.[img]F:\distr\Exchange\Торговые программы\Эксперты\strategy.jpg[/img]
Forex Trader
114255
Forex Trader 2007.07.09 11:09  
черт, не могу вставить картнинку! ничего не понимаю
Авторизуйтесь или зарегистрируйтесь, чтобы добавить комментарий