Pine Editor: How to plot average value of two indicators?

For example: I want to plot MFI and RSI in the same box and plot their average value. I tried to write two functions one over the other in the editor window; it gave error. The same "src" function; the same "length" function used etc.
How do I combine them without error? Thanks
1 person has
this question