Jump to content
Medved Trader Forums

SMA of a variable?

Recommended Posts

Hello for anyone who could help. In an advanced paintbar, I want to find the SMA of a variable. the formula I'd use in think or swim/trading view/python is something like:

Var1 = Close - (an SMA of Close)

Var2 = (an SMA of Var1)

There's probably a simple way to do this, or maybe it's just out of reach for C#, anyone know how to do it?



Found it


Edited by zayjayspx
found the answer
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...