TradingView
heniu_1
Feb 29, 2020 1:40 PM

WMA + MACD strategy with trailing stop 

PKNORLENGPW

Description

Hi!

That's my first strategy. I already learn pine, so i will work on it more. Now i search how to make trailing stop working.

"WMA + MACD strategy with traiing stop" is very simple strategy which is designated for stocks market. It is created only to take long positions.

Buy signal is when WMA(120) is below price and macd(10,20,10) histogram is higher than 0.

Position should be automaticly closed when price hits stoploss level.

One transaction should be max 20% of our capital and stoploss is set 3% lower than last closing price.
Comments
victorurena55
hola!, podrias modificar par que el indicador de compra cuando se junten estos 2 parametros, se suba en la wma 21 y el macd de compra la señal? gracias!!!
More