Support Board
Date/Time: Fri, 22 Nov 2024 13:44:48 +0000
Post From: target/stop prices are not created correctly with acsil
[2013-05-08 12:12:57] |
User32496 - Posts: 26 |
i took that example from tradingsystem.cpp if (sc.CrossOver(Last, SimpMovAvgSubgraph) == CROSS_FROM_BOTTOM && sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED) { NewOrder.Target1Price = sc.Ask + 8*sc.TickSize ; NewOrder.Stop1Price = sc.Ask - 8*sc.TickSize; int Result = sc.BuyEntry(NewOrder); if (Result > 0) //If there has been a successful order entry, then draw an arrow at the low of the bar. { BuyEntrySubgraph[sc.Index] = sc.Low[sc.Index]; // Remember the order IDs for subsequent modification and cancellation Target1OrderID = NewOrder.Target1InternalOrderID; Stop1OrderID = NewOrder.Stop1InternalOrderID; } } when i compiled it and run it as an indicator (on the dax futures) to sent orders i get this error on the trade service log Trade Order Error: Parent price (8226.500000) is more than 25% different than original Attached order price (-1.000000). Attached Order not modified. Internal order ID: 117 | 2013-05-08 08:09:52 Trade Order Error: Parent price (8226.500000) is more than 25% different than original Attached order price (16452.000000). Attached Order not modified. Internal order ID: 118 | 2013-05-08 08:09:52 what should be the correct acsil ? thanks |