Simple modification existing MQL4 indicator an making expert – new conditon based on BB, Fractal and Candles in a Row

MQL4 Indicadores Experts

Termos de Referência

Heloo my friends,


I have an indicator and I want to put new simple conditions for BUY and SELL signal and make expert advisor.



Rules For Buy Signal


------- Bollinger Bands Rules - the user chooses the option (yes / no) ------------

1 Signal candle - it touches the Bottom Bollinger Band line (yes / no) - the user chooses the option
2 Minimum distance to the Upper Bollinger bands line in relation to the signal candle size - the user enters the minimum distance size in percent
   - if I put 0.4 it means that distance to Upper BollingerBand Line is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to Bollinger Band UP bands is than 40 points for Buy signal 
3 Maximum distance to the Upper Bollinger bands - same as the previous explanation



----------- Maximum number of same candle in a row - - the user chooses the option (yes / no) ------------

Maximum number (external input) of Berish candles in a row in the last x candle (external input) for Buy Signal


-------------------- Size of signal candle ------------------------------
SizeSignalCandleMax    = 5 (if I put 5 it means that the size of signal candle is highest in the last 5 bars)



----------- Fractal Rules -  the user chooses the option (yes / no) ------------

For Buy Signal Looking Only Fractal above of the High of signal candle
The distance to the nearest fractal in relation to the signal candle size - the user enters the minimum distance size in percent
   = if I put 0.4 it means that distance to nearest fractal is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to nearest fractal is than 40 points  
The value of nearest fractal is in the shadow of the signal candle (Shadow of BUY candle = High - Close of signal candle) - the user chooses the option (yes / no)
   = If Not means that Nearest Fractal is not in the shadow of the candle






Rules For Sell Signal


------- Bollinger Bands Rules - the user chooses the option (yes / no) ------------

1 Signal candle - it touches the Upper Bollinger Band line (yes / no) - the user chooses the option
2 Minimum distance to the Bottom Bollinger bands line in relation to the signal candle size - the user enters the minimum distance size in percent
   - if I put 0.4 it means that distance to Upper BollingerBand Line is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to Bollinger Band UP bands is than 40 points for Buy signal 
3 Maximum distance to the Bottom Bollinger bands - same as the previous explanation



----------- Maximum number of Bulish candle in a row - - the user chooses the option (yes / no) ------------

Maximum number (external input) of Bulish candles (Close>Open) in a row in the last x candle (external input) for Buy Signal


-------------------- Size of signal candle - the user chooses the option (yes / no) ------------------------------
SizeSignalCandleMax    = 5 (if I put 5 it means that the size of signal candle is highest in the last 5 bars)


----------- Fractal Rules -  the user chooses the option (yes / no) ------------

For Sell Signal Looking Only Fractal Below of the Low of signal candle
The distance to the nearest fractal in relation to the signal candle size - the user enters the minimum distance size in percent
   = if I put 0.4 it means that distance to nearest fractal is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to nearest fractal is than 40 points  
The value of nearest fractal is in the shadow of the signal candle (Shadow of SELL signal candle = Close - Low of signal candle) - the user chooses the option (yes / no)
   = If Not means that Nearest Fractal is not in the shadow of the candle



Indicator sometimes have massage "array out of range error"  . 

Solve this problem something like;  
int OnCalculate(const int rates_total,     
                const int prev_calculated....
int limit =MathMax(rates_total-prev_calculated,2)

or other way.

Also I have alert every tick but I want only once alert per signal.





Custom indicator inputs

------ Boingbands ---------------

UseBollingerBands       = user choise true of false
BollingerBandsperiod = custom input (applay to close)
TuchBollingerBands = 0 or 1 (0 not tuch BB , 1 = tuch BB)
MinDistanceBB = custom input (size in procent of main candle (high - low)) for min distance
= if I put 0.4 it means that distance to BollingerBand is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to Bollinger Band UP bands is than 40 points for Buy signal 
= distance formula for UP signal something like (UP BollingerBand value - High (of signal candle))/(High - Low of candle)
= distance formula for DOWN signal something like (Low (of signal candle) - DOWN BollingerBand value)/(High - Low of candle)

MaxDistanceBB           = custom input (size in procent of main candle (high - low)) for max distance do BB


--- NumberOfSameCandleInaRow --

UseNumberOfSameCandleInaRow = true
NumberOfCandleForAnalyse    = 20
MaxNumberOfBerishCandle        = 9     (use only for Buy Signal)
MaxNumberOfBulishCandle        = 9     (use only for SellSignal)

Example

If I put 
MaxNumberOfCandleForAnalyse    = 21
MaxNumberOfBerishCandle        = 4   (use only for Buy Signal)

It means that I am looking Buy Signal that have max 9 BerishCandle in a Row in last 21 candle

------------------------------------------

UseSizeSignalCandle     = the user chooses the option (yes / no) 
SizeSignalCandleMax    = 5 (if I put 5 it means that the size of signal candle is highest in the last 5 bars)


------------- Fractal -------------
UseFractal            = true of false
NumberOfCandleForAnalyseFractal    = 50 (looking for last 50 candles)
MinDistanceFractal                 = custom input (size in procent of main candle (high - low)) for min distance 
           = if I put 0.4 it means that distance to Nearest Fractal is 40% percent of candle size (high i low) - if size of main candle is 100 points- min distance to Fractal is than 40 pints

          =  For Buy Signal Looking Only Fractal above of the High of signal candle
          =  For Sell Signal Looking Only Fractal Below of the Low of signal candle

FractalInShadowOfTheCandle        =  Yes / No
  =  If No means that Nearest Fractal is not in the shadow of the signal candle (shadow for Buy 0 High - Close ; Close - Low for Sell)


When I confirm that indicator is OK then make expert advisor.

Indicator and Expert must be in MQL4 file format not in .exe format.



--------------- Creating an expert advisor --------------

Creating an expert advisor with the signal of the indicator we have made


Creating an expert advisor

Main Inputs

the user chooses the option what to use (lots or percent)

Open One Order

Lots          =0.1; (user put)
MaximumRisk   =0.02; (user put in percent) 0.02 means 2% risk

All order are pending order. It should be For Sell Signal are Sell Stop or Buy Stop for Buy Signal

PendingOrder              = custom input in percent of size of signal candle (size in procent of main candle (high - low)). Like Fibonaci 

                          = For Sell signal if I put 0.05 (means 5% percent of signal candle size) it means that I open a trade 5point below of the Low of signal candle (if size of signal candle is 100 points)
                          = For Buy signal if I put 0.05 (means 5% percent of signal candle size) it means that I open a trade 5 point above of the High of signal candle (if size of signal candle is 100 points)

TakeprofitLevel           = custom input in percent of size of signal candle (size in procent of main candle (high - low)). Like Fibonaci levels

                          = For Sell signal if I put 1.9 (means 190% percent of signal candle size) it means that I take profit 190 point below of the Low of signal candle (if size of signal candle is 100 points). Risk/Reward 1,9
                          = For Buy signal if I put 1.9 (means 190% percent of signal candle size) it means that I take profit 190 point above of the High of signal candle (if size of signal candle is 100 points)

StopLoss                  = custom input in percent of size of signal candle (size in procent of main candle (high - low))

                          = For Sell signal if I put 0.05 (means 5% percent of signal candle size) it means that StopLoss is 5 point Above of the High of signal candle (if size of signal candle is 100 points)
                          = For Buy signal if I put 0.05 (means 5% percent of signal candle size) it means that StopLoss is 5 point Below of the Low of signal candle (if size of signal candle is 100 points)

UseStopLossLevels         = the user chooses the option (yes or no)

StopLossLevel1             = 1.00 custom input in percent of size of signal candle (size in procent of main candle (high - low))
StopLoss1                 = -0.60 custom input in percent of size of signal candle (size in procent of main candle (high - low)) Like Fibonaci retracment
                          = Above means = For Buy signal if I put 1.00 (means 100% percent of signal candle size) it means that signal is 100 point Above of the High of signal candle (if size of signal candle is 100 points)
                          = and expert put new Stopp Loss na 60 points below of the high of signal candle

                          = Above means = For Sell signal if I put 1.00 (means 100% percent of signal candle size) it means that signal is 100 point below of the Low of signal candle (if size of signal candle is 100 points)
                          = and expert put new Stopp Loss na 60 points Above of the Low of signal candle


StopLossLevel2            = 1.90  custom input in percent of size of signal candle
StopLoss2                 = break even

MaxSpread                 = 0.10  custom input in percent of size of signal candle (0.10 means 10% of signal candle in points)

MaxPeriodOfTime           = 7 - max number of candle need to open order. If not open cancel pending order

                          


Important: if signal before opening order touching High of candle For Sell Signal cancel pending order
           if signal before opening order touching Low of candle For Buy Signal cancel pending order

           Expert must be working in the same time in same currency pairs (in separate windows) 

Important: All distance (pending order, stop loss, take profit, BB, fractal ....) are in percent of main size of signal candle in points from high or low of the signal candle (depending on BUY or SELL signal)


I will put some pictures to see this rules if you have job.



Respondido

1
Desenvolvedor 1
Classificação
(219)
Projetos
370
42%
Arbitragem
145
17% / 41%
Expirado
124
34%
Livre
2
Desenvolvedor 2
Classificação
(91)
Projetos
144
38%
Arbitragem
67
15% / 48%
Expirado
55
38%
Livre
3
Desenvolvedor 3
Classificação
(65)
Projetos
87
39%
Arbitragem
3
0% / 33%
Expirado
29
33%
Livre
4
Desenvolvedor 4
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
5
Desenvolvedor 5
Classificação
(51)
Projetos
66
30%
Arbitragem
2
0% / 0%
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(5)
Projetos
4
25%
Arbitragem
2
0% / 100%
Expirado
1
25%
Livre
Pedidos semelhantes
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
We are seeking a talented and experienced developer to convert two sophisticated TradingView indicators to NinjaTrader 8. These indicators are crucial for our trading strategy, and we need them to function flawlessly in the new environment. The project comes with specific usage restrictions, which will be discussed in detail with the chosen developer. Requirements: Extensive experience with both TradingView and
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Greetings, As the title suggests, I am trying to convert an indicator that calls itself via an iCustom call like this. iMAArray_Buffer[loop_1] = iCustom ( NULL , Selected_TF, MQLInfoString ( MQL_PROGRAM_NAME ), "calculate" , RPeriod, MType, MPeriod, 1 , shift); Full code will not be provided, only the position that needs fixing. I cannot get this working in MQL5 but the original code runs smoothly in MQL4. Please
I need a chart to replicate/track my equity + Balance Curve into my mt4. Also this chart i need to be able to add Stochastic / Bollingerband / Moving average on the equity/balance curve. Besides the equity curve i would like the indicator to show the Line-chart of my win + 1 and my loss -1 which results in a win-loss curve. ( i will discuss this with the choosen developer in depth. ) More information on what i want
Greetings great developer, I am in search of a highly skilled developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Hello, This is pretty simple and its an indicator with On/Off button 1-Off will remove all indicator from the chart. 2-On will put them all back again with the same settings
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
I need someone the create a supertrend indicator based on Heikin Ashi candles instead of normal candles. Needs to be exactly the same as the supertrend (original one) + ha from tradingview. In m1,m5,m15 the indicator must have the same values ​​found with the tradingview. Work that meets this requirement will be accepted ( depending on the broker and spread, however, a few pips of difference will be accepted)
Here is a detailed instruction for the coder to implement the vertical lines based on the BrainTrainSignalAlert indicator: --- **Task: Implement Vertical Lines for Alerts from BrainTrainSignalAlert Indicator** **Objective:** Create a system that adds vertical lines on specified timeframes (M5 or M30) whenever an alert is generated by the BrainTrainSignalAlert indicator on the H1, H4, and D1 timeframes. The lines

Informações sobre o projeto

Orçamento
30 - 60 USD
Desenvolvedor
27 - 54 USD
Prazo
de 5 para 10 dias