apply structure of checking market open, but comment it since they have some issues ...

This commit is contained in:
2024-08-08 12:44:25 +03:30
parent 4465fe2f4a
commit 2fa63e128d
2 changed files with 16 additions and 1 deletions
+12 -1
View File
@@ -5627,7 +5627,15 @@ public:
// TODO: // TODO:
// Here we can apply Same type or Opposit Type // Here we can apply Same type or Opposit Type
// Signals behaviour ... // Signals behaviour ...
// also Implement Signal Filtering ... // also check For Market Open ...
//
// Check Market ...
// TODO: Fix this ...
// result = mSymbolSession.CanTrade(signal.symbol);
// if (!result) {
// return result;
// }
// //
return result; return result;
@@ -5801,6 +5809,9 @@ protected:
bool mSaveTrades; // Save Trades bool mSaveTrades; // Save Trades
bool mSaveConditions; // Save SL Conditions bool mSaveConditions; // Save SL Conditions
//
XSymbolSessionParser mSymbolSession; // Check Symbol Session
// //
bool mAllowLong; // Allow Long/Buy Trade Type bool mAllowLong; // Allow Long/Buy Trade Type
bool mAllowShort; // Allow Short/Sell Trade Type bool mAllowShort; // Allow Short/Sell Trade Type
+4
View File
@@ -647,6 +647,10 @@ void OnSignalRecieved(
} }
// //
// Since Signal Filtering done based on
// Strategy and it's not related to Public
// TradeHandler for Seperation of Concern issue,
// we do this here ...
XCHStartegyConditionsParser parser; XCHStartegyConditionsParser parser;
bool isFiltered = parser.IsFiltered( bool isFiltered = parser.IsFiltered(
signal, signal,