I want to plot a composite 2-part moving average composed of a true centered avg, and a exponential avg.
Here is how it should work: If there is a value of "High" 5-days into the future, plot y (10-day centered avg) , otherwise plot z (10-day exponential avg). I want to plot a single "composite avg" comprised of a true centered avg when it can be computed, and an exponential avg when there is not enough forward data available to compute the centered avg. My attempt: mp=(H+L)/2; x=Ref(H,5); y=Ref(MA(mp,10),5); z=EMA(mp,10); Plot ( IIf ( IsNull (x) ,z ,y ), "test", colorRed,styleLine) ; I can't get it to work, It plots y, the centered avg but won't plot z, the exponential average. Ideas? Thanks
