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
+4 -3
View File
@@ -362,7 +362,8 @@ class XCBarAnalyser : public XCBase
* Detect Price Consolidation ...
*
* @param bar: XOHCL instance Reference, Start Bar ...
* @param loopback: Integer, Consolidation Range Finder ...
* @param loopback: Integer, Consolidation Length Finder ...
* @param consolidationRange: Integer, Consolidation Range Finder ...
* @param upper: Double Reference ...
* @param lower: Double Reference ...
* @param upperAppliedTo: ENUM_APPLIED_PRICE member, Upper Price ...
@@ -375,6 +376,7 @@ class XCBarAnalyser : public XCBase
double &upper,
double &lower,
int loopback = 30,
int consolidationRange = 70,
ENUM_APPLIED_PRICE upperAppliedTo = PRICE_HIGH,
ENUM_APPLIED_PRICE lowerAppliedTo = PRICE_LOW //
)
@@ -399,8 +401,7 @@ class XCBarAnalyser : public XCBase
return result;
}
//
int consolidationRange = 30;
//
double points = GetPoints(bar.symbol);
int index = bar.Index();