Can someone write an indicator that displays on the chart the information about the current bar number in a certain period, which is specified in the settings. For example, the indicator is run on days, the reporting period is a month specified in the settings. This means that the indicator displays on the chart the number that, according to the account, is the zero bar from the beginning of the calendar month. On MT4, please)
Happy Holidays to all)
Happy hunting)
Intraday only:
function
//+----------------------------------------------------------------------------+//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru |//+----------------------------------------------------------------------------+//| Версия : 26.02.2008 |//| Описание : Возвращает расчётный номер бара от начала суток. |//| : Нумерация баров начинается с 1 (единица). |//+----------------------------------------------------------------------------+//| Параметры: |//| tf - таймфрейм (0 - текущий таймфрейм) |//| dt - дата и время открытия бара (0 - текущее время) |//+----------------------------------------------------------------------------+int iBarOfDayCalc(int tf=0, datetime dt=0) {
if (tf<=0) tf=Period();
if (dt<=0) dt=TimeCurrent();
if (tf>PERIOD_D1) {
Print("iBarOfDayCalc(): Таймфрейм должен быть меньше или равен D1");
return(0);
}
double ms=MathMod(dt/60, 1440); // количество минут от начала сутокint bd=MathFloor(ms/tf)+1; // номер бара от начала сутокreturn(bd);
}
Good day to help. I have an Awesome Oscillator indicator that shows the difference between simple moving averages with periods of 5 and 34 median prices. Can someone write a new indicator or suggest how to change the AO so that the indicator shows the dynamics in the form of a histogram using the following formula: [simple moving average of median prices with period 3 times simple moving average of tick volume with period 3] minus [simple moving average of median prices with period 21 times simple moving average of tick volume with period 21]?
volizordlo: Hello, help me out here. There is an indicator Awesome Oscillator that shows the difference between simple moving averages with periods of 5 and 34 median prices. Can someone write a new indicator or suggest how to change the AO to display the dynamics of the indicator as a histogram according to the following formula: [simple moving average of median prices with period 3 multiplied by
a simple tick volume moving average with a period of 3
] minus [simple moving average of median prices with period 21 multiplied by a simple moving average of tick volume with period 21]?
My regards to the esteemed community!
Can someone write an indicator that displays on the chart the information about the current bar number in a certain period, which is specified in the settings. For example, the indicator is run on days, the reporting period is a month specified in the settings. This means that the indicator displays on the chart the number that, according to the account, is the zero bar from the beginning of the calendar month. On MT4, please)
Happy Holidays to all)
Happy hunting)
Intraday only:
function
Intraday only:
function
Thank you, of course.
But intraday won't work. No, it doesn't.
Hello, help me out here. There is an indicator Awesome Oscillator that shows the difference between simple moving averages with periods of 5 and 34 median prices. Can someone write a new indicator or suggest how to change the AO to display the dynamics of the indicator as a histogram according to the following formula: [simple moving average of median prices with period 3 multiplied by
a simple tick volume moving average with a period of 3
] minus [simple moving average of median prices with period 21 multiplied by a simple moving average of tick volume with period 21]?is there an averaging of tick volume?
you mean the averaging of tick volume?
yes
Yeah.
ok, i will try to multiply
i wonder what the result is
but do you have a picture of what the result should be ?
ok, i will try to multiply
i wonder what the result is
but do you have a picture of what the result should be ?
It's supposed to look like the same ao or macd. but that's just an idea. thanks!
ok
It's supposed to look like the same ao or macd. but that's just an idea. thank you!