I want to know how much sma is in the price.

 

Do you know what code to use?

Files:
sma5_r3p.png  6 kb
sma5_2_w2i.png  18 kb
 
  1. SMA is an average of prices. How much average of prices is in the price is meaningless.

  2. Don't post pictures of code, they are too hard to read. Use the CODE button (Alt-S)!

  3. Your code is creating a SMA from future values — bogus.
Reason: