Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 16:56:47 +0000



Post From: Parts of ACSIL API work and other parts do not?

[2025-04-17 20:14:10]
LTSys2 - Posts: 12
Hi,

I recently moved my sierra chart study project outside of the sierra chart ACS_Source folder and I'm building it using GNU C++.

Since I've done that parts of SC ACSIL code work and other parts do not.

For example... I am able to get positions fine but looping through orders does not.

Perhaps I am missing a SC ACSIL library that needs to be in my built study dll?

I have included the "sierrachart.h" header and everything compiles fine.



  // removed code that places an order...

  s_SCPositionData position;

  sc.GetTradePositionForSymbolAndAccount(position, "EURUSD", "Sim1"); // this function works

  // removed code that prints the positions

  s_SCTradeOrder order; int orderIndex = 0;

  while(sc.GetOrderForSymbolAndAccountByIndex("", "Sim1", orderIndex, order) != SCTRADING_ORDER_ERROR) { // this function never finds the order

   // never enters the loop even though several positions are open?
  }


TIA
Date Time Of Last Edit: 2025-04-17 22:19:12