utils
Functions¶
delete_dir ¶
delete_dir(p)
Delete info in directory
Parameters:
Name | Type | Description | Default |
---|---|---|---|
p |
path
|
path to directory |
required |
generate_candles ¶
generate_candles(number_of_candles=100, plot_candles=False, seed=None)
Generate a dataframe filled with random candles
Parameters:
Name | Type | Description | Default |
---|---|---|---|
number_of_candles |
(int, 100)
|
number of candles you want to create |
100
|
seed |
(int, None)
|
random seed number |
None
|
plot_candles |
(bool, False)
|
If the candles should be graphed or not. |
False
|
Returns:
Type | Description |
---|---|
pdFrame
|
Dataframe of open high low close |
pretty_qf ¶
pretty_qf(named_tuple)
Prints named tuples in a pretty way
Parameters:
Name | Type | Description | Default |
---|---|---|---|
named_tuple |
namedtuple
|
must only be a named tuple |
required |
pretty_qf_string ¶
pretty_qf_string(named_tuple)
Prints named tuples in a pretty way
Parameters:
Name | Type | Description | Default |
---|---|---|---|
named_tuple |
namedtuple
|
must only be a named tuple |
required |