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:
|
// 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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user