나는 앞으로 테스트를 사용하여 실행중인 EA를 가지고 있지만 문제가 계속 발생합니다. 서로 다른 차트에서 동시에 활성 주문을 할 수 없습니다 (각 차트가 다른 페어를 나타냄).

매번 Symbol 수표가 발행되었지만 여러 통화로 여러 주문이 적용되지 않는 이유를 찾을 수 없습니다. 서로 다른 쌍을 가진 거래가 일어나는 것은 사실이지만, 매번 한 쌍만이 발생합니다. 나는 한 쌍의 주문마다 한 번에 한 주문을 가질 수있는 능동적 인 주문을 가진 여러 쌍을 갖기를 희망했다. 그러나 나는 한 번 모든 쌍에 대해 한 가지 명령을 내린다.

아래는 주문이 실행되는 주요 코드입니다. 내가 놓친 게 있니?

사전에 도움을 주셔서 감사합니다.

암호:

Quote 원래에 의해 게시 됨 ;
int start ()
{
int count;

if (Barslt; 100) {인쇄 (100 미만의 막대); return (0); }

total = OrdersTotal ();

if (trend! = 0) {last_trend = trend; }
트렌드 = MACD_Direction ();
힘 = trend_strength ();

if (pending_timegt; 0) last_pending_time = pending_time;

for (count = 0; countlt; total; count ) gt;
{
OrderSelect (개수, SELECT_BY_POS, MODE_TRADES);
if (OrderType () lt; = OP_SELL OrderSymbol () == Symbol ())
{
if (OrderType () == OP_BUY find_highest)
{
trailing_stop (1);
if (Close [0] gt; = OrderOpenPrice () Point * 5) {pending_time = 0; revival_attempts = 0; oppos_trend_duration = 0; opp_trend_period = 0; }
if (Close [0] lt; orderopenprice () point * 5) {= pending_time = last_loss = OrderOpenPrice () Point * 5-Close [0]; opp_trend_period = 0;} lt; brgt; if (strengthlt; = - 0.95 * MACD_level) opp_trend_period ;
if (best_deal () gt; 0) ClosePending ();
}
else if (OrderType () == OP_SELL find_lowest)
{
trailing_stop (2);
if (Close [0] lt; = OrderOpenPrice () - Point * 5) {pending_time = 0; revival_attempts = 0; opp_trend_period = 0; }
if (Close [0] gt; OrderOpenPrice () - Point * 5) pending_time ;
if (strengthgt; = 0.95 * MACD_level) opp_trend_period ;
if (best_deal () gt; 0) ClosePending ();
}
}
}

if (trendgt; 0 strengthgt; = 0.95 * MACD_level) {buy_flag = true; sell_flag = false; last_trend = 추세; }
if (trendlt; 0 strengthlt; = - 0.95 * MACD_level) {sell_flag = true; buy_flag = false; last_trend = 추세; }

if ((sell_flag == true || buy_flag == true) total == 0 trend! = 0)
{
if (buy_flag == true) do_order (1);
if (sell_flag == true) do_order (2);
}
}
lt;orderopenprice () point * 5) gt; lt;total; count ) gt;