Real last price line for Heikin Ashi chart


Category:
0
0

Add a current last price line in Heikin Ashi Chart.  Tried Last Price solution but it gave same price as HA last bar.

HA bubble shows price of it’s last bar not the current price as displayed.

Attachments:
Marked as spam
Posted by (Questions: 3, Answers: 3)
Asked on October 2, 2020 3:35 pm
537 views
1
Private answer

def lastBar = !IsNaN(close) and IsNaN(close[-1]);
rec trackLast = if lastBar then close else if IsNaN(close) then trackLast[1] else Double.NaN;
plot data = trackLast;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on October 2, 2020 3:50 pm