Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 23:37:33 +0000



Post From: GetStudyLineUntilFutureIntersection example

[2023-05-18 08:25:36]
User431178 - Posts: 544

auto lineIndex{ 0 };
auto lineID{ 0 };
auto lineEndIndex{ 0 };
auto lineLevel{ 0.0f };
  
while (sc.GetStudyLineUntilFutureIntersection(sc.ChartNumber
, sc.StudyGraphInstanceID
, index
, lineIndex
, lineID
, lineLevel
, lineEndIndex) != 0)
{
// Your code here //
// e.g. check if is intersected already
// i.e. lineEndIndex != 0
// if not, then check distance from current price to lineLevel
}