♥ 0 |
Hi Pete, I was interested in developing a strategy that included when heikin ashi candles changed from red to green, and green to red. I’m having trouble with that code, and I’m assuming the problem is something relating to the compounded value. Is there anything that strikes you as wrong about this? def haclose = (open + high + low + close) / 4; def Yesterday_haclose = (open from 1 bar ago + high from 1 bar ago + low from 1 bar ago + close from 1 bar ago) / 4 ; def buy = def sell = AddOrder(OrderType.BUY_AUTO, buy, tickcolor = Color.GREEN, arrowcolor = Color.GREEN, name = “Buy”);
Marked as spam
|
Haha, ahh, well that’s embarrassing…. Thanks for your help..!