zayjayspx Posted April 25, 2024 Report Posted April 25, 2024 (edited) 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? Edit: https://www.medvedtrader.com/trader/WebHelp/index.html?state_keeping.htm Found it Edited April 25, 2024 by zayjayspx found the answer 1 Quote
Mike Medved Posted April 28, 2024 Report Posted April 28, 2024 FIFOQueue (well, StateFIFOQueue) is your friend. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.