for loop query

  1. L

    Help on PlotText 'for' loop entries

    Hi all, I need help on fetching right data in the 'for' loop (code is done, pls help correct if wrong somewhere). Requirement is ... If Close > EMA(C,20) then Low of the candle - EMA(C,20) Else then EMA(C,20) - High of the candle And the values need to get plotted over the candle...