Difference between revisions of "API Series constants"

From NakedMarkets
Jump to navigation Jump to search
Line 23: Line 23:
C# code snippet :
C# code snippet :
<code>
<code>
UPDonchianBuf[index] = High(iHighest(Symbol(), Period(), Series.MODE_HIGH, period, index));
UPDonchianBuf[index] = High(iHighest(Symbol(), Period(), Series.MODE_HIGH, period, index));
</code>
</code>

Revision as of 04:20, 5 January 2023

Summary

The Series constants are used to define the different values of the bar.

Definition

Constant name Value
Series.MODE_OPEN Open value of the Bar
Series.MODE_LOW Low value of the Bar
Series.MODE_HIGH High value of the Bar
Series.MODE_CLOSE Close value of the Bar
Series.MODE_VOLUME Volume value of the Bar
Series.MODE_TIME Date value of the Bar

Examples

C# code snippet : UPDonchianBuf[index] = High(iHighest(Symbol(), Period(), Series.MODE_HIGH, period, index));