This commit is contained in:
2025-05-20 21:48:12 +03:30
parent 587d208823
commit 70876676f5
7 changed files with 5904 additions and 1417 deletions
+17 -1
View File
@@ -426,7 +426,8 @@ class XCBarArrowObject : public XCBaseObject
int window,
int arrow,
XOHCL &bar,
ENUM_X_PRICE priceType //
ENUM_X_PRICE priceType,
double threshold = 5 //
)
{
//
@@ -448,6 +449,21 @@ class XCBarArrowObject : public XCBaseObject
datetime time = bar.time;
double price = bar.GetPrice(priceType);
//
if (threshold > 0)
{
//
double thresholdPrice = threshold * GetPoints(bar.symbol);
if (priceType == X_PRICE_HIGH)
{
price += thresholdPrice;
}
else if (priceType == X_PRICE_LOW)
{
price -= thresholdPrice;
}
}
//
result = mArrow.Create(
chart_id,