last ...
This commit is contained in:
Vendored
+16
-2
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"todo": [],
|
"todo": [
|
||||||
"in-progress": [
|
|
||||||
{
|
{
|
||||||
"assignedTo": {
|
"assignedTo": {
|
||||||
"name": "Hadi Khazaee Asl"
|
"name": "Hadi Khazaee Asl"
|
||||||
@@ -13,6 +12,21 @@
|
|||||||
"id": "82",
|
"id": "82",
|
||||||
"references": [],
|
"references": [],
|
||||||
"title": "add trend line class and test it"
|
"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": {
|
"assignedTo": {
|
||||||
|
|||||||
@@ -5303,7 +5303,15 @@ private:
|
|||||||
int positionsCount = mTrader.GetPositions(positions);
|
int positionsCount = mTrader.GetPositions(positions);
|
||||||
if (!IsValidSize(positionsCount))
|
if (!IsValidSize(positionsCount))
|
||||||
{
|
{
|
||||||
|
//
|
||||||
mForce = false;
|
mForce = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
datetime cTime = TimeCurrent();
|
||||||
|
string message = "Exit From Force State: " + ToString(cTime);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Log(message);
|
||||||
return;
|
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)
|
if (!mForce)
|
||||||
{
|
{
|
||||||
return;
|
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.
Reference in New Issue
Block a user