I have an indicator (Solid Green Line) that calculates average price paid. Looking to see if anyone has or can create one that will do what the dotted green line does. Takes the value from the price paid and calculates the cost basis once dividends are included. Schwab doesn't include this in its P/L and is have to recalculate every month. Any help greatly appreciated.