API Timeframes constants: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
! <!--T:7--> Value in minutes | ! <!--T:7--> Value in minutes | ||
|- | |- | ||
| <translate><!--T: | | <translate><!--T:8--> Construct an array, (with unique, sort, print options)</translate> | ||
| <code>[[#arraydefine]]</code> | | <code>[[#arraydefine]]</code> | ||
|- | |- | ||
| <translate><!--T: | | <translate><!--T:9--> Extract information from an array</translate> | ||
| <code>[[#arrayprint]]</code>, <code>[[#arrayindex]]</code>, <code>[[#arraysize]]</code>, <code>[[#arraysearch]]</code>, <code>[[#arraysearcharray]]</code>, <code>[[#arrayslice]]</code> | | <code>[[#arrayprint]]</code>, <code>[[#arrayindex]]</code>, <code>[[#arraysize]]</code>, <code>[[#arraysearch]]</code>, <code>[[#arraysearcharray]]</code>, <code>[[#arrayslice]]</code> | ||
|- | |- | ||
| <translate><!--T: | | <translate><!--T:10--> Alter an array</translate> | ||
| <code>[[#arrayreset]]</code>, <code>[[#arrayunique]]</code>, <code>[[#arraysort]]</code> | | <code>[[#arrayreset]]</code>, <code>[[#arrayunique]]</code>, <code>[[#arraysort]]</code> | ||
|- | |- | ||
| <translate><!--T: | | <translate><!--T:11--> Interaction between several arrays</translate> | ||
| <code>[[#arraymerge]]</code>, <code>[[#arrayunion]]</code>, <code>[[#arrayintersect]]</code>, <code>[[#arraydiff]]</code> | | <code>[[#arraymerge]]</code>, <code>[[#arrayunion]]</code>, <code>[[#arrayintersect]]</code>, <code>[[#arraydiff]]</code> | ||
|- | |- | ||
| <translate><!--T: | | <translate><!--T:12--> In case <tvar name=1>{{ll|Extension:HashTables}}</tvar> is installed, for array/hash-table interaction</translate> | ||
| <code>{{ll|Extension:HashTables#hashtoarray|<nowiki>#</nowiki>hashtoarray}}</code>, <code>{{ll|Extension:HashTables#arraytohash|<nowiki>#</nowiki>arraytohash}}</code> | | <code>{{ll|Extension:HashTables#hashtoarray|<nowiki>#</nowiki>hashtoarray}}</code>, <code>{{ll|Extension:HashTables#arraytohash|<nowiki>#</nowiki>arraytohash}}</code> | ||
|} | |} |
Revision as of 17:00, 4 January 2023
Summary
The Timeframes constants are used to define the different timeframes.
It represents the Timeframe value in minutes.
Definition
PERIOD_CURRENT : Current Timeframe (value = 0)
PERIOD_M1 : Timeframe M1 (value = 1)
PERIOD_M5 : Timeframe M5 (value = 5)
PERIOD_M15 : Timeframe M15 (value = 15)
PERIOD_M30 : Timeframe M30 (value = 30)
PERIOD_H1 : Timeframe H1 (value = 60)
PERIOD_H4 : Timeframe H4 (value = 240)
PERIOD_D1 : Timeframe D1 (value = 1440)
PERIOD_W1 : Timeframe W1 (value = 10080)
PERIOD_MN1 : Timeframe MN1 (value = 43200)
Constant name | Value | Value in minutes |
---|---|---|
<translate> Construct an array, (with unique, sort, print options)</translate> | #arraydefine
| |
<translate> Extract information from an array</translate> | #arrayprint , #arrayindex , #arraysize , #arraysearch , #arraysearcharray , #arrayslice
| |
<translate> Alter an array</translate> | #arrayreset , #arrayunique , #arraysort
| |
<translate> Interaction between several arrays</translate> | #arraymerge , #arrayunion , #arrayintersect , #arraydiff
| |
<translate> In case <tvar name=1>Template:Ll</tvar> is installed, for array/hash-table interaction</translate> | Template:Ll , Template:Ll
|