I want to make a trade every specific hour automatically, is that possible, any one have the solution
you can use this code
extern int TadeAtHour=13; extern double Lots=0.1; extern int Takeprofit=60; extern int Stoploss=35; extern bool TradeType=true; // true for long ,,, false for short bool DoTradeOnce=false; bool CheckHourOnce=false; int start() { if (Hour()!=TadeAtHour) { DoTradeOnce=false; CheckHourOnce=false; } if (CheckHourOnce==false && Hour()==TadeAtHour) { DoTradeOnce=true; CheckHourOnce=true; } if (DoTradeOnce==true) { if (TradeType==true) { OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-Stoploss*Point,Ask+Takeprofit*Point,"",0,Green); } else { OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+Stoploss*Point,Bid-Takeprofit*Point,"",0,Red); } DoTradeOnce=false; } return(0); }

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
I want to make a trade at a sepcific hour, say at open of 13:00 and at open of 15:00 automatically.
can any one send me the code to do this
any information you will be providing will be greatly appreciated, as I'm beginner in this
Hishamn