EMA, WEIGHTED AND WILDER AVERAGES CODE
Forums › ProRealTime English forum › ProBuilder support › EMA, WEIGHTED AND WILDER AVERAGES CODE
- This topic has 10 replies, 4 voices, and was last updated 4 years ago by Nicolas.
-
-
02/04/2018 at 9:34 PM #6148702/05/2018 at 12:48 AM #61504
Proprietary software is usually undisclosed, you may try to apply PRT but I don’t think you’ll get any useful help (it would be odd if they did!).
You may search this forum for versions that you may modify to suit your needs.
You may also search the web for the formulas and build them on your own.
02/05/2018 at 7:18 AM #61509Hi Roberto, yes I know probuilder indicators codes are not available, actually I was asking if anyone has programmed on it’s own the codes of the 3 averages to be able to modify them.
Overall to use them as daily filter on the intraday timeframes.
Max
02/05/2018 at 8:30 AM #6151902/05/2018 at 8:39 AM #6152002/06/2018 at 7:45 AM #6163002/06/2018 at 8:19 AM #6163502/06/2018 at 9:10 AM #61638Weighted Moving Average code:
WMA1234567891011121314period = 10price = customclosepricesum=0a=0for i = 0 to period dop=period-ipricesum = pricesum+price[i]*pa = a + inextwma = pricesum/areturn wma as "wma"All is good now 🙂
1 user thanked author for this post.
02/06/2018 at 1:13 PM #6167912/15/2020 at 10:45 AM #153814Hello Nicolas 🙂 Thanks for the codes ! It’s really useful
I’m wondering something about the wilder moving average code, on this line:
1wilder = close * K + wilder[1] * (1-K)I understand it’s a sophisticated way to make a loop,
at the first iteration of the loop, i guess wilder is undefined, so “wilder[1] * (1-K)” should equals to “undefined * (1-K)”
so my guess is that it is equal to 0 on the first iteration
am I right ?
12/15/2020 at 11:04 AM #153816 -
AuthorPosts
Find exclusive trading pro-tools on