test x5 provider reading Buffers correctly and also CanIgnoreProcess works properly ...

This commit is contained in:
2024-05-19 03:51:48 +03:30
parent 4c1b97e805
commit 4eba93231a
6 changed files with 463 additions and 84 deletions
+8 -8
View File
@@ -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
//
);