Required code for hykinashi chart

required CODE below chart . thanks in advance Madhann.....

In the above chart you have mentioned above manually indicating where you want to buy and sell,

it can not be defined with any programming language unless you give some conditions based on OHLC values or by set of instructions by using technical analysis etc