apply structure of checking market open, but comment it since they have some issues ...
This commit is contained in:
@@ -5627,7 +5627,15 @@ public:
|
||||
// TODO:
|
||||
// Here we can apply Same type or Opposit Type
|
||||
// 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;
|
||||
@@ -5801,6 +5809,9 @@ protected:
|
||||
bool mSaveTrades; // Save Trades
|
||||
bool mSaveConditions; // Save SL Conditions
|
||||
|
||||
//
|
||||
XSymbolSessionParser mSymbolSession; // Check Symbol Session
|
||||
|
||||
//
|
||||
bool mAllowLong; // Allow Long/Buy Trade Type
|
||||
bool mAllowShort; // Allow Short/Sell Trade Type
|
||||
|
||||
@@ -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;
|
||||
bool isFiltered = parser.IsFiltered(
|
||||
signal,
|
||||
|
||||
Reference in New Issue
Block a user