apply trail stop and break even ...

This commit is contained in:
2025-02-11 23:28:28 +03:30
parent fe129c3288
commit 4a70a3ef4f
11 changed files with 2682 additions and 1063 deletions
+43 -3
View File
@@ -68,9 +68,8 @@ enum ENUM_XPOIS
X_POI_BEARISH_ORDERBLOCK, // Bearish Order Block ...
//
// Fair Value Gaps ...
X_POI_BULLISH_FVG, // Bullish Order Block ...
X_POI_BEARISH_FVG, // Bearish Order Block ...
X_POI_CONSOLIDATION_ZONE, // Consolidation Zone ...
X_POI_BULLISH_FVG, // Bullish Order Block ...
X_POI_BEARISH_FVG, // Bearish Order Block ...
};
//
@@ -5959,6 +5958,7 @@ struct XConsolidationZone
//
};
//
struct XBoxZone
{
//
@@ -8293,6 +8293,46 @@ bool ToBox(
return result;
}
/**
* Converts to XBoxZone ...
*
* @return ( bool )
*/
bool ToBox(
XBoxZone &box,
XConsolidationZone &item //
)
{
//
bool result = false;
//
box.Clean();
//
result = item.IsValid();
if (!result)
{
return result;
}
//
box.upper = item.upper;
box.lower = item.lower;
box.dir = item.breakDir;
box.from = item.initTime;
box.symbol = item.symbol;
box.period = item.period;
box.to = item.breakerBar.time;
box.type = "X_CONSOLIDATION_ZONE";
//
result = box.IsValid();
//
return result;
}
/**
* Get Oldest Zone ...
*