Your coding has a lot of unneeded things and some errors. I could do this for you. PM me if interested.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I would really appreciate it if you could help me program my EA
Summery:
I want it to make 1 trade a day at midnight (new trading day)
in GBPUSD
buy position with a take profit of 10 pips
and do that everyday
Thanks for the help!!
I have tried coding it which is below:
#define SIGNAL_NONE 0
#define SIGNAL_BUY 1
#define SIGNAL_SELL 2
#define SIGNAL_CLOSEBUY 3
#define SIGNAL_CLOSESELL 4
#property copyright "Expert Advisor Builder"
#property link "Expert Advisor Builder for MetaTrader 4"
extern int MagicNumber = 0;
extern bool SignalMail = False;
extern bool EachTickMode = True;
extern double Lots = 1.0;
extern int Slippage = 3;
extern bool UseStopLoss = False;
extern int StopLoss = 0;
extern bool UseTakeProfit = True;
extern int TakeProfit = 10;
extern bool UseTrailingStop = False;
extern int TrailingStop = 0;
extern int TradeHour=0;
extern int TradeMinutes=0;
extern int TradeSeconds=0;
int BarCount;
int Current;
bool TickCheck = False;
//+------------------------------------------------------------------+
//| expert starts |
//+------------------------------------------------------------------+
int start()
//----
int digits=MarketInfo("GBPUSD",MODE_DIGITS);
if(digits=4);
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int Order = SIGNAL_NONE;
int Total, Ticket;
double TakeProfitLevel;
Total = OrdersTotal(1);
Order = SIGNAL_NONE;
//Buy
if ((Order == SIGNAL_BUY) && (SIGNAL_BUY=1)) {
{
// Buy criteria
if ((TradeHour==Hour(0))&&(TradeMinutes==Minute(0))&&(TradeSeconds>=Seconds(0))) //Signal Buy
{
}
//+------------------------------------------------------------------+