Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 19:46:26 +0000



Post From: How to find all values of an sc.Subgraph[] array that are above a given value?

[2021-04-10 00:06:32]
Flipper_2 - Posts: 57
You can still use for loops in a study that is set to Autoloop.

If I understand correctly what you want to do is loop through all the bars and see if any close prices are below the highest pivot point in SupportPivot. If so remove that pivot?



if (sc.GetBarHasClosedStatus(sc.Index) == BHCS_BAR_HAS_CLOSED) {

for (int Index = 0; Index < sc.ArraySize; Index++)
{
if (sc.Close[Index] < HighestSupportPivot)
{
SupportPivot[HighestSupportPivotIndex] = 0.0;
}
}

}

Date Time Of Last Edit: 2021-04-10 00:25:52