Support Board
Date/Time: Tue, 12 May 2026 19:44:18 +0000
Post From: Automation Is Triggering NQ Orders when on an MNQ Chart
| [2026-05-12 15:40:01] |
| User528458 - Posts: 4 |
|
Yes, the ISAutomated Column is a "Y". If i have an NQ trading window open and an MNQ trading window open, would a study trigger a buy/sell for both? Or is it supposed to only trigger on the chart it's on? My ACSIL Order placement logic is: float TickSize = sc.TickSize;
int TP = TakeProfitTicks.GetInt(); int SL = StopLossTicks.GetInt(); int Trail = TrailAmountTicks.GetInt(); bool DoTrail = UseTrailingStop.GetYesNo() != 0; s_SCNewOrder order; order.OrderQuantity = 1; order.OrderType = SCT_ORDERTYPE_MARKET; order.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; order.Target1Offset = TP * TickSize; order.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT; if (AllBullish) { BuySignal[BarIndex] = (float)(sc.Low[BarIndex] - 2.0f * TickSize); LastSignalDirection = 1; if (LiveTrading) sc.BuyEntry(order); } else if (AllBearish) { SellSignal[BarIndex] = (float)(sc.High[BarIndex] + 2.0f * TickSize); LastSignalDirection = -1; if (LiveTrading) sc.SellEntry(order); } Date Time Of Last Edit: 2026-05-12 15:45:30
|
