Page 1 of 1

Function to fetch OHLC of the reference candle

Posted: Tue Nov 17, 2020 9:05 pm
by pradeeppharma2020
Hello Scripters,

I am looking to find OHLC values of the particular candle which meets the requirement.

e.g. I am screening for hammer printed on 15-Aug-2020. I want my entry when its High / Low is breached. How can I find it's High or low of that candle.

Thanks
Pradeep

Re: Function to fetch OHLC of the reference candle

Posted: Thu Dec 10, 2020 4:20 am
by Matthew
Hi Pradeep! There are many methods to achieve this, one is to use the valuewhen() function.

I don't have time to write the code out today but here's a detailed article on that function: https://backtest-rookies.com/2018/04/06 ... -happened/