Skip to content

Commit ee4a0d0

Browse files
committed
Updated for ver. 3.18 - added new indicators
1 parent 419ea51 commit ee4a0d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+347
-32
lines changed

Experts/2MA_Cross.ex5

1.56 KB
Binary file not shown.

Experts/PriceMA_Cross.ex5

554 Bytes
Binary file not shown.

Experts/RangeBars_ExampleEA.ex5

488 Bytes
Binary file not shown.

Experts/RangeBars_ExampleEA2.ex5

-1.12 KB
Binary file not shown.
1.22 KB
Binary file not shown.
4.24 KB
Binary file not shown.
3.43 KB
Binary file not shown.
1.62 KB
Binary file not shown.

Include/AZ-INVEST/SDK/RangeBarCustomChartSettings.mqh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
double InpBarSize = 180; // Range bar size
1616
ENUM_BAR_SIZE_CALC_MODE InpBarSizeCalcMode = BAR_SIZE_ABSOLUTE_TICKS; // Bar size calculation
1717
int InpShowNumberOfDays = 7; // Show history for number of days
18+
datetime InpShowFromDate = 0; // Show history starting from
1819
ENUM_TIMEFRAMES InpAtrTimeFrame = PERIOD_D1; // ATR timeframe setting
1920
int InpAtrPeriod = 14; // ATR period setting
2021
ENUM_BOOL InpResetOpenOnNewTradingDay = true; // Synchronize first bar's open on new day
@@ -24,6 +25,7 @@
2425
input double InpBarSize = 100; // Range bar size
2526
input ENUM_BAR_SIZE_CALC_MODE InpBarSizeCalcMode = BAR_SIZE_ABSOLUTE_TICKS;// Bar size calculation
2627
input int InpShowNumberOfDays = 5; // Show history for number of days
28+
input datetime InpShowFromDate = 0; // Show history starting from
2729
input group "### ATR bar size calculation settings"
2830
input ENUM_TIMEFRAMES InpAtrTimeFrame = PERIOD_D1; // ATR timeframe setting
2931
input int InpAtrPeriod = 14; // ATR period setting
@@ -35,6 +37,7 @@
3537
double InpBarSize = 180; // Range bar size
3638
ENUM_BAR_SIZE_CALC_MODE InpBarSizeCalcMode = BAR_SIZE_ABSOLUTE_TICKS;// Bar size calculation
3739
int InpShowNumberOfDays = 7; // Show history for number of days
40+
datetime InpShowFromDate = 0; // Show history starting from
3841
ENUM_TIMEFRAMES InpAtrTimeFrame = PERIOD_D1; // ATR timeframe setting
3942
int InpAtrPeriod = 14; // ATR period setting
4043
ENUM_BOOL InpResetOpenOnNewTradingDay = true; // Synchronize first bar's open on new day
@@ -57,6 +60,7 @@ struct RANGEBAR_SETTINGS
5760
ENUM_TIMEFRAMES atrTimeFrame;
5861
int atrPeriod;
5962
int showNumberOfDays;
63+
datetime showFromDate;
6064
ENUM_BOOL resetOpenOnNewTradingDay;
6165
};
6266

@@ -109,6 +113,7 @@ void CRangeBarCustomChartSettigns::SetCustomChartSettings()
109113
settings.barSize = InpBarSize;
110114
settings.barSizeCalcMode = InpBarSizeCalcMode;
111115
settings.showNumberOfDays = InpShowNumberOfDays;
116+
settings.showFromDate = InpShowFromDate;
112117
settings.atrTimeFrame = InpAtrTimeFrame;
113118
settings.atrPeriod = InpAtrPeriod;
114119
settings.resetOpenOnNewTradingDay = InpResetOpenOnNewTradingDay;

Include/AZ-INVEST/SDK/RangeBars.mqh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ int RangeBars::Init()
199199
s.barSize,
200200
s.barSizeCalcMode,
201201
s.showNumberOfDays,
202+
s.showFromDate,
202203
"=",
203204
s.atrTimeFrame,
204205
s.atrPeriod,
@@ -242,8 +243,7 @@ int RangeBars::Init()
242243
cis.ChannelAppliedPrice,
243244
cis.ChannelMultiplier,
244245
cis.ChannelBandsDeviations,
245-
cis.ChannelPriceLabel,
246-
cis.ChannelMidPriceLabel,
246+
cis.ChannelPriceLabels,
247247
"=",
248248
true); // used in EA
249249
// TopBottomPaddingPercentage,

0 commit comments

Comments
 (0)