mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Improve heikinAshi typing
This commit is contained in:
parent
d0ad10391e
commit
77952ec2c9
|
@ -1,4 +1,4 @@
|
||||||
export default function heikinAshiDataset(columns: string[], data: Array<number[]>) {
|
export function heikinAshiDataset(columns: string[], data: Array<number[]>): number[][] {
|
||||||
const openIdx = columns.indexOf('open');
|
const openIdx = columns.indexOf('open');
|
||||||
const closeIdx = columns.indexOf('close');
|
const closeIdx = columns.indexOf('close');
|
||||||
const highIdx = columns.indexOf('high');
|
const highIdx = columns.indexOf('high');
|
||||||
|
@ -26,3 +26,5 @@ export default function heikinAshiDataset(columns: string[], data: Array<number[
|
||||||
return candle;
|
return candle;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default heikinAshiDataset;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user