Trading: Checking the Myth: The Whole Day Trading Depends on How the Asian Session Is Traded - page 2

 

I am following the comments everyone makes.

Excellent tool to see the probabilities of the certain chosen periods...but, I am not programmer.

Adjusted to 0400 (London open) and closed at 1700 (New York close) and adjusted to 16 pips profit forty-nine out of fifty trades, and provided the market is trending, seem to provide 98% indication of a positive trade result. If there is no certainty the trades were buys, but lets be presumptuous and believe yes - they are. That is remarkable information. If programmer slow down EA to trade a 15 min. and monitoring any trend change indicators, you may have a lucrative trade indicator to signal the open of trade.

Horse

 
Thanks a lot for this post
 

Can you suggest a way to read this article please?

The text is so wide that one has to either keep scrolling for left to right or use cont - which makes the text too small to read.

 

I tried to modified your code, I want that the ea place an order when the price break the highest and lowest session(at london session)

but it does not work well

//+------------------------------------------------------------------+
//|                                                    1-Session.mq4 |
//|                                Copyright © 2009, Igor Alexandrov |
//|                                                sydiya@rambler.ru |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Igor Alexandrov"
#property link      "sydiya@rambler.ru"

//---- Input parameters
extern string  Open_session =  "00:00"; //Opening time of the session to study
extern string  Close_session = "08:00"; //Closing time of the session to study
extern int Day_kol_vo = 50;             //Number of days to study
extern int Hour_kol_vo = 32;            //Number of hours to study after the session
extern int Profit = 20;                 //Take Profit value to verify

//----------------------------------------------------------------------------
string Symb;                            //Trade symbol of the expert attached
//----------------------------Starting----------------------------------------

int start()
  { //the main bracket begins
   int  Shift_open_H1,       //Number of hourly bar with the same opening time as daily bar
   Shift_open_bars_session,  //Number of hourly bar, that opens the session     
   Shift_close_bars_session, //Number of hourly bar, that closes the session
   STOP_LEVER=0;             //Minimal distance for TP and SL

   double Open_bars_session, //Opening price of the first bar of the session
   Close_bars_session,       //Closing price of the last bar of the session
   Vira_session,             //Maximal price of the session
   Total_TP=0,               //Counter of Take Profit executions
   Total_SL=0,               //Counter of Stop Loss executions
   Total_day=0,              //Number of days to study
   Total_SL_TP=0,            //Counter of neutral sessions
   Maina_session;            //Minimal price of the session

   datetime Time_open_day,   //Opening time of the i-th daily bar
   Time_open_session,        //Opening time of the session (datetime format)
   Time_close_session;       //Closing time of the session (datetime format)

   string String_open_H1;    //Opening time of the first hourly bar of the day to study
                             //as string format "yyyy.mm.dd"
   bool   Session_buy=false, //Bullish session flag
   Session_sell=false;       //Bearish session flag
   Symb=Symbol();            //Symbol name

   //Minimal distance for TP and SL
   STOP_LEVER=MarketInfo(Symb,MODE_STOPLEVEL);

   // daily bars cycle
   for(int i=Day_kol_vo;i>0;i --)
     { //bracket for daily bars cycle

      //Counter for days studied
      Total_day++;

      //opening time of the i-th daily bar
      Time_open_day=iTime(Symb,PERIOD_D1,i);

      //number of hourly bar with the same opening time as daily bar
      Shift_open_H1=iBarShift(Symb,PERIOD_M15,Time_open_day,false);

      //convert opening time of the first hourly bar to the string like "yyyy.mm.dd"
      String_open_H1=TimeToStr(Time_open_day,TIME_DATE);

      //opening time for the session to study (in the datetime format)
      Time_open_session=StrToTime(String_open_H1+" "+Open_session);

      //number of hourly bar from which session begins
      Shift_open_bars_session=iBarShift(Symb,PERIOD_M15,Time_open_session,false);

      //closing time of the session to study (in datetime format)
      Time_close_session=StrToTime(String_open_H1+" "+Close_session);

      //number of last hourly bar of the session
      Shift_close_bars_session=iBarShift(Symb,PERIOD_M15,Time_close_session,false);
      
           double dPriceHigh = High[iHighest(NULL, 0, MODE_HIGH, Shift_open_bars_session-Shift_close_bars_session, Shift_close_bars_session)];
           double dPriceLow = Low [iLowest (NULL, 0, MODE_LOW , Shift_open_bars_session-Shift_close_bars_session, Shift_close_bars_session)];

      //opening price of the first bar of the session
      Open_bars_session=iOpen(Symb,PERIOD_M15,Shift_open_bars_session);

      //closing price of the last bar of the session
      Close_bars_session=iClose(Symb,PERIOD_M15,Shift_close_bars_session);

      //finding the maximal price of the session
      Vira_session=iHigh(Symb,PERIOD_M15,iHighest(Symb,PERIOD_M15,MODE_HIGH,(Shift_open_bars_session-Shift_close_bars_session),Shift_close_bars_session));

      //finding the minimal price of the session
      Maina_session=iLow(Symb,PERIOD_M15,iLowest(Symb,PERIOD_M15,MODE_LOW,(Shift_open_bars_session-Shift_close_bars_session),Shift_close_bars_session));

      // hours counter for checking
      int PEREBOR=0;

      //Cycle for hourly bars in the i-th day
      for(int j=Shift_close_bars_session;j>Shift_close_bars_session-Hour_kol_vo;j --)
        {//Opening bracket for the hourly bars cycle

         //hours counter (for checking)
         PEREBOR++;
         if(Close_bars_session<Vira_session && iOpen(Symb,PERIOD_M15,1)<Vira_session && iClose(Symb,PERIOD_M15,1)>Vira_session)
              {
               Session_buy=true;
               Session_sell=false;
               Alert("PLACE BUY");  
               Alert("High value:",Vira_session," et Low value:",Maina_session);       //break the cycle(hourly bars)
              }
         if(Close_bars_session>Maina_session && iOpen(Symb,PERIOD_M15,1)>Maina_session && iClose(Symb,PERIOD_M15,1)<Maina_session)
              {
               Session_buy=false;
               Session_sell=true;
               Alert("PLACE SELL");     
               Alert("High value:",Vira_session," et Low value:",Maina_session);      //break the cycle(hourly bars)
              }
          else{
               Session_buy=false;
               Session_sell=false;
               Alert("NEUTRAL");///// it does not work :-( it always take the old value
          }

        } // closing bracket for the hourly bars cycle
     } //Closing bracket for the daily bars

   return(0);

  } //-the main bracket ends 
Reason: