Navigation:Home > Content >

!!!_[drw-e]_AO_blocks.mq4

Time: 2012-12-03 | Download file:!!!_[drw-e]_AO_blocks.mq4

#property copyright "DREW"
#property link      "joinme@yandex.ru"

extern int TF = PERIOD_H1;
extern int dDay = 0;

extern int nomln = 0;

int init()
{
   return(0);
}

int deinit()
{
   return(0);
}

int start()
{
   // 1 - BUY 2 - SELL
   // double fnAwesome(int TFloc, int shift)

   double LowestPrice = iLow(NULL,PERIOD_W1,0);
   int total, cnt;
   
   nomln++;
   double TrendLineBeginTime = Time[0];
   
   // 5
   int AW = fnAwesome(TF);
   if(AW == 2)
   {
      ObjectCreate("AW"+nomln,OBJ_ARROW,0,Time[0],LowestPrice-0.0048,0,0,0,0);
      ObjectSet("AW"+nomln, OBJPROP_ARROWCODE, 110);
      ObjectSet("AW"+nomln, OBJPROP_COLOR , Blue);

      total = OrdersTotal();
      for(cnt=0;cnt 0.003)) return(1);
   if((Awe1 > Awe) && (MathAbs(Awe1 - Awe) > 0.003)) return(2);
}

Recommend