Topic: Candle Direction

Candle Direction
this indicator uses all available combination in last two bars as an open or close logics

http://forexsb.com/repository/repositor … -direction

Re: Candle Direction

ahmedalhoseny wrote:

Candle Direction
this indicator uses all available combination in last two bars as an open or close logics

http://forexsb.com/repository/repositor … -direction

What's that for loop on line 90 doing? A typo?

Re: Candle Direction

What's that for loop on line 90 doing? A typo?

It creates Component = new IndicatorComp[2]; 50 000 times.

Re: Candle Direction

50,000 times !!!!  i donot get it ? could you elaborate more

Re: Candle Direction

Popov wrote:

What's that for loop on line 90 doing? A typo?

It creates Component = new IndicatorComp[2]; 50 000 times.

So the right thing is removing the line 90 !!!!!

Re: Candle Direction

Updated
http://forexsb.com/repository/repositor … -direction

It uses all available directions(colors) combinations of last two candles for open and close logics
using shift function allow us to use the indicator more than one time if we need  the  combinations of more than two candles