-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initiate basic indicators for trading
- Loading branch information
Showing
16 changed files
with
216 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
add_subdirectory(algorithms) | ||
add_subdirectory(common) | ||
add_subdirectory(common) | ||
add_subdirectory(indicators) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <memory> | ||
#include <type_traits> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
aux_source_directory(src TRADING-INDICATORS_SRC) | ||
|
||
add_library(coincenter_trading-indicators STATIC ${TRADING-INDICATORS_SRC}) | ||
target_link_libraries(coincenter_trading-indicators PUBLIC coincenter_trading-common) | ||
target_link_libraries(coincenter_trading-indicators PUBLIC coincenter_api-objects) | ||
target_link_libraries(coincenter_trading-indicators PUBLIC coincenter_objects) | ||
target_link_libraries(coincenter_trading-indicators PUBLIC coincenter_tech) | ||
target_include_directories(coincenter_trading-indicators PUBLIC include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include "monetaryamount.hpp" | ||
#include "timedef.hpp" | ||
|
||
namespace cct { | ||
|
||
class MarketDataView; | ||
|
||
class BasicStats { | ||
public: | ||
explicit BasicStats(const MarketDataView &marketDataView) : _marketDataView(marketDataView) {} | ||
|
||
MonetaryAmount movingAverageFromLastPublicTradesPrice(TimePoint oldestTime) const; | ||
|
||
MonetaryAmount movingAverageFromMarketOrderBooks(TimePoint oldestTime, | ||
Duration minFrequencyBetweenTwoPoints = Duration{}) const; | ||
|
||
MonetaryAmount standardDeviationFromMarketOrderBooks(TimePoint oldestTime, | ||
Duration minFrequencyBetweenTwoPoints = Duration{}) const; | ||
|
||
private: | ||
const MarketDataView &_marketDataView; | ||
}; | ||
|
||
} // namespace cct |
Oops, something went wrong.