Witam! Mam robota jednak mam problemy w wstawieniem trailing stop'a.
Konto na MT4 Trailing Stop minimum 15 punktów.
Robocik:
//+------------------------------------------------------------------+
//| MA.mq4 |
//| Copyright 2012, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "MA"
#property link "http://www.maniek.pl"//
//--- input parameters
extern int StopLoss=20;
extern int TakeProfit=40;
extern double Lots =0.01;
extern double DecreaseFactor=0;
extern double MovingPeriod=55;
extern double MovingShift=0;
int Krótka=0;
int start()
{
{
double ma0=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,1);
double ma1=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,2);
if(ma0<ma1 && OrdersTotal()<1)
{
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,Ask-TakeProfit*Point,"My order SELL",16384,0,Green);
}
}
return(0);
}
Trailing Stop MT4
Trailing Stop MT4
Kilka moich spostrzeżeń na temat Forex http://forex-u-mariana.blogspot.com/
Re: Trailing Stop MT4
http://www.forex-tsd.com/expert-advisor ... ic-ea.html
Od tego automatu zaczalem nauke mql. Z tego co pamietam jest tam trailing stop.
Od tego automatu zaczalem nauke mql. Z tego co pamietam jest tam trailing stop.
oszczedzajmy cykle procesora
Re: Trailing Stop MT4
Dzieki:)
Kilka moich spostrzeżeń na temat Forex http://forex-u-mariana.blogspot.com/