Forexalpha777 / Publications
Forum
Why does time filter works by local time instead of server time based?
string eeeee= "" ; //8. TRADING TIME FILTER string start_time = "07:15" ; //Disable time end string end_time = "05:50" ; //Disable time start ------------------------------------------------------------------------- bool time_check(){ bool in_range=( TimeCurrent ()<StrToTime(end_time)||
EA runs during certain time period. How to disable it?
Hi. I want to run it during 24 hours. If I set it up as following, EA does not work. Start time=24:00 End time=24:00 What should I change it? If I remove these code, it does not compile it either. Thanks in advanced. bool sleepTime() { string dt = TimeToString ( TimeCurrent ()); string
How to NOT to run EA on certain symbol.
Dear all. How do I code if I don't want to make EA run on certain symbol? I took the code from other topic. Thanks in advanced. int OnInit () { // Check Licensing Restrictions if ( boolRestrictOnInit() ) return ( INIT_FAILED ); // ... return ( INIT_SUCCEEDED ); // Initialisation complete }
Why doesn't it delete pending orders after closing positions
Dear I have no idea why it does not delete pending orders after closing positions. It close open position in perfect way. Somehow, it does not delete pendings. Any help? void CloseAllOrders() { for ( int pos= OrdersTotal ()- 1 ; pos>= 0 ; pos--) { int Ticket=OrderTicket(); double
I can not Delete pending orders
I can close BUY and SELL open position but I can not delete pending orders. What did I missed? void CloseAllOrders() { for ( int pos= OrdersTotal ()- 1 ; pos>= 0 ; pos--) { int Ticket=OrderTicket(); double lots=OrderLots(); string symbol=OrderSymbol(); if (
How to add ordersend to Time filter
Could someone please tell me How to add if false == ordersend(); Although I add these coding, EA still open positions. input string SettingTradingTime = "================================================================== " ; input bool Filter_TradingTime= true ; input string Time_Start= "02:00" ;
Please NEED HELP for coding!!
Hi This is fully automatic trading EA. I want to give some break before EA opens initial lot after TP or SL. Should I give sleep function after "close all"? Could you please fix it? if ( (OpenOrders> 0 ||PendOrders> 0 ) && COtime>XYtime ) { CloseALL(); } Thank you in advance