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

MQL4 지표 전문가

명시

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.



응답함

1
개발자 1
등급
(219)
프로젝트
370
42%
중재
145
17% / 41%
기한 초과
124
34%
무료
2
개발자 2
등급
(91)
프로젝트
144
38%
중재
67
15% / 48%
기한 초과
55
38%
무료
3
개발자 3
등급
(65)
프로젝트
87
39%
중재
3
0% / 33%
기한 초과
29
33%
무료
4
개발자 4
등급
(94)
프로젝트
148
59%
중재
16
38% / 13%
기한 초과
25
17%
무료
5
개발자 5
등급
(51)
프로젝트
66
30%
중재
2
0% / 0%
기한 초과
0
무료
6
개발자 6
등급
(5)
프로젝트
4
25%
중재
2
0% / 100%
기한 초과
1
25%
무료
비슷한 주문
Order of EA trading only Arrow signals of my indicator in MT4 This EA should trade only the BUY and SELL Arrow signals after 1 added candle AND only if the bricks (blue for blue and red for sell) are in same direction Arrow + a brick Indicator is here attached. Arrow up + 2 Bricks Blue is BUY Arrow down + 2 Bricks Red is SELL Important is to check ONLY CLOSED candels. Sometimes it maybe occur ,that arrow apperase
Je souhaite un Ea advisor, possédants des stratégies combinés tels que : RSI+BB, Stoch+ATR, Fibonacci pattern harmonics, Keiltner+Canal Donchian, EMA+SMMA, support et résistance,zizag Min lots : 0.1 Je rechargerai mon solde une fois qu’un bon robot me sera présenté Je 'ai qu’une centaine d’euro entre mon investissement en votre EA et mon solde métatrader je ne veux pas de calcul de lots en fonction de mon
Pinescript code 60 - 100 USD
i need to convert this pinescript to ea mql4 exactly as original, consider my budget, i have also other project so if you are avalable and have enough time consider to take also other pinescript project
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Need ea according to stochastic divergence (both hidden and regular) plus candlestick flip .. need for experinced developers to complete my order with 99percent accuracy. So bet for it the budged is fixed and other plugins will be added in the v2
Martingle EA 30+ USD
Create martingle grid EA with my own logic. Add Moving Avarage Filter. 2 engine with same logic. Sl TP by $ amount. Profit loss Dashboard Virtual all trade close Button
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. When sending
I need a graphic designer that is good at voice overs and object animation. I have a dialogue project that I intend it to deliver a certain message for marketing purposes. The project is to be done by cartoons and they should be much humanized in terms of graphics. The project has to be in the form of video that lasts up to 3 minutes longest and not less than 2 minutes. Creativity is the most important requirement
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

프로젝트 정보

예산
30 - 60 USD
개발자에게
27 - 54 USD
기한
에서 5  10 일