Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the SuperTrend policy for the JavaScript version

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

JavaScript version of SuperTrend strategy is what, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

There are many versions of SuperTrend indicators on TV. Find an algorithm that is easy to understand and transplant. Compared with the SuperTrend indicators loaded on the TV chart of the inventor's quantitative trading platform, it is found that there is a slight difference. I do not understand the reason for the time being. I look forward to the great guidance of readers. I will throw a brick to attract jade first.

SuperTrend indicator JavaScript version algorithm

Test code back test comparison:

A simple strategy for using SuperTrend metrics

The trading logic part, relatively simple, is to open long positions when the short trend turns to the long trend.

Short positions are opened when the long trend turns to the short trend.

Policy parameters:

SuperTrend transaction strategy

Policy address: https://www.fmz.com/strategy/201837

Back-test performance

Parameter setting, K-line period, reference: homily's SuperTrend V.1mura-Super trend Line system

The K-line cycle is set for 15 minutes, and the SuperTrend parameter is set to 45pm 3. Check back the most recent year of OKEX futures quarter contract, set one contract for each transaction, because the setting is only one contract at a time, so the capital utilization rate is very low, do not care about the Sharp value.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report