mirror of
https://github.com/rithsila/MT5-EA-Sniper-Strategy.git
synced 2026-08-23 23:58:09 +00:00
Correct invalid stop error on second trade row
This commit is contained in:
@@ -125,6 +125,7 @@ void CSignalGrid::UpdateSignal()
|
||||
|
||||
for(int i = cntO-1; i>=0; i--)
|
||||
{
|
||||
|
||||
ticket = OrderGetTicket(i);
|
||||
if(OrderSelect(ticket))
|
||||
{
|
||||
@@ -160,6 +161,8 @@ void CSignalGrid::UpdateSignal()
|
||||
realTotalBuy = pCountSell+1;
|
||||
realTotalSell = pCountBuy+1;
|
||||
|
||||
Print("Signal conditions ........................................................................");
|
||||
|
||||
if(OrdersTotal() == 0 && PositionsTotal() == 0)
|
||||
{
|
||||
SetSignal(OFX_ENTRY_SIGNAL, OFX_SIGNAL_BOTH);
|
||||
|
||||
Reference in New Issue
Block a user