Candles Suite
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «#5 candles suite (black).mq5» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Данный продукт представляет собой пользовательский индикатор для MetaTrader 5, предназначенный для отображения ценовых баров и свечей на графике. Индикатор поддерживает несколько режимов визуализации: бары и свечи на основе анализа цены и объёма (PVA), а также стандартные бары, стандартные свечи и свечи Хейкен-Аши. Выбор режима осуществляется через входные параметры.
Настройки программы
| Настройка | Описание |
|---|---|
| Indicator_On | Включает или отключает работу индикатора на графике. |
| Select_Price_Style_to_Dispay | Разделительный заголовок группы настроек выбора стиля отображения цены. |
| __PVA_BAR_STD_HA_1234 | Выбор типа отображения цены: 1 — PVA, 2 — стандартные бары, 3 — стандартные свечи, 4 — свечи Хейкен-Аши. |
| For_PVA_Select_Style_and_Coloring | Разделительный заголовок группы настроек выбора стиля и цветов PVA. |
| __PVA_Bars_Candles_Bodies_123 | Выбор способа отображения PVA: 1 — бары, 2 — свечи, 3 — только тела свечей. |
| __PVA_Color_Simple_Standard_Default_123 | Выбор цветового режима PVA: 1 — простой, 2 — стандартный, 3 — по умолчанию. |
| PVA_Simple_________________ | Разделительный заголовок группы настроек простого режима PVA. |
| __Simple_Wicks | Цвет теней свечей в простом режиме PVA. |
| __Simple_Bull | Цвет бычьей свечи в простом режиме PVA. |
| __Simple_Bear | Цвет медвежьей свечи в простом режиме PVA. |
| __Simple_PVA_Bull | Цвет бычьей свечи при пиковом объёме в простом режиме PVA. |
| __Simple_PVA_Bear | Цвет медвежьей свечи при пиковом объёме в простом режиме PVA. |
| __Include_Rising_Volume | Включает отображение свечей с повышенным объёмом в простом режиме PVA. |
| PVA_Standard_______________ | Разделительный заголовок группы настроек стандартного режима PVA. |
| __Standard_Wicks | Цвет теней свечей в стандартном режиме PVA. |
| __Standard_Bull | Цвет бычьей свечи в стандартном режиме PVA. |
| __Standard_Bear | Цвет медвежьей свечи в стандартном режиме PVA. |
| __Standard_Bull_Rising | Цвет бычьей свечи при повышенном объёме в стандартном режиме PVA. |
| __Standard_Bear_Rising | Цвет медвежьей свечи при повышенном объёме в стандартном режиме PVA. |
| __Standard_Bull_Climax | Цвет бычьей свечи при пиковом объёме в стандартном режиме PVA. |
| __Standard_Bear_Climax | Цвет медвежьей свечи при пиковом объёме в стандартном режиме PVA. |
| Alert_______________________ | Разделительный заголовок группы настроек оповещений. |
| Show_Alert_Label | Включает отображение визуальной метки оповещения на графике. |
| Alert_On | Разрешает или запрещает вывод звукового и текстового оповещения при возникновении ситуации, определённой индикатором как пиковая. |
| Broker_Name_In_Alert | Имя брокера, добавляемое в текст оповещения для различения платформ при одновременной работе с несколькими терминалами. |
| Non_PVA_Bars______________ | Разделительный заголовок группы настроек стандартных баров. |
| __Bars_Color | Цвет стандартных баров. |
| Non_PVA_Candles___________ | Разделительный заголовок группы настроек стандартных свечей. |
| Non_PVA_Color_Options_1_2_3_4_5 | Выбор одной из пяти предустановленных цветовых схем для стандартных свечей и свечей Хейкен-Аши. |
| Apply_Wicks_OverRide_Color | Включает принудительную перекраску теней свечей в заданные цвета, переопределяя выбранную цветовую схему. |
| __Wicks_OverRide_Color_Up | Цвет верхних теней при включённом переопределении цвета теней. |
| __Wicks_OverRide_Color_Dn | Цвет нижних теней при включённом переопределении цвета теней. |
| __1_Wick_Up | Цвет верхней тени для первой цветовой схемы стандартных свечей. |
| __1_Wick_Dn | Цвет нижней тени для первой цветовой схемы стандартных свечей. |
| __1_Bull | Цвет бычьей свечи для первой цветовой схемы стандартных свечей. |
| __1_Bear | Цвет медвежьей свечи для первой цветовой схемы стандартных свечей. |
| __2_Wick_Up | Цвет верхней тени для второй цветовой схемы стандартных свечей. |
| __2_Wick_Dn | Цвет нижней тени для второй цветовой схемы стандартных свечей. |
| __2_Bull | Цвет бычьей свечи для второй цветовой схемы стандартных свечей. |
| __2_Bear | Цвет медвежьей свечи для второй цветовой схемы стандартных свечей. |
| __3_Wick_Up | Цвет верхней тени для третьей цветовой схемы стандартных свечей. |
| __3_Wick_Dn | Цвет нижней тени для третьей цветовой схемы стандартных свечей. |
| __3_Bull | Цвет бычьей свечи для третьей цветовой схемы стандартных свечей. |
| __3_Bear | Цвет медвежьей свечи для третьей цветовой схемы стандартных свечей. |
| __4_Wick_Up | Цвет верхней тени для четвёртой цветовой схемы стандартных свечей. |
| __4_Wick_Dn | Цвет нижней тени для четвёртой цветовой схемы стандартных свечей. |
| __4_Bull | Цвет бычьей свечи для четвёртой цветовой схемы стандартных свечей. |
| __4_Bear | Цвет медвежьей свечи для четвёртой цветовой схемы стандартных свечей. |
| __5_Wick_Up | Цвет верхней тени для пятой цветовой схемы стандартных свечей. |
| __5_Wick_Dn | Цвет нижней тени для пятой цветовой схемы стандартных свечей. |
| __5_Bull | Цвет бычьей свечи для пятой цветовой схемы стандартных свечей. |
| __5_Bear | Цвет медвежьей свечи для пятой цветовой схемы стандартных свечей. |
Поиск по коду файла
/*---------------------------------------------------------------------------------------------
User Notes:
This indicator is coded to run on MT4 Build 600+. It draws PVA (Price-Volume Analysis) bars
and candlesticks, as well as standard bars, candlesticks and Heiken-Ashi candles. In the PVA
mode, an alert option signals when a "Climax" situation exists. Specific details follow.
PVA Bars & Candlesticks -
The PVA bars and PVA candlesticks are used together with PVA volume for easy recognition of
when special price and volume situations occur. The special situations, or requirements for
the colors used are as follows.
Situation "Climax"
Bars with volume >= 200% of the average volume of the 10 previous chart TFs, and bars
where the product of candle spread x candle volume is >= the highest for the 10 previous
chart time TFs.
Default Colors: Bull bars are green and bear bars are red.
Situation "Volume Rising Above Average"
Bars with volume >= 150% of the average volume of the 10 previous chart TFs.
Default Colors: Bull bars are blue and bear are blue-violet.
PVA Color Options -
There are three PVA color options provided....
1. Simple: Use this option for a simple PVA two color display based on Climax only
situations (an option allows you to include "Rising" volume). You can change any
color. To start, a shade of green/red are input for the PVA bull/bear bars.
2. Standard: Use this option for the 4-color PVA display where you can change any
color. To start, the traditional PVA colors are input.
3. Default: There are no inputs. The traditional PVA four color display is
hard coded. You can easily return to this display anytime while preserving
those changes you have made to the Simple and the Standard display options.
Selecting the Type of PVA Price Display -
To display PVA set "__PVA_BAR_STD_HA_1234" to "1". You can then choose a variety of
PVA displays with the next input "__PVA_Bars_Candles_Bodies_123". Input "1" to show a
PVA bar chart. Input "2" to show a PVA candlestick chart. These bar and candlestick
display on top of the solid color Price Band. Input "3" to show only the PVA colored
bodies as overlays on top of a standard MT4 bar or candlestick chart. These bar and
candlesticks will not be on top of the solid color Price Band. Use one of the line
Price Band options with them. For these MT4 price draws select chart Properties, on the
"Colors" tab give a color to "Line graph" and on the "Common" tab uncheck "Line chart"
and check "Bar chart" or "Candlesticks". If you make these changes to chart Properties,
standard bars and candles produced by "__PVA_BAR_STD_HA_1234" equals "2" or "3" will
still properly display, however, the HA candles produced by "__PVA_BAR_STD_HA_1234"
equals "4" will not properly display.
The Alert -
When displaying PVA Candles, this indicator includes a sound-text alert that triggers
once per TF at the first qualification of the TF bar as a "Climax" situation. Set both
"Show_Alert_Label" and "Alert_On" inputs to "true" to operate the alert, and enter your
"Broker_Name_In_Alert" to avoid confusion if simultaneously using multiple platforms.
However, "Show_Alert_Label" and "Alert_On", should be set to "false" if also using the
Volumes Suite indicator, which provides the same alert and is the one to use.
STD Bars, Candlesticks and HA Candles -
Standard bars, candlesticks and Heiken-Ashi candles (modified to show price gaps) can be
displayd. Set "__PVA_BAR_STD_HA_1234" to "2" for bars. Set "__PVA_BAR_STD_HA_1234"
to "3" for standard candlesticks. Set "__PVA_BAR_STD_HA_1234" to "4" for HA candles.
Chart Properties should be set so no color is assigned to "Line chart" and so that
"Line chart" is selected. This prevents any MT4 price draw and allows this indicator
to produce the various price draws. If you change from this in order to use MT4 drawn
prices (see PVA section above) the HA candles will not properly display. To select colors
for standard and HA candles and wicks use the input "Non_PVA_Color_Options_1_2_3_4_5".
These selections color the up/down wicks a shade darker than the bull/bear candle colors,
which improves the esthetics of the price display. If you want monochromatic wicks, you
can simply make "Apply_Wicks_OverRide_Color" be "true" and input the monochromatic color
you desire at "__Wicks_OverRide_Color_Up" and "__Wicks_OverRide_Color_Dn". These two
inputs are the colors used to display standard bars.
- Traderathome, 05-30-2015
-----------------------------------------------------------------------------------------------
Acknowledgements:
BetterVolume.mq4 - for initial "climax" candle code definition (BetterVolume_v1.4).
----------------------------------------------------------------------------------------------
Suggested Colors White Chart Black Chart Remarks
indicator_color1 C'006,000,079' C'140,140,140' Candlewicks Up
indicator_color2 C'006,000,079'' C'140,140,140' Candlewicks Dn
indicator_color3 C'159,160,162' C'159,160,162' Bull STD Candle
indicator_color4 C'106,106,117' C'106,106,117' Bear STD Candle
indicator_color5 C'067,100,214' C'017,136,255' Bull Rising
indicator_color6 C'154,038,232' C'173,051,255' Bear Rising
indicator_color7 C'000,166,100' C'031,192,071' Bull Climax
indicator_color8 C'214,012,083' C'224,001,006' Bear Climax
Note: Suggested colors coincide with the colors of the Volumes Suite indicator.
---------------------------------------------------------------------------------------------*/
#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 C'140,140,140'
#property indicator_color2 C'140,140,140'
#property indicator_color3 C'159,160,162'
#property indicator_color4 C'106,106,117'
#property indicator_color5 C'017,136,255'
#property indicator_color6 C'173,051,255'
#property indicator_color7 C'031,192,071'
#property indicator_color8 C'224,001,006'
extern bool Indicator_On = true;
extern string Select_Price_Style_to_Dispay = "";
extern int __PVA_BAR_STD_HA_1234 = 1;
extern string For_PVA_Select_Style_and_Coloring = "";
extern int __PVA_Bars_Candles_Bodies_123 = 2;
extern int __PVA_Color_Simple_Standard_Default_123 = 3;
extern string PVA_Simple_________________ = "";
extern color __Simple_Wicks = C'140,140,140';
extern color __Simple_Bull = C'159,160,162';
extern color __Simple_Bear = C'106,106,117';
extern color __Simple_PVA_Bull = C'031,192,071';
extern color __Simple_PVA_Bear = C'224,001,006';
extern bool __Include_Rising_Volume = false;
extern string PVA_Standard_______________ = "";
extern color __Standard_Wicks = C'140,140,140';
extern color __Standard_Bull = C'159,160,162';
extern color __Standard_Bear = C'106,106,117';
extern color __Standard_Bull_Rising = C'017,136,255';
extern color __Standard_Bear_Rising = C'173,051,255';
extern color __Standard_Bull_Climax = C'031,192,071';
extern color __Standard_Bear_Climax = C'224,001,006';
extern string Alert_______________________ = "";
extern bool Show_Alert_Label = false;
extern bool Alert_On = false;
extern string Broker_Name_In_Alert = "";
extern string Non_PVA_Bars______________ = "";
extern color __Bars_Color = C'193,194,206';
extern string Non_PVA_Candles___________ = "";
extern int Non_PVA_Color_Options_1_2_3_4_5 = 1;
extern bool Apply_Wicks_OverRide_Color = false;
extern color __Wicks_OverRide_Color_Up = C'140,140,140';
extern color __Wicks_OverRide_Color_Dn = C'140,140,140';
extern color __1_Wick_Up = C'075,098,186';
extern color __1_Wick_Dn = C'177,058,091';
extern color __1_Bull = C'065,139,231';
extern color __1_Bear = C'222,010,052';
extern color __2_Wick_Up = C'075,098,186';
extern color __2_Wick_Dn = C'169,063,135';
extern color __2_Bull = C'065,139,231';
extern color __2_Bear = C'199,014,162';
extern color __3_Wick_Up = C'047,119,090';
extern color __3_Wick_Dn = C'177,058,091';
extern color __3_Bull = C'004,187,096';
extern color __3_Bear = C'222,010,052';
extern color __4_Wick_Up = C'047,119,090';
extern color __4_Wick_Dn = C'169,063,135';
extern color __4_Bull = C'004,187,096';
extern color __4_Bear = C'199,014,162';
extern color __5_Wick_Up = C'140,140,140';
extern color __5_Wick_Dn = C'140,140,140';
extern color __5_Bull = C'159,160,162';
extern color __5_Bear = C'106,106,117';
bool Deinitialized;
color Bull_Wick,Bear_Wick,Bull_Candle,Bear_Candle,
Bull_Rising,Bear_Rising,Bull_Climax,Bear_Climax;
double Bar1[],Candle1[],Bar2[],Candle2[],bodyHigh,bodyLow,
RisingBull[],RisingBear[],ClimaxBull[],ClimaxBear[],
av,Range,Value2,HiValue2,tempv2,high,low,open,close;
int Chart_Scale,Bar_Width,va,i,j,counted_bars,limit,ExtCountedBars;
double ExtMapBuffer1[], ExtMapBuffer2[], ExtMapBuffer3[], ExtMapBuffer4[];
double haOpen, haHigh, haLow, haClose;
color PVA_Normal_Wick = C'140,140,140';
color PVA_Normal_Bull = C'159,160,162';
color PVA_Normal_Bear = C'106,106,117';
color PVA_Bull_Rising = C'017,136,255';
color PVA_Bear_Rising = C'173,051,255';
color PVA_Bull_Climax = C'031,192,071';
color PVA_Bear_Climax = C'224,001,006';
bool Alert_Allowed;
color Alert_Color;
static bool allow = true;
static bool disallow = false;
string text;
string item1 = "[PVA Candles] Alert Box";
string item2 = "[PVA Candles] Alert Text";
string item3 = "[PVA Candles] Alert Dot1";
string item4 = "[PVA Candles] Alert Dot2";
int deinit()
{
int obj_total= OПоказано первые 50% кода (символов: 16663)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.