Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 17:08:50 +0000



Post From: SC 1641

[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