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

指定

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% / 50%
期限切れ
1
25%
仕事中
類似した注文
Hello great developer Can you build this indicator for Quantower. If positive, then how much will it cost to make automated strategy from the indicator? i will be looking for great developer to build for this project best regards
Attached to this post is the pinescript tradingview indicator code, i will also attach a link to the youtube explanatory video of how the indicator works on tradingview, i will like the exact thing on mt5, including the percentage prediction on each bar and the win loss counter ... it should work on both forex, stock and volatility indices on mt5 https://youtu.be/30FLWyEWroM?si=q9GpvJVHp-oyvsvZ // This work is
Hello! I want to develop an indicator for tradingview. Twice a day on 12H candle close the indicator will show a set of timeframes if they closed bullish or bearish. Show daybreak with a vertical line. Every 12H closure will show a box somewhere, preferably above/below that candle on all timeframes up to D1, clearly showing which candle is the close of 12H. The box will contain info about which timeframes closed
Hello, Looking for Multipair and Multi-timeframe scanner indicator based on Zigzag. It's going to be a simple indicator based on Higher high and Lower Low Formation. I want for both platform for MT4/5. It should have alert features as well have to scan from custom pairs, marketwatch also able to use custom timeframe. I'll share zigzag formation to the right candidate when it should gives an alert. And if you are not
Hello, I purchased a TradingView script that works very well, but it doesn’t have any alerts. All I need are alerts programmed so I don’t have to sit behind the chart watching it all the time
Hi! Are you able to code an exact copy of an indicator for trading view? It must be exactly the same. if you are expert in doing this I am expecting your message in the comment session to share you with the indicator I want to duplicate. Looking forward to your positive response and the opportunity to collaborate with you on this project
Hello developers I hope this message finds you well. I am currently seeking a highly skilled developer for an important project. I need an exact copy of a TradingView indicator to be coded for the MetaTrader 4/5 platform. The indicator must be replicated with absolute precision, maintaining all its functionalities and features. Would you be able to take on this project? If so, I would appreciate discussing the
Hello Developers, I am looking for a highly skilled and experienced developer to code an exact copy of a specific indicator for TradingView. The indicator must be replicated with precise accuracy, maintaining all functionalities and features of the original. Requirements: Proficiency in Pine Script and experience with TradingView indicators. Demonstrated ability to replicate complex indicators with exact
MODIFICATION OF AND EXISTING EXPERT BY ADDING INDICATORS TO FUNCTION AS FILTERS, TRADE CLOSURE BY THE REVERSAL OF THE adx INDICATOR, LOOKING FOR TRADE BASED ON THE COLOR OF THE PERCENTAGE CHANGE INDICATOR (DPC) SELLING THE COLR IS RED AND DECREASING IN PERCENTAGE AND BUYING WHEN THE COLOR IS GREEN AND INCREASING IN PERCENTAGE . There is an EA I have been using which I splitted into long trading and short trading. It
i am looking for experienced programmer to create indicator for me. i am willing to pay for the service. and if it works amazingly like i expected. i will tip more money

プロジェクト情報

予算
30 - 60 USD
開発者用
27 - 54 USD
締め切り
最低 5 最高 10 日