Package com.strategyquant.lib
Class HistoryOHLCData
java.lang.Object
com.strategyquant.lib.HistoryOHLCData
Class holding history data (available from Build 136 Dev 2).
It has simple arrays for Time, Open, High, Low, Close, Volume values.
You can use a simple cycle to go through the data:
for(int i=0; i<data.Time.length; i++) { long time = data.Time[i]; float open = data.Open[i]; float high = data.High[i]; float low = data.Low[i]; float close = data.Close[i]; float volume = data.Volume[i]; }
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHistoryOHLCData(String symbol, String timeframe, long dateFrom, long dateTo, String session)
-
Method Summary
-
Field Details
-
Symbol
-
Timeframe
-
DateFrom
public final long DateFrom -
DateTo
public final long DateTo -
Session
-
Time
public long[] Time -
Open
public float[] Open -
High
public float[] High -
Low
public float[] Low -
Close
public float[] Close -
Volume
public float[] Volume
-
-
Constructor Details
-
HistoryOHLCData
-