Ioannis Karamintzios: I am creating a custom indicator and i want the readings of this indicator from the timeframe H1 to dispalyed in the timeframe M15.
if ( iMA(NULL, PERIOD_H1,.....,i) > iMA(NULL, PERIOD_H1,.....,i){ Buffer1[i] = ..........; } |
|
Hello to eveyone,
I am facing a problem, i don't know if there is a solution. I am creating a custom indicator and i want the readings of this indicator from the timeframe H1 to dispalyed in the timeframe M15.
Try the attached indicator as example. You can place it on M15 and select H1 in the parameter TF (timeframe). You'll get something like this.
Stanislav Korotky: You'll get something like this.
| You will initially. But after that, the stair step effect will be gone because it doesn't redraw the source bar zero, only the chart bar zero. See How to do your lookbacks correctly. |
Ok guys i got it.
Thank you!
One buffer has the value, color set to CLR_NONE so not shown on chart, (but in data window and pop up.)
Two buffers, one color each, with SetIndexLabel(i, NULL) so they don't show in data window.
if down: downBuffer[i]=value[i]; if(downBuffer[i+1]==EMPTY_VALUE) downBuffer[i+1]=value[i].
Try the attached indicator as example. You can place it on M15 and select H1 in the parameter TF (timeframe). You'll get something like this.
Just curious... shouldn't the limit be the Minium of the (Current_Period_iBarShift of the Higher_TF_Bars - Higher_TF_MA_Period) and the (rates_total)?
int _limit = Limit == 0 ? rates_total - Period : Limit;
int transition_barshift = iBarShift(_Symbol,Period(),iTime(_Symbol,TF,Bars(_Symbol,TF)-Period)); int limit = transition_barshift >= rates_total ? rates_total : transition_barshift;
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello to eveyone,
I am facing a problem, i don't know if there is a solution. I am creating a custom indicator and i want the readings of this indicator from the timeframe H1 to dispalyed in the timeframe M15.
For examlpe:
if ( iMA(NULL, PERIOD_H1,.....,i) > iMA(NULL, PERIOD_H1,.....,i)
{ Buffer1[i] = ..........; }
I want this <<Buffer1>> reading to dispalyed in the timeframe M15.
Thank you.
Greetings,
Ioannis