NexusFi: Find Your Edge


Home Menu

 





ATR using WMA instead of SMA


Discussion in EasyLanguage Programming

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




 
Search this Thread

ATR using WMA instead of SMA

(login for full post details)
  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures Close-Out Policy
Commodities
Request for MACD with option to use different MAs for fa …
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Looking for an MQL4 MetaTrader programmer/coder
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
73 thanks
Battlestations: Show us your trading desks!
35 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Daytrading ES & NQ
26 thanks

(login for full post details)
  #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
(login for full post details)
  #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
(login for full post details)
  #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
(login for full post details)
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts