OPEN-SOURCE SCRIPT

BB21_MA200_Strategy

已更新
This strategy follows the trend and keeps you in the trend until it breaks SMA 200

SMA setting is 200
BB setting is 21

BUY
====
when BB is (lower band and upper band) above SMA 200 and price crossing above BB middle line


Partial Exit
==========
When Lower BB crossing down SMA200 , exit 30%


Total Exit
=========
When BB middle band crosses down SMA200 , exit ALL


Stop Loss
======
default is set to 5%


Risk Management
================
This is new parameter I have introduced in my strategies. Default value is 10% . That means , if your capital is 10000 , you are willing to risk 10% of it ... i.e 1000.

It doesnot mean that you are buying shares/units for 1000 only. It is different ...see below

Your trade size is calculated based on Risk% .... capital x risk 5 / stop Loss units

for further explanation you can check Alexander Elder's risk management rule. He mentioned 2% rule for 100K account. But most of us dont have 100K accounts .. . so I have defaulted 10% on 10K account. You can change this values and see the results. It wont change the number of trades or profit factor. It will increase the net profit.


Warning
=======
For educational purposes only
版本注释
Number of units calculation has been fixed.

earlier , it took more trades even though equity is not available. That has been fixed.
eemanimohaneeMoving AveragessmaTrend Analysistrendfollowing

开源脚本

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

想在图表上使用此脚本?

免责声明