← Назад к списку файлов

bollinger_breakout2 (1).mq4

Поиск по коду файла

#property version   "1.00"
#property strict

int TradeType,Ticket,Breakout_Flag,OrderFree;
double SL,TP,TP_Trade,SL_Size;
double Stop_Diff,Lots;
double PointIsPIP=(1/(Point*10000));
extern int Slippage=4;
extern int Percent=5; //percent risked per trade
extern double Breakout_Factor=15;
extern double TakeProfit = 100;
extern double MaxRisk=5;
extern int BB_Period = 18;
extern double BB_Dev = 2;
extern int    MACD_Fast_Period = 12;
extern int    MACD_Slow_Period = 26;
extern int    MACD_Signal_Period = 9;
extern int    RSI_Period = 14;
extern int    EMA_Period = 3;
bool CanTrade;     //flag. true if conditions are true and there are no open orders by this EA. False otherwise
int Slip=int(Slippage*PointIsPIP);
string Symb=Symbol();
double BreakoutFactor;

int OnInit()
  {
      // код доступен только после оплаты
   }

void OnDeinit(const int reason)
  {

  }

void OnTick()
  {
      // код доступен только после оплаты
   }

int Trade_Criteria() //returns a 01 for buy and 02 for sell and a -1 if no criteria are met
  {
   double
   Top=NormalizeDouble(iBands(NULL,0,BB_Period,BB_Dev,0,PRICE_CLOSE,MODE_UPPER,1),Digits),
   Bottom = NormalizeDouble(iBands(NULL,0,BB_Period,BB_Dev,0,PRICE_CLOSE,MODE_LOWER,1),Digits),
   Middle = NormalizeDouble(iBands(NULL,0,BB_Period,BB_Dev,0,PRICE_CLOSE,MODE_MAIN,0),Digits),
   Macd= NormalizeDouble(iMACD(NULL,0,MACD_Fast_Period,MACD_Slow_Period,MACD_Signal_Period,PRICE_CLOSE,MODE_MAIN,0),Digits),
   RSI = NormalizeDouble(iRSI(NULL,0,RSI_Period,PRICE_CLOSE,0),Digits),
   EMA = NormalizeDouble(iMA(NULL,0,EMA_Period,0,MODE_EMA,PRICE_CLOSE,

Показано первые 50% кода (символов: 4807)

Как получить полную версию?

Введите ваш email и нажмите кнопку, чтобы перейти к оплате.