API Series constants: Difference between revisions

From NakedMarkets
Jump to navigation Jump to search
Created page with "=== Summary === The Series constants are used to define the different values of the bar. <br> === Definition === {| class=wikitable cellpadding="10" style="border-style: soli..."
 
No edit summary
Line 8: Line 8:
! Constant name !! Value
! Constant name !! Value
|-
|-
| '''MODE_OPEN''' || Open value of the Bar
| '''Series.MODE_OPEN''' || Open value of the Bar
|-
|-
| '''MODE_LOW''' || Low value of the Bar
| '''Series.MODE_LOW''' || Low value of the Bar
|-
|-
| '''MODE_HIGH''' || High value of the Bar
| '''Series.MODE_HIGH''' || High value of the Bar
|-
|-
| '''MODE_CLOSE''' || Close value of the Bar
| '''Series.MODE_CLOSE''' || Close value of the Bar
|-
|-
| '''MODE_VOLUME''' || Volume value of the Bar
| '''Series.MODE_VOLUME''' || Volume value of the Bar
|-
|-
| '''MODE_TIME''' || Date value of the Bar
| '''Series.MODE_TIME''' || Date value of the Bar
|}
|}
=== Examples ===
C# code snippet :
<code>
UPDonchianBuf[index] = High(iHighest(Symbol(), Period(), Series.MODE_HIGH, period, index));
</code>

Revision as of 11: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));