OPEN-SOURCE SCRIPT

BB21_MA200_Strategy

Mis à jour
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
Notes de version
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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité