Importing prices into Dynamic ESS with NodeRED

Hi @ndrew ,
I am trying to implement a speculative price forecast flow in node red that extends the know price range (array) by 12 or more hours and fill those (not yet published) prices with the last/latest known price. Reason is that DESS refuses to start charging early in the day because it assumes it can’t sell after Midnight that same day. Extending the range even with a flat price or an intelligent guess of sorts would solve that without the need of tweaking any other DESS settings.
Could you help me out with a basic guideline how this could be achieved? Prices are already imported correctly by DESS, al I want is to take the newest price at the end of the range and copy/ pad that for 12 additional hours once a day early in the morning (or by a trigger such as a very low/negative current ‘now’ price)
See also: Phasing out the Node-RED Dynamic ESS implementation - #7 by UpCycleElectric