Add also Support Opposit Signal Generating by Position to XSignal struct ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user