Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 04:03:23 +0000



[Programming Help] - Runup /DD

View Count: 797

[2018-01-13 18:19:49]
User39772 - Posts: 311
Hello,

unfortunately s_SCPositionData struct does not contain any info re. Runup/DD of the Position.

I found s_ACSTrade on page Automated Trading From an Advanced Custom Study

If I try to compile the example:

std::vector <s_ACSTrade> TradesList;

s_ACSTrade TradeEntry;
int Size = sc.GetTradeListSize();

for(int Index = 0; Index < Size;Index++)
{
if(sc.GetTradeListEntry(Index, TradeEntry))
TradesList.push_back(TradeEntry);
}

for (unsigned int TradeIndex = 0; TradeIndex < TradesList.size(); TradeIndex++)
{
double ProfitLoss = TradesList[TradeIndex].ClosedProfitLoss;
}


I get a linker error:

Error  LNK2019  unresolved external symbol __CrtDbgReportW referenced in function "void * __cdecl std::_Allocate(unsigned int,unsigned int,bool)" (?_Allocate@std@@YAPAXII_N@Z)  
Error  LNK2001  unresolved external symbol __CrtDbgReportW
Error  LNK1120  1 unresolved externals  Trading_System_Test_Z_Score

Any hints from your side how I can proceed.
[2018-01-16 10:21:00]
User39772 - Posts: 311
Hallo, any hope for help on how I can extract the Runup / Drawdown of a position from within a codes System ?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account