Please change code in OnTick(), read commentsSandovich » 31 Oct 2017 13:50 wrote:Max Trades set to 5 .
Only seems to take one trade per currency . Out of the last 3 trades it took it enters on Blue wavey line , not sure if it is only taking blue wavey line trades and ignoring trend arrows or if its limited to only taking one trade at a time per currency .
Code: Select all
//Trading
if(EveryTickMode) OldBarsTime=0;
if(OldBarsTime!=iTime(NULL,TradingTimeFrame,0))
{
OldBarsTime = iTime(NULL, TradingTimeFrame, 0);
ReadIndicatorValues();//Remember to delete the call higher up in this function if EveryTickMode = false
if (TimeCurrent() >= TimeToStartTrading)
if (!StopTrading)
if (OpenTrades < MaxTradesAllowed)//Un-comment this line for multi traders. Leave commented
//for single traders
//if (TicketNo == -1)//Comment out this line for multi-traders. Leave uncomment
//for single traders
{
TimeToStartTrading = 0;//Set to TimeCurrent() + (PostTradeAttemptWaitMinutes * 60) when there is an OrderSend() attempt)
LookForTradingOpportunities();
}//if (TicketNo == -1 or if (OpenTrades < MaxTradesAllowed))
}//if(OldBarsTime!=iTime(NULL,TradingTimeFrame,0))