Thank you for your response.
Two items of concern here. First is that Plot0 is being set to the value I believe you intend for the EMA plot because the EMA plot is never set. Secondly, the CurrentBar < 1 will only work for the first bar series but you need to check the four other bar series in your code.
Please see the MarketThrustEdit attached to this response for the corrections.
Comment