test x5 provider reading Buffers correctly and also CanIgnoreProcess works properly ...
This commit is contained in:
@@ -2533,7 +2533,7 @@ struct XPositionInfo
|
||||
// Fill from a Signal ...
|
||||
// The Signal must Executed ...
|
||||
bool BySignal(
|
||||
XSignal &signal // the Signal which need to use
|
||||
XSignal &mSignal // the Signal which need to use
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -2543,24 +2543,24 @@ struct XPositionInfo
|
||||
Clean();
|
||||
|
||||
//
|
||||
result = signal.IsValid() && signal.IsExecuted() && signal.mode == X_ORDER_MODE_MARKET;
|
||||
result = mSignal.IsValid() && mSignal.IsExecuted() && mSignal.mode == X_ORDER_MODE_MARKET;
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
ticket = signal.positionId;
|
||||
action = signal.action;
|
||||
ticket = mSignal.positionId;
|
||||
action = mSignal.action;
|
||||
|
||||
//
|
||||
// Select TPS and SLS from signal ...
|
||||
|
||||
//
|
||||
double sl = 0;
|
||||
bool hasRegularSL = signal.RegularSL(sl);
|
||||
bool hasRegularSL = mSignal.RegularSL(sl);
|
||||
Copy(
|
||||
signal.sls,
|
||||
mSignal.sls,
|
||||
sls
|
||||
//
|
||||
);
|
||||
@@ -2576,9 +2576,9 @@ struct XPositionInfo
|
||||
|
||||
//
|
||||
double tp = 0;
|
||||
bool hasRegularTP = signal.RegularTP(tp);
|
||||
bool hasRegularTP = mSignal.RegularTP(tp);
|
||||
Copy(
|
||||
signal.tps,
|
||||
mSignal.tps,
|
||||
tps
|
||||
//
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user