Hey I'm having a very weird problem with testing a simple EA, my problem is, the ordersend function has completely stoped working. This is part of the EA, and I know I'm getting a signal because the alert.wav goes off, BUT the EA completely skips the ordersend function, it doesn't even get sent to the server, there aren't even any logs of it trying to get sent to the server in the journal window. I'm very very perplexed.
Does anybody have any idea what could be going on?
I've been having metatrader problem galore this weekend. I feel like the worlds worst programmer, and I'm in that weird spot where I know I'm going to feel really stupid if the problem is something obvious, but at the same time I hope its simple so I can move on and finish the stupid thing up. I probably should take that "message me for metatrader help" in my signature for a while.
Inserted Code
if((TimeHour(TimeLocal())==TradeTime1_Begins) || (TimeHour(TimeLocal())==TradeTime2_Begins)) { if(Fast<Slow) { ticket=OrderSend(Symbol(),OP_SELL,lot,Bid,10,0,0,0,1,0,Green); PlaySound("alert.wav"); return(0); } if(Fast>Slow) { ticket=OrderSend(Symbol(),OP_BUY,lot,Ask,10,0,0,0,1,0,Green); PlaySound("alert.wav"); return(0); } }
I've been having metatrader problem galore this weekend. I feel like the worlds worst programmer, and I'm in that weird spot where I know I'm going to feel really stupid if the problem is something obvious, but at the same time I hope its simple so I can move on and finish the stupid thing up. I probably should take that "message me for metatrader help" in my signature for a while.