john_everist

SMA Direction Cross Currency Summary

john_everist 已更新   
This script shows the average SMA direction of each of the majors and crosses when compared to each other. The more blocks to the right the stronger the currency on that timeframe. The more blocks to the left the weaker the currency.

I'm finding it useful to quickly know the average flow of movement for each currency on the higher timeframes and then focus on that for a daily trade. I also like how i dont have to keep jumping between instruments to stay upto date. I'm not a 'real' trader so I have very limited time and attention for this so this does the job as a crude replacement for trawling all the chart each day.


The currencies compared are:

-NZD
-AUD
-JPY
-CHF
-EUR
-GBP
-CAD
-USD

The way it is calculated is that its based on the 20 SMA. For each currency vs the other crosses:
if the SMA is pointing up and price is higher = +2
if the SMA is pointing up and price is lower = +1
if the SMA is pointing down and price is higher = -2
if the SMA is pointing down and price is lower = -1

So if we where considering GBP. We would do that for GBPNZD, GBPAUD, GBPPJY, GBPCHF, GBPEUR, GBPCAD, GBPUSD. We would then consider this sum against all the currencies to understand the relative strength.

Due to the limit on how many instruments can be called in a single indicated you need to load it for each currencies so 8 currencies = 8 indicators.

Its a bit of a frankinstien script - it just throw it togeather so its probably got redundant code etc. Its built around 20 SMA - no idea what would happens when you change that.



版本注释:
Now you can cover 4 currencies with 1 indicator. (2 instances will cover all 8 majors and crosses)
版本注释:
Now loads all currencies in 1 indicator
版本注释:
fixing problem
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?