Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8035947476 | |||
| acba19e38f | |||
| 0d51499dcf |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,7 +12,7 @@
|
|||||||
#ifdef SHOW_INDICATOR_INPUTS
|
#ifdef SHOW_INDICATOR_INPUTS
|
||||||
#ifdef MQL5_MARKET_DEMO // hardcoded values
|
#ifdef MQL5_MARKET_DEMO // hardcoded values
|
||||||
|
|
||||||
int barSizeInTicks = 180; // Range bar size (in points)
|
int barSizeInTicks = 180; // Range bar size (in ticks)
|
||||||
ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
||||||
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
||||||
int atrPeriod = 14; // ATR period
|
int atrPeriod = 14; // ATR period
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
#else // user defined settings
|
#else // user defined settings
|
||||||
|
|
||||||
|
|
||||||
input int barSizeInTicks = 100; // Range bar size (in points)
|
input int barSizeInTicks = 100; // Range bar size (in ticks)
|
||||||
input ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
input ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
||||||
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
||||||
input int atrPeriod = 14; // ATR period
|
input int atrPeriod = 14; // ATR period
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
#else // don't SHOW_INDICATOR_INPUTS
|
#else // don't SHOW_INDICATOR_INPUTS
|
||||||
int barSizeInTicks = 180; // Range bar size (in points)
|
int barSizeInTicks = 180; // Range bar size (in ticks)
|
||||||
ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
ENUM_BOOL atrEnabled = false; // Enable ATR based bar size calculation
|
||||||
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
ENUM_TIMEFRAMES atrTimeFrame = PERIOD_D1; // Use ATR period
|
||||||
int atrPeriod = 14; // ATR period
|
int atrPeriod = 14; // ATR period
|
||||||
|
|||||||
@@ -194,7 +194,6 @@ int RangeBars::Init()
|
|||||||
s.atrPercentage,
|
s.atrPercentage,
|
||||||
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
|
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
|
||||||
TradingSessionTime,
|
TradingSessionTime,
|
||||||
TopBottomPaddingPercentage,
|
|
||||||
showPivots,
|
showPivots,
|
||||||
pivotPointCalculationType,
|
pivotPointCalculationType,
|
||||||
RColor,
|
RColor,
|
||||||
@@ -203,11 +202,8 @@ int RangeBars::Init()
|
|||||||
PDHColor,
|
PDHColor,
|
||||||
PDLColor,
|
PDLColor,
|
||||||
PDCColor,
|
PDCColor,
|
||||||
showCurrentBarOpenTime,
|
|
||||||
AlertMeWhen,
|
AlertMeWhen,
|
||||||
AlertNotificationType,
|
AlertNotificationType,
|
||||||
SoundFileBull,
|
|
||||||
SoundFileBear,
|
|
||||||
cis.MA1on,
|
cis.MA1on,
|
||||||
cis.MA1lineType,
|
cis.MA1lineType,
|
||||||
cis.MA1period,
|
cis.MA1period,
|
||||||
@@ -245,7 +241,12 @@ int RangeBars::Init()
|
|||||||
cis.ChannelPriceLabel,
|
cis.ChannelPriceLabel,
|
||||||
cis.ChannelMidPriceLabel,
|
cis.ChannelMidPriceLabel,
|
||||||
true); // used in EA
|
true); // used in EA
|
||||||
// DisplayAsBarChart & ShiftObj let at defaults
|
// TopBottomPaddingPercentage,
|
||||||
|
// showCurrentBarOpenTime,
|
||||||
|
// SoundFileBull,
|
||||||
|
// SoundFileBear,
|
||||||
|
// DisplayAsBarChart
|
||||||
|
// ShiftObj; all letft at defaults
|
||||||
|
|
||||||
if(rangeBarsHandle == INVALID_HANDLE)
|
if(rangeBarsHandle == INVALID_HANDLE)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#property copyright "2009-2017, MetaQuotes Software Corp."
|
#property copyright "2009-2017, MetaQuotes Software Corp."
|
||||||
#property link "http://www.mql5.com"
|
#property link "http://www.mql5.com"
|
||||||
#property description "Average True Range"
|
#property description "Average True Range"
|
||||||
|
#property description "Adapted for use with TickChart by Artur Zas."
|
||||||
//--- indicator settings
|
//--- indicator settings
|
||||||
#property indicator_separate_window
|
#property indicator_separate_window
|
||||||
#property indicator_buffers 2
|
#property indicator_buffers 2
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#property copyright "2009, MetaQuotes Software Corp."
|
#property copyright "2009, MetaQuotes Software Corp."
|
||||||
#property link "http://www.mql5.com"
|
#property link "http://www.mql5.com"
|
||||||
#property description "Commodity Channel Index"
|
#property description "Commodity Channel Index"
|
||||||
|
#property description "Adapted for use with TickChart by Artur Zas."
|
||||||
#include <MovingAverages.mqh>
|
#include <MovingAverages.mqh>
|
||||||
//---
|
//---
|
||||||
#property indicator_separate_window
|
#property indicator_separate_window
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#property copyright "2009-2017, MetaQuotes Software Corp."
|
#property copyright "2009-2017, MetaQuotes Software Corp."
|
||||||
#property link "http://www.mql5.com"
|
#property link "http://www.mql5.com"
|
||||||
#property description "Ichimoku Kinko Hyo"
|
#property description "Ichimoku Kinko Hyo"
|
||||||
|
#property description "Adapted for use with TickChart by Artur Zas."
|
||||||
//--- indicator settings
|
//--- indicator settings
|
||||||
#property indicator_chart_window
|
#property indicator_chart_window
|
||||||
#property indicator_buffers 5
|
#property indicator_buffers 5
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
#property copyright "2009-2017, MetaQuotes Software Corp."
|
#property copyright "2009-2017, MetaQuotes Software Corp."
|
||||||
#property link "http://www.mql5.com"
|
#property link "http://www.mql5.com"
|
||||||
|
#property description "Adapted for use with TickChart by Artur Zas."
|
||||||
//--- indicator settings
|
//--- indicator settings
|
||||||
#property indicator_chart_window
|
#property indicator_chart_window
|
||||||
#property indicator_buffers 3
|
#property indicator_buffers 3
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
#property copyright "2009, MetaQuotes Software Corp."
|
#property copyright "2009, MetaQuotes Software Corp."
|
||||||
#property link "http://www.mql5.com"
|
#property link "http://www.mql5.com"
|
||||||
|
#property description "Adapted for use with TickChart by Artur Zas."
|
||||||
//--- indicator settings
|
//--- indicator settings
|
||||||
#property indicator_separate_window
|
#property indicator_separate_window
|
||||||
#property indicator_buffers 4
|
#property indicator_buffers 4
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ enum ENUM_DISPLAY_FORMAT
|
|||||||
DisplayFormat2, // 25.01 10:55
|
DisplayFormat2, // 25.01 10:55
|
||||||
};
|
};
|
||||||
|
|
||||||
input color InpTextColor = clrWhiteSmoke; // Font color
|
input color InpTextColor = clrBlack; // Font color
|
||||||
input int InpFontSize = 9; // Font size
|
input int InpFontSize = 9; // Font size
|
||||||
input int InpSpacing = 3; // Date/Time spacing factor
|
input int InpSpacing = 3; // Date/Time spacing factor
|
||||||
input ENUM_DISPLAY_FORMAT InpDispFormat = DisplayFormat1; // Display format
|
input ENUM_DISPLAY_FORMAT InpDispFormat = DisplayFormat1; // Display format
|
||||||
@@ -161,6 +161,9 @@ string NormalizeTime(datetime _dt)
|
|||||||
string minute = (dt.min<10) ? ("0"+(string)dt.min) : (string)dt.min;
|
string minute = (dt.min<10) ? ("0"+(string)dt.min) : (string)dt.min;
|
||||||
string hour = (dt.hour<10) ? ("0"+(string)dt.hour) : (string)dt.hour;
|
string hour = (dt.hour<10) ? ("0"+(string)dt.hour) : (string)dt.hour;
|
||||||
|
|
||||||
|
if((dt.mon-1) < 0 || (dt.mon-1) > 11)
|
||||||
|
return "*";
|
||||||
|
|
||||||
if(InpDispFormat == DisplayFormat1)
|
if(InpDispFormat == DisplayFormat1)
|
||||||
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
|
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user