adr_adr

Simple MACD Strategy

adr_adr Atualizado   
This simple MACD strategy takes in account a given a time frame and the basic MACD parameters ( short, long, signal values).
The current implementation does not takes persistance or thresholds in accounts.
Notas de Lançamento:
EMA open instead of close value in calculation
Notas de Lançamento:
Option for choosing open / close for ema calculation function
Notas de Lançamento:
Custom label in for EMA input switch
Notas de Lançamento:
Strategy update:
  • after the long trade closed it automatically opens a short trade until the next MACD crossover, when short is closed and long is opened.
Notas de Lançamento:
Updated switch for Short and Long strategy options
Notas de Lançamento:
Long Short switch update
Notas de Lançamento:
"Short only" option added to strategy types
Notas de Lançamento:
Multiple updates issued:
  • Threshold values implementation, which can offset the MACD histogram crossing value. Eg.: thresholdUp: +10 => Long open triggers at MACD histogram value 20
  • Persistance implementation, which sets a history offset after crossing over threshold
  • Gekko strategy mode for using thresholdUp/thresholdDown and persistence
  • Plotting persistance - last bar since cross
Notas de Lançamento:
This update merges the previously developed threshold and persistence values into the basic Long/Short/Long&Short strategies.

All strategy types are currently supporting the original Gekko MACD strategy parameters. If you don't need threshold and persistence values use zero values in those parameters.

Changelog:
  • Pyramiding OFF by default
  • Initial capital set to 6500 by default
  • Long/Short/Long&Short final startegies implemented
  • Bars since buy/sell are calculated and plotted based on threshold and persistence
Script protegido
Este script é publicado como de código fechado e você pode usá-lo livremente. Você pode favoritá-lo para utilizá-lo em um gráfico. Você não pode visualizar ou modificar seu código fonte.
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?