This commit is contained in:
2024-06-26 21:58:46 +03:30
parent 9338a48850
commit ba6fd4f135
6 changed files with 51 additions and 4 deletions
+16 -2
View File
@@ -1,6 +1,5 @@
{
"todo": [],
"in-progress": [
"todo": [
{
"assignedTo": {
"name": "Hadi Khazaee Asl"
@@ -13,6 +12,21 @@
"id": "82",
"references": [],
"title": "add trend line class and test it"
}
],
"in-progress": [
{
"assignedTo": {
"name": "Hadi Khazaee Asl"
},
"creation_time": "2024-06-26T18:27:39.722Z",
"description": {
"content": "- [] Linear Regression Line 9 and 18;\n- [] Linear Regression Value;\n\nadd all those into 1 Indicator for Recieveing Verification for Signals;",
"mime": "text/markdown"
},
"id": "85",
"references": [],
"title": "Converts Linear Regression Line and Value indicator"
},
{
"assignedTo": {
+35 -2
View File
@@ -5303,7 +5303,15 @@ private:
int positionsCount = mTrader.GetPositions(positions);
if (!IsValidSize(positionsCount))
{
//
mForce = false;
//
datetime cTime = TimeCurrent();
string message = "Exit From Force State: " + ToString(cTime);
//
// Log(message);
return;
}
@@ -5315,7 +5323,32 @@ private:
);
//
mForce = marigin >= forceMargin && oldestAge >= 288;
// Check Force State ...
bool isForce = marigin >= forceMargin && oldestAge >= 288;
if (!isForce)
{
//
if (mForce)
{
//
mForce = false;
//
datetime cTime = TimeCurrent();
string message = "Exit From Force State: " + ToString(cTime);
//
// Log(message);
}
return;
}
else
{
mForce = true;
}
//
// Prevent Moving Forward From Non Force State ...
if (!mForce)
{
return;
@@ -5347,7 +5380,7 @@ private:
}
//
Log("symbolPositionsCount: " + ToString(symbolPositionsCount));
// Log("symbolPositionsCount: " + ToString(symbolPositionsCount));
}
//
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.