OPEN-SOURCE SCRIPT

Coding lesson 1

3 295
In the strategy of only 6 lines of a program code. It is less just not to make. This script is necessary for training, but not for trade. It isn't recommended to trade using this strategy.

If the price is higher than SMA with the period of 7 bars - to open a long position
If the price is lower than SMA with the period of 7 bars - to open a short position

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.