NexusFi: Find Your Edge


Home Menu

 





ATR using WMA instead of SMA


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,301 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10

I have been trying unsuccessfully in getting the ATR calculated using WMA in easylanguage/tradestation. Their built in ATR study uses the SMA method, and that's it. No way to change it that I can tell.
Anyone know how to adjust this?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
CME Lists U.S. Election Event Contracts as 2028 Democrat …
Prediction Markets & Event Contracts
Kalshi Rockets to $22B, Passes Polymarket in Volume -- B …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Ceasefire in Name Only: Three Numbers That Define the Ir …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146

 
Code
{ Weighted Average ATR
Reguested by gurji on 9/14/2022
}
inputs: Len( numericsimple ) ;

_szATR_WMA = WAverage( TrueRange, Len ) ;
Function was named _szATR_WMA.
You may rename it and re-compile.


Reply With Quote
  #3 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10


Awesome thanks! Since I have your attention, do you know which function or any way to get it based on the RMA like tradingview uses?


Reply With Quote
  #4 (permalink)
kls06541
New York
 
Posts: 14 since Aug 2022
Thanks Given: 7
Thanks Received: 0

Why is WMA better than SMA?

Sent using the NexusFi mobile app


Reply With Quote
  #5 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10


kls06541 View Post
Why is WMA better than SMA?

Sent using the NexusFi mobile app

In the strategy I am using, WMA produces better results than SMA.
But after further testing, I found that RMA is even better. So now I am trying to find a function for RMA, but I don't see it there.


Reply With Quote




Last Updated on September 15, 2022


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts