Assista a como baixar robôs de negociação gratuitos
Encontre-nos em Facebook!
Participe de nossa página de fãs
Script interessante?
Coloque um link para ele, e permita que outras pessoas também o avaliem
Você gostou do script?
Avalie seu funcionamento no terminal MetaTrader 5
Experts

NNFX Automatic Trader and Position Manager - expert para MetaTrader 4

Visualizações:
713
Avaliação:
(1)
Publicado:
2022.03.08 03:07
Atualizado:
2022.03.08 03:09
Precisa de um robô ou indicador baseado nesse código? Solicite-o no Freelance Ir para Freelance
This is not an Expert Advisor that helps you to develop a NNFX algorithm.
This is an EA that runs your already developed algorithm, forward test or live trading.

Between 23:40 h and 00:00 h this EA gather information of indicators and current open positions. Just before that, the positions are going to be managed accordingly to the signals of your algorithm, total risk allowed per currency and incoming news.
If a order is refused, the EA waits 10 minutes and tries again until all the requirements are fulfilled or the clock reaches 00:00 h. The EA runs before the daily candle close for spread optimization.

Every time that a new position has to be open, the available risk will be splited between all new positions that contains that currency. It is done in a way that is very hard to exceed 2% risk each currency. If the total risk is reached, the position size is equal the minimum lot x2, so the 2% risk can be exceeded.

Trailing stop is updated every 10 minutes and works as VP describes.
Scaling out is also implemented.

Setting the EA for your algo:

The code contain my last NNFX algorithm.
Some tweaks are needed to insert your algo.
I let "CHANGE HERE: " commented over the code to ease your work.

You have to add NEWS date as well. It is done at OnInit() function and the format is described on the code.

The only thing not implemented yet is the EVZ part.
Feel free to contribute on GitHub (/henriquepfeifer/NNFX-autotrader)

If you want to run my version of the algorithm:

Xaos Pattern Expplorer by Edward Samokhvalov https://www.mql5.com/en/code/8285 (rename file to 259T-XaosExplore_PerkyMod)
NonLagMA_v4 by TrendLaboratory (rename to 167T-NonLagMA_v4)
Volatility by Ivan Kornilov (rename to V203-volatility-indicator-2)
TrendWave_2 (T53-TrendWave_2)
All indicators are free and available to download.
Adaptive momentum oscillator idea from David Varadi. Adaptive momentum oscillator idea from David Varadi.

Adaptive momentum oscillator idea from David Varadi.

BreakEven Function BreakEven Function

Just a Basic Functions For BreakEven.

MA Angle MA Angle

Not sure if anyone need this. Just showing the angle of the MA of current and adjacent candle.

Recursive Moving Average Recursive Moving Average

Recursive Moving Average calls itself a number of times in order to reach the appropriate smoothing. For instance DEMA,TEMA and Rainbow indicators are recursive exponential moving averages. The goal is to remove the loop limit while still running fast. In addition a trigger line provides the trading signal.