mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
semver fix
This commit is contained in:
@@ -252,6 +252,7 @@ jobs:
|
|||||||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) ||
|
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) ||
|
||||||
github.event_name == 'workflow_dispatch'
|
github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ public class OscillatorsUpdateTests
|
|||||||
private TBar GetRandomBar(bool IsNew)
|
private TBar GetRandomBar(bool IsNew)
|
||||||
{
|
{
|
||||||
double open = GetRandomDouble();
|
double open = GetRandomDouble();
|
||||||
double high = open + Math.abs(GetRandomDouble());
|
double high = open + Math.Abs(GetRandomDouble());
|
||||||
double low = open - Math.abs(GetRandomDouble());
|
double low = open - Math.Abs(GetRandomDouble());
|
||||||
double close = low + ((high - low) * GetRandomDouble());
|
double close = low + ((high - low) * GetRandomDouble());
|
||||||
return new TBar(DateTime.Now, open, high, low, close, 1000, IsNew);
|
return new TBar(DateTime.Now, open, high, low, close, 1000, IsNew);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user