NexusFi: Find Your Edge


Home Menu

 





ATR using WMA instead of SMA


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,441 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

  #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
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 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


© 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