Add also Support Opposit Signal Generating by Position to XSignal struct ...

This commit is contained in:
2024-05-30 14:16:04 +03:30
parent a6b5997ee0
commit 8c6d88d49f
2 changed files with 429 additions and 388 deletions
@@ -2980,17 +2980,7 @@ public:
//
string symbol = GetSymbol();
ENUM_TIMEFRAMES period = GetPeriod();
double tpPoint = 60;
double slPoint = 30;
double volume = GetStaticVolume(); // * signalPusher;
double tpPrice = PointToPrice(
tpPoint,
symbol //
);
double slPrice = PointToPrice(
slPoint,
symbol //
);
ENUM_POSITION_TYPE type = hasLong
? POSITION_TYPE_BUY
: POSITION_TYPE_SELL;