Müsste doch eigentlich funktionieren...
Code:
//=============================================================================================================
// P R U E F E N O B O R D E R S G E O E F F N E T S I N D
//=============================================================================================================
if(Fast_iTime==Slow_iTime && RT==true && SPR_AL==true) {
for(i=OrdersTotal()-1;i>=0;i--) {
if(OrderSelect(i,SELECT_BY_POS)) {
//=============================================================================================================
// O P E N O R D E R S
//=============================================================================================================
if(OrderType()!=OP_BUY && OrderMagicNumber()!=Buy_Market_MN && OrderSymbol()!=Symbol()) {
if( CP_1>Fast_MA && Fast_MA>Slow_MA )OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,Buy_Mark_SL,Buy_Mark_TP,Buy_Market_MN,0,MediumBlue); }
if(OrderType()!=OP_SELL && OrderMagicNumber()!=Sell_Market_MN && OrderSymbol()!=Symbol()) {
if( CP_1<Fast_MA && Fast_MA<Slow_MA )OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Sel_Mark_SL,Sel_Mark_TP,Sell_Market_MN,0,SteelBlue); } } } }