zayjayspx Posted April 25 Report Share Posted April 25 (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 by zayjayspx found the answer 1 Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted April 28 Report Share Posted April 28 FIFOQueue (well, StateFIFOQueue) is your friend. Quote Link to comment Share on other sites More sharing options...
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.