106 lines
2.4 KiB
Plaintext
106 lines
2.4 KiB
Plaintext
|
|
//
|
|
// Definitions ...
|
|
|
|
//
|
|
// Base Provider Inputs ...
|
|
// class XSCBaseProviderInpts : public XSCBase
|
|
// {
|
|
// //
|
|
// // Public ...
|
|
// public:
|
|
// //
|
|
// // Validate Input ...
|
|
// virtual bool IsValid();
|
|
|
|
// //
|
|
// // Cleanup ...
|
|
// virtual void Clean();
|
|
|
|
// //
|
|
// // Default ...
|
|
// virtual void Default();
|
|
|
|
// //
|
|
// // Max ...
|
|
// virtual int Max();
|
|
// };
|
|
|
|
//
|
|
// Base Market Conditions Class ...
|
|
// class XSCBaseProviderMarketConditions : public XSCBase
|
|
// {
|
|
// //
|
|
// // Public ...
|
|
// public:
|
|
// //
|
|
// // Props ...
|
|
// string symbol; // Symbol
|
|
// ENUM_TIMEFRAMES period; // Period
|
|
// datetime time; // Time
|
|
|
|
// //
|
|
// XOHCL bars[]; // Number of Bars ...
|
|
|
|
// //
|
|
// // Buffers ...
|
|
|
|
// //
|
|
// // Conditions ...
|
|
|
|
// //
|
|
// // Generate Score ...
|
|
// virtual void GenerateScore(
|
|
// double &bullishScore, // Bullish Score
|
|
// double &bearishScore, // Bearish Score
|
|
// double multiplier = 1 // Score Multiplier
|
|
// );
|
|
|
|
// //
|
|
// // Generate Summary ...
|
|
// virtual string GenerateSummary(
|
|
// const bool onlySummary = false, // Only Generate Conditions Summary
|
|
// double multiplier = 1, // Score Multiplier
|
|
// const string separator = "\n", // Separator
|
|
// const bool ignoreFalseConditions = true // Ignore False Conditions
|
|
// );
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//// Class Implementation Method ...
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
// Inheritance ...
|
|
|
|
//
|
|
// Init all Requirements ...
|
|
// virtual bool Init(XSCBaseProviderInpts &inputs);
|
|
|
|
//
|
|
// Get Inputs ...
|
|
// virtual void GetInputs(XSCBaseProviderInpts &inputs);
|
|
|
|
//
|
|
// Set Inputs and Reinitial ...
|
|
// virtual bool setInputs(XSCBaseProviderInpts &inputs);
|
|
|
|
//
|
|
// virtual void GetMarketConditions(
|
|
// XSCBaseProviderMarketConditions &conditions, // Market Conditions Result
|
|
// int barIndex = 0 // Specified Bar Index
|
|
// );
|
|
|
|
//
|
|
// Check Market For Signal ...
|
|
// virtual bool HasSignal(
|
|
// int barIndex,
|
|
// XSignal &signal, // Hold's Signal if Exists ...
|
|
// XSCBaseProviderMarketConditions &conditions // Hold's Market Conditions ...
|
|
// );
|