Reading again from starting i think there should be some correction will post again after making the changes.
I think your entry is fine, your initial stoploss would be below the 4th ( green) candle(counted from the doted/deviding line you have drawn), and then you would trail it to below 9th candle (red) and then below 18th candle (red doji). Stop is trailed to the next pivot low only when a higher high is made. That way you won't need to reenter and would exit at the last stop you have marked.