I'm pulling my hair out and want some help.
The connected EA is just a very easy one and is producing signals, however, the orders are not being entered and NO ERRORS are showing up from the Journal.
What it should do is every time the current price crosses UP or DOWN on the EMA 89 it would place an order in the direction of the cross.
It sets the first one then no longer orders.
You're able to see from the Journal there are loads of signals being actuated when you run it.
PLEASE HELP!
Thank you in advance.
Neal
(It would not let me do an attachment so here it is)
Inserted Code // ------------------------------------------------------------------ //| Daily 100 System | //| Twist © 2008, Neal Chapman | //| Number 91;email@gmail. com#93;******. Com#91;/email#93; | // ------------------------------------------------------------------ //-- enter parameters extern int MagicNumber = 304323; extern int StopLoss=30; extern int TakeProfit=40; extern double Lots=1; int Bought=0; int Ticket,OrderSignal=0; dual EMA89,pbid; dual Vol; // ------------------------------------------------------------------ //| expert start function | // ------------------------------------------------------------------ int begin () //-- EMA89 = iMA(NULL, 15, 89, 0, MODE_SMA, PRICE_MEDIAN, 0); if ((Close#91;0#93; gt;= EMA89) (Close#91;1#93; gt;= EMA89) (Open#91;2#93; lt; EMA89)) OrderSignal=1; / / / /-------------------------------- // BEGIN - this IF statement only for debug purposes //------------------------- if(EMA89! = pbid) Print(Buy Ready gt;gt;gt;gt; H:,Open#91;0#93;, gt;(1)H:,Close#91;1#93;, (89):,EMA89, lt;(2)L:,Open#91;2#93;, Signal:,OrderSignal); pbid=EMA89; //-------------------------------- // END - this IF statement Just for debug purposes //------------------------- else if ((Close#91;0#93; lt;= EMA89) (Close#91;1#93; lt;= EMA89) (Open#91;2#93; gt; EMA89)) OrderSignal=-1; //-------------------------------- // BEGIN - this IF statement Just for debug purposes //------------------------- if(EMA89! = pbid) Print(Sell Ready gt;gt;gt;gt; L:,Open#91;0#93;, gt;(1)L:,Close#91;1#93;, (89):,EMA89, lt;(2)H:,Open#91;2#93;, Signal:,OrderSignal); pbid=EMA89; //-------------------------------- // END - this IF statement Just for debug purposes //------------------------- else OrderSignal=0; //Check to see if there is an order currently open int cnt, total = OrdersTotal(); for(cnt=0;cntlt;total;cnt ) OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderMagicNumber() == MagicNumber) Bought ; if(Bought==0) //no order yet if(OrderSignal gt; 0) // buy order Vol=Lots; Ticket=OrderSend(Symbol(),OP_BUY,Vol,Ask,3,Ask-StopLoss*Point,Ask TakeProfit*Point,Daily100,MagicNumber,0,Green); Sleep(1000); if(OrderSignal lt; 0) // sell order Vol=Lots; Ticket=OrderSend(Symbol(),OP_SELL,Vol,Bid,3,Bid StopLoss*Point,Bid-TakeProfit*Stage,Daily100,MagicNumber,0,Red); Sleep(1000); return(0);