Why does the else give an unexpected error to me?
It ought to really be if Ask gt; MA_Line perform the collection of top checks to start an order
else
perform the collection of bottom checks to start an order... do not understand what's wrong with this syntax
Thank you for your help!
Inserted Code void OpenMarketOrders() double MA_Line=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0, 0,0); double S_Line1=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0, 1,0); double S_Line2=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0, 2,0); double S_Line3=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0, 3,0); double S_Line4=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0, 4,0); double U_StopLoss=iCustom(NULL,0,MA StdDev,MA_Period, 1, 6, 0,5,0); double L_StopLoss=iCustom(NULL,0,MA-StdDev,MA_Period, 1, 6, 0,5,0); double B_Line1=iCustom(NULL,0,MA-StdDev,MA_Period, 1, 6, 0, 1,0); double B_Line2=iCustom(NULL,0,MA-StdDev,MA_Period, 1, 6, 0, 2,0); double B_Line3=iCustom(NULL,0,MA-StdDev,MA_Period, 1, 6, 0, 3,0); double B_Line4=iCustom(NULL,0,MA-StdDev,MA_Period, 1, 6, 0, 4,0); double StochBuyLine = iStochastic(Symbol(),0,14,3,3,1,1,0,0); double StochSellLine = iStochastic(Symbol(),0,14,3,3,1,1,1,0); int line1trades=0, line2trades=0, line3trades=0, line4trades=0; int ticket; if (Tradeable==true) if (Ask lt; MA_Line) (Open#91;0#93; gt; B_Line3 Close#91;0#93; lt;= B_Line3))) ticket = OrderSend(Symbol(),OP_BUY,LotSize*3, Ask, 3, 0, 0, Coach Line3Buy,MagicNumber,0,Green); line3trades = 1; if (line2tradeslt;1 StochBuyLinegt;=StochSellLine StochBuyLinelt;=10 ( (Open#91;0#93; lt; B_Line2 Close#91;0#93; gt;= B_Line2) else (Open#91;0#93; gt; S_Line4 Close#91;0#93; lt;= S_Line4))) ticket = OrderSend(Symbol(),OP_SELL,LotSize*6, Bid, 3, 0, 0, Coach Line4Sell,MagicNumber,0,Red); line4trades = 1; if (line3tradeslt;1 StochSellLinegt;=StochBuyLine StochSellLinegt;=90 ( (Open#91;0#93; lt; S_Line3 Close#91;0#93; gt;= S_Line3)