How can I found CCI overbought/oversold dynamic High Low value by candle price or candle ID
-
Thanks for review my question and hope you can help me as expected.
- CCI period 10
- Price close above 100
- Price close below 100
I need the dynamic high of overbought.
- CCI period 10
- Price close below -100
- Price close above -100
I need the dynamic low of oversold.
And it is better how can I call inside variable.

Thanking for your hard time.
-
-
@l-andorrà
Sir, thanks for your hard work. I need actually the high between Cross above CCI >100 and Cross below <100.
In between candle hi I need to store as variable so that I can use it in my strategy.dynamically high should be calculate when candle cross above CCI 100 and when cross below CCI 100 then will cound the candle/price high.
Please help me with a design.
Thanks for your hard time.
-
So high countdown will start fro CCI cross above 100 and countdown will end when CCI cross below 100. Finally I require the exact high of between cross above and cross below as like my chart.

-
@l-andorrà
When cross above CCI 100 start dynamic countdown of Hi and when cross below CCI 100 fixed the Hi price in variable. And better if every overbought cycle with specific name like 1High, 2High, 3High. So that I can use this high in my strategy.Sir please share a project.

-
@mak Wow. That is an ambitious project. I'm afraid the loop you need to do that is away from my abilities. We should try to ask miro or roar for help here. Are any of you available?
-
Ok, I have cci overbought/oversold histogram custom indicator. How can I call overbought area in variable as Hi and vice verse the oversold?

Thanks.
-
@mak Can you confirm that indicator's buffers are correctly identified by fxDreema?
-
Yes i thing both buffers correctly. But I don't how to set them as high low. The market properties define high/low by start and end candle. So I think the cci overbought/oversould buffers can work as dynamically. But I don't know how to do it.
Hope you can help me no it.
If you want I can share the indicator.
-
@mak Yes, please. Can you share it?
-
@l-andorrà
cci overbought and oversold indicator
0_1605262456979_cciobos.mq4 -
@mak I see no problem in the indicator. Are you sure both 'cciob' and 'ccios' variables are of a double type? And I also see there is no value for all candles. Did you consider that?
-
I'm not programmer. Please can u do something and share link. Hope you can help in best way.
-
attached herewith overbought cross over individual and overbought close individual indicator I created you. If necessary you can use overbought as start and overbought close as end candle in Market properties function.
I just need the high value in dynamic variable. Thanks.1_1605351246417_obstop.mq4 0_1605351246416_ob.mq4
-
I tried as attached but I am sure that I did something wrong. So it is not working at all.

-
@mak Ok. Look at this example image:

The first thing you need to establish is the period of past candles to search. Roar used 100 (look at that 'end candle ID'). Is that enough for you?
Then you are looking for two dinamic variables, overbought and oversold. This means you will have to duplicate this structure, as you already did.
Finally you need to insert each variable in the 'candle ID box' of each buffers. That is what is required in your structure now.