HayeTrading

MASelect Crossover Strat

Basic Crossover Strategy for backtesting purposes, to use with the study+alert script.

Use "Format" to change your settings. Both Moving Averages can be changed individually to swap between EMA (Exponential Moving Average), SMA (Simple Moving Average), WMA (Weighted Moving Average), DEMA (Double Exponential Moving Average) and VWMA (Volume Weighted Moving Average).

"Active Length" should be shorter than "Base Length". As usual with crossover strategies, candle resolution will affect results greatly. Longer=better.

Strategy options are "Long+Short" or "Long Only".

Entries/Exits are based on crossovers/crossunders only, but I encourage you to add further exit conditions and play around with the code.

I made this for beginners on Autoview discord to have something to play with, and added some unnecessary visual changes just to give code examples (changing things like background color, candle color, line color, plotting shapes, different plot styles).

Play around combining different types of Moving Averages of different lengths.

discord.gg/mFYvr2bGtu - FREE Trading Chat Rooms
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

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.

Quer usar esse script no gráfico?