[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.529, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.55, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.55, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.55, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.55, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.55, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[ALQUIMIAStrategy 2][09/21/2021 08:16:00 AM] Bar count Abv/Bel 200EMA: 14, EMA20-EMA200: 11.571, EMA200: 15110.25, slope200ma: 0.15, BarsSinceExit: 14 Day Sess: True, Aft Sess: True, Steps: 1
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
[TRADE][09/21/2021 08:16:00 AM][ALQUIMIAStrategy 2] [MNQ 12-21] Cancel OLD entry limit Order
THIS MESSAGE CONTINUE TO GOES FOREVER.
Here is how my cancel orders is coded:
#region Trade Settings
//if (IsFirstTickOfBar)
if (Steps != 0 | IsFirstTickOfBar)
{
Print(string.Format("[ALQUIMIAStrategy 2][{0}] Bar count Abv/Bel 200EMA: {1}, EMA20-EMA200: {2}, EMA200: {3}, slope200ma: {4}, BarsSinceExit: {5} Day Sess: {6}, Aft Sess: {7}, Steps: {8}",
Time[0].ToString(format), Counter200[0], Math.Round((EMA20[0] - EMA200[0]),3), ema200, Math.Round(slope200ma, 2), BarsSinceExitExecution(), InDaySession, InAftSession, Steps));
}
// cancel old limit entry orders
if (entryOrder != null && CurrentBar > EntryIndex + BarsToKeepRestingOrders
|| (entryOrder != null && Close[0] < PriceLong - 15 && entryOrder.Name == "LongMarketEntry" )
|| (entryOrder != null && Close[0] > PriceShort + 15 && entryOrder.Name == "ShortMarketEntry"))
{
Print(string.Format("[TRADE][{0}][ALQUIMIAStrategy 2] [{1}] Cancel OLD entry limit Order", Time[0].ToString(format), Instrument.FullName));
Print("");
CancelOrder(entryOrder);
Steps = 0;
Counter200[0] = 0;
Counter200[1] = 0;
THANKS SO MUCH,
Juan Francisco
Comment