Support Board
Date/Time: Thu, 16 Jan 2025 13:03:59 +0000
SC 1641
View Count: 786
[2017-11-09 17:08:32] |
ertrader - Posts: 681 |
During compile I get the following error message. Has something changed? -- Starting remote build of Custom Studies Source files: AutoTradeSignalV9DOE.cpp. -- 12:01:33 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: AutoTradeSignalV9DOE.cpp: In function 'void scsf_AutoTradeSignalV9DOE(SCStudyInterfaceRef)': AutoTradeSignalV9DOE.cpp:2784:26: error: 'SCT_MARKET' was not declared in this scope NewOrder.OrderType = SCT_MARKET; ^ -- End of Build -- 12:01:37 The following is the portion of code the error is referring to: if (Enabled.GetYesNo()) { // Create an s_SCNewOrder object. s_SCNewOrder NewOrder; NewOrder.OrderQuantity = MaxPositions.GetInt(); NewOrder.OrderType = SCT_MARKET; // Buy when the signal is sent if (TradeSignal[Index]==1) { int Result = sc.BuyEntry(NewOrder); if (Result > 0) BuyEntrySubgraph[Index] = sc.Low[Index]; } if (TradeSignal[Index]==-1) { int Result = sc.SellEntry(NewOrder); if (Result > 0) SellEntrySubgraph[Index] = sc.High[Index]; } } Date Time Of Last Edit: 2017-11-09 17:08:55
|
[2017-11-09 18:52:30] |
Sierra Chart Engineering - Posts: 104368 |
Yes we took out the old constants for order types. Use the new ones: Automated Trading From an Advanced Custom Study: [Type: integer] s_SCNewOrder::OrderType Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: