I'm not sure what went wrong, but I used this code and it opens trade. But nothing much interesting about this EA. It just opens trade when the price breaks high or low of the session. Let me know if you need any help.
Disliked[code]
#define MAGICMA 20050610
//====================parameter===================//
extern string periodBegin ="00:00";
extern string periodEnd ="05:30";
extern double solantang =1;
extern double solangiam =1;
extern double LotsSize =1;
//==============================================//
//+------------------------------------------------------------------+
//| Tinh toan vi tri mo |
//+------------------------------------------------------------------+
int CalculateCurrentOrders(string...Ignored