Macdbbot
Este é um expert que utiliza os indicadores MACD e bandas de bollinger para guiar-se nas operações.
O principal intuito desse expert é de se basear em zonas de reversão para realizar e fechar operações.
Sinais:
Bandas de Bollinger: se dá quando o preço atinge ou ultrapassa determinada distância entre a faixa central e as externas.
MACD: Histograma acima da linha de sinal e ambas acima de zero, sinal de venda. Histograma abaixo da linha de sinal e ambas abaixo de zero, sinal de compra.
Confirmação: pode ser tanto Bollinger quanto MACD, utilizado em um tempo gráfico maior para confirmar atuação.
A entrada/saída se dá quando o número de sinais positivos for igual ao número de sinais necessários.
Configurações de entrada do MACDBBot:
- EA Number
- EA Comment
- Expiration Date = prazo de validade para as configurações atuais
- Draw Indicators = autoexplicativo (tempo real apenas);
- GUI Position
- TimeFrame Confirmation: tempo gráfico para o sinal de confirmação. (Deve ser múltiplo inteiro positivo do tempo gráfico corrente);
- TimeFrame Signal Confirmation: sinal utilizado para a confirmação em outro tempo gráfico. Caso "None", não utilizará sinal de confirmação maior.
- Number of Signals to Confirm: número de sinais necessários para abrir posição.
- Lots to trade(volume) = utilizado como lote padrão para Autolot também.
- Initial Deposit
- Global Max DD = maxima perda admissivel, remove o expert caso ativada.
- Local Max DD = maxima perda admissivel no mesmo dia, congela o expert até o próximo dia.
- Global Alert = emite mensagem caso o Drawdown global seja atingido.
- Autolot Size = valor em unidades monetárias para utilizar o lote padrão.
- Autolot Step = valor do passo em unidades monetárias para ajustar o autolot
- StopLoss = número de pontos máximos a serem perdidos durante uma operação. "0" = off
- TakeProfit = número de pontos máximos a serem obtidos durante uma operação. "0" = off
- TrailingStop = número de pontos utilizados no cálculo do stop móvel.
- Trailing Type
- Parabolic Settings = se estiver usando trailing stop com Parabolic SAR, configurações do mesmo.
- Bollinger Multiplier = se estiver usando trailing por Bollinger, acelera o deslocamento do stop.
- Breakeven Trigger In Points = pontos para acionar o breakeven;
- Trend Filtering Configuration = utiliza duas médias móveis baseadas em Heiken Ashi para determinar e filtrar operações pela tendência presente.
- Trade Reversal System = se "true", utilizará o sistema de inversão de mão, onde, ao receber um sinal operacional contrário ao atualmente aberto, inverte a posição atual;
- Use one opened position at time = limita o expert a apenas uma posição aberta por vez.
- End Day Position Filter = se utilizado, fecha determinadas posições ao fim do "endTime".
- Price Deviation = autoexplicativo
- Lots to trade(volume) = autoexplicativo;
- Bollinger Bands Average = autoexplicatvo;
- Bollinger Bands S.D. = autoexplicatvo;
- Bollinger Bands Trigger Distance (in) = distância entre a banda externa e a banda média para ativar o sinal (de entrada) quando o preço tocar/passar da região. Melhor visualizado nas imagens descritivas.
- Bollinger Bands Trigger Distance (out) = distância entre a banda externa e a banda média para ativar o sinal (de saída) quando o preço tocar/passar da região. Melhor visualizado na imagem 3 (vide imagens). Se utilizado o valor "999", o valor para sinal de saída será o mesmo para sinal de entrada.
- MACD Signal Period: período do sinal de MACD
- Slow EMA Period: período da EMA lenta de MACD
- Difference between Slow and Fast EMA: diferença entre a média lenta e a rápida do MACD
- Confirmation MACD Inputs = igual os definidos acima, porém, utilizado no sinal de confirmação de maior tempo gráfico.
- Developer Mode = se verdadeiro e em simulação, abre e fecha uma posição ao início das operações apenas para confirmar o sistema de posições. Sugere-se manter desabilitado para uso real.
- -Bollinger Bands Trigger Dist.: define a importância das bandas de Bollinger na estratégia do expert.
Executa apenas na abertura de um novo candle (fora Money Management). Pode ser testado por "Open Price Only".
Se for encontrado qualquer erro que não seja descrito como erro de entradas, por favor me informe que tentarei arrumar o mais rápido possível.
Atenciosamente,
Yan Haeffner
- Fixed the risk management for lot calculation system
- Fixed minor GUI bugs
-Fixed a problem within Confirmation Signal (higher TF indicator)
-Fininshing the current update started on v1.7 this update brings the complete rework on the Time Filter system with an enable/disable input and the possibility to use different combinations on Start Time, End Time and Closing Time:
-Start Time can be bigger than End Time: start trading at 8 a.m. and stop trading at 2 a.m.
-Start Time can be smalle than End Time: start trading at 2 a.m. and stop trading at 11 p.m.
-When time reaches Closing Time it will close opened positions based on their type (profitable, non-profitable, all)
-Fixed a problem on decimal places of Variable Lot where 1 would still mean 100% instead of the desired 100 = 100% effect of the input
-Fixed input values on % system, on v1.7 (1 = 100%), now on v1.8 (100 = 100%) for better human understading on system inputs
New Functions:
-Opening Positions and Closing Positions Time Filtering
-Risk based Lot on % of margin/deposit
-Main Signal System
-New Out System based on main signal and trend filter
-Trend Filter based on Heiken Ashi Color Change, Heiken Ashi MA Cross and Both
-GUI fixes
-Out Signal Count on position GUI
Removed Functions:
-Bollinger Bands based Trailing Stop
-Variable lot by step size
-Bollinger Closing Trigger Type
-Optional Global Drawdown Alert
-Swap and Comission from position GUI
After two weeks of developing a way to properly implement new functions on this expert without increasing the complexity of the system I was finally able to launch this new update with a lot of changes that will be able to simplify and upgrade existing functions including new ones that allows the user to create new setfiles with even better controls on what the expert is going to do. Plus, new images containing easy explanations on how MACDBBot features works and how to use them on your setfiles and strategies, so, feel free to ask and to make questions either on the comment sections or even on private messages, I will be glad on helping you out!
-Fixed a unit conversion problem on the Trailing Stop parameter
-Added a maximum value parameter for the Slow EMA on the MACD indicator (better for optimization)
-Fixed minor bugs on GUI
-Fixed a typo on the MACD parameters which could lead to erroneous use of the expert
-Adicionada função de Breakeven acionada por pontos
-Adicionado parametro "Difference between Slow and Fast EMA" que permite a otimização por meio da diferença entre a média rápida e a lenta do MACD
-Corrigido problema com o parâmetro "Number Of Signals to Confirm"
-Sistema de Detecção de rompimento de banda de Bollinger reprojetado (tanto para In quanto para Out)
- Operational Updates:
-> The new feature of this version is the "Trend Filtering" which filters signals that are against the current trend on the symbol. The Trend Detection is based on two moving averages built over Heiken Ashi candles. You can define the period of the first MA and the difference between them.
The current trend is showed on the GUI.
There are a few more features coming up on future releases so stay tuned and please, if you have any comments or requests on MACDBBot that you think that could be useful for all the community using this expert, please tell me on PM or even on the Comments section, I'll be glad to hear you!
As always, I wish you the best of profits.
Best Regards,
Yan
-> Expiration Settings: date to expirate expert settings. Since what worked on the past has no guarantee to work on the future, now you can set a limit date to use the current settings. Expert will be removed from the chart once the date expires.
-> Lot Modifier: when your balance worth the same amount of the Autolot Size, your next position volume will be the "fixed Lot input" value. When your balance changes by an amount of "autolot step", it will modify the lot size by the minimal lot step times the amount of steps that changed on your balance. If you start with 1000 USD with fixed lot of 1 and step of 100, once your balance reaches 900 USD, it will use 0.99 as lot if the minimal lot step is 0.01 (intrinsic of symbol) and will use 1.01 if your balance reaches 1100 USD.
-> Local Max Drawdown: amount in % of your selected drawdown balance that the expert can afford to lose in a single day (local). If expert reaches this max amount of loss it will freeze itself until next working day.
-> Global Max Drawdown: amount in % of your selected drawdown balance that the expert can afford to lose at all times (global). If expert reaches this max amount of loss it will remove itself from the chart and alert you if you enable the input to receive Max Drawdown alerts.
As always, I wish you the best of luck, the best of profits, and best regards,
Yan