EA trades orders on Candle chart

MQL4 Эксперты

Техническое задание

I'm looking for an EA which is trading and handle the orders on basis of candle chart trend formation.
EA should work always on the time Frame which he is installed

EA should trade Forex and indices on basis Information of candle chart.

How EA should work:
EA should check if he is active and which traded Lots size he should use for opening Trade:
EA is only active if existing long and short open market orders in Terminal are equal - or difference is not bigger than xlots - can be defined under parameter.
Or EA does only open orders in Hedge direction (hedge function can be set active or inactive under parameter) - If active EA does only trade the Hedge size or if this lot amount is  less than fix or Equity lots EA does use the bigger size.
Example
Hedge is active so if there are 3 lots long and 5 Lots short EA does open only (if hedge is active) a Long position. Note if the Hedge Lot size is less than selected Fix or Equity lot calculation amount, EA uses the bigger lot size (but only in Hedge direction if hedge is active) - if Inactive, EA does open orders on standard basis fix lots ore Equity lot calculation.
EA has to calculate Hedge Lot size (if hedge set active) if there are already open Positions in Market. If hedge is active EA does only open in Hedge direction - if equal or no open orders in market, EA does open the fix lots or on Equity lot calculation amount if definated in Parameters.
So again if there are 3 lots long and 5 Lots short - the Hedge Size is 2 lots - calculation update should be every x minutes done. Hedge Lots and direction should be shown in chart.
If this calculated Hedge Lots since is smaller than Fix lots or if selected equity lot since calculation - EA is using fix lots or Equity lots
If now selected Equity or fix lot since for example 6 lots - but Hedge is only 2 lots (both sizes are shown in chart) EA is using the bigger one, so EA is using 6 lots - or if hedge size is bigger then EA is using of course the Hedge size.


Opening of orders - on base of candle chart
If there are more than x candles in a row shows an trend (can be defined under parameters how many candles it should be) if this minimum candles in the row are done (trend) and the intraday candle breakout (over high or low of last candle +xpips can be definated under sets) over or under (depends on trend)  - EA does open the order market if price of intraday candle goes over high (on a long trend) or below (on a short Trend) + or - xpips Market  - with defined lot size - If Hedge is selected, or if equal both on fix lots or Equity lot calculation - order does not go if open defined Trend does not go in Hedge direction (if Hedge is selected).
Example - Minimum candles in a row 6 is selected - so EA is active if there are 6 candles same trend in a row has closed (EA is active and active is shown in chart) - If now the intraday candle (is candle 7) is breakout over high or low in trend of the candle before (candle 6) order will be placed market with Hedge lots size or if smaler than fix lots or Equity lot calculation with this lot size.
If candle 7 has not breakout and does close in other direction (agianst trend) - EA has to wait again the dfinated candles to be active, if still candle is in trend, EA waits with next candle for breakout (opening is high or low of candle befor + or minus xpips). If not, EA has to definite 6 new candles in a row - EA is inactive, and this information is shown in Chart till the candles in trend are reached.
Note, EA does only open a Position if breakout comes (high or Low of candel before +xpips) in trend direction after Minimum candles in a row.

Note - hedge is active - EA does only open order in Hedge direction if criteria of Candles are done.
If Hedge is not activated (or no orders in Market) EA does open in every direction the order under Candle trend criterias on base of fix lots or equity lot calculation.
If hedge lots smaler than fix lots or Equity lot calculation - EA is using the biger lot size.

EA is placing the order after activation (so trend in the row xcandel) as pending order with low or high price or xpips worser if definated.

Trend is also not any more active and does start new if:
Candele in other direction has closed - new trend starts and wait for xcandles to be activ.


Activation and closing an order:
Trend is broken if the intraday candel is not closing more than xpips higher (for long Trend) or lower (for short trend) than as trend candle before. On a Long Trend intraday candle has to close xpips higher then high of candel before (only than trend is still activ).
Or intraday trading does close xpips differenz between opening and closing of this intraday candle
Or intraday candle does close xpips range near closing of candle before - xpips - over and under high or low of candle before - depends on trend.

We have on above szenarios than 4 closing szenarios.

always the SL - SL will be always the low or high of candle before, depends on trend plus or minus xpips (can be definated under sets). If an order is in Market SL will be definated on each new intraday candle on basis of candle before +xpips.
Closing on next candle opening + range pips. If intraday cande does close in a pip range Xpips differenz between there own (intraday) Opening and closing (of intraday candel) - pips for range can be definated under parameter - than closing next candle opening or new definated SL is low or high (depends on trend) of candle before. - order will be closed on opening on next candel.
or If Intraday candle is closed in near xpips of closing of candel before - xpips range can be definated - order will be than closed on opening on next candel.

last closing possible - intraday candel is closed against trend and not in xpip range of intraday range or range of candel before - EA does close the order with TP Limit on opening price of candle before or on new definated SL.

So in Total we have 4 closing possibilities

Example for closing in Range on basis candle before - Closing in range (xPips definated) so closing of candle in trend long (candle before) was 1.2005, pips range is 5pips. So range ist from 1.2000 to 1.2010. In this range closing of intraday candel, closing is direct on opening of next candle.
If we have an long trade and candle befor intraday candle high was 1.2000 so if x pips range is definated 5 pips. The indraday candle has to close for confirming the trend over 1.2005 if not (closing is below or up and sown range) trend is broken. So EA has to close the order on opening price of next candle direct market.
candel before (this is the TP) also SL will be the low (it is a long trend) of candle before. short trend just the other way.

If we have an long trend and intraday candel does close below candel before so not in xpips range so closing is lower than range. Closing will be placed as TP of opening price of candle befor and SL

Closing can also be if SL is reached - note SL will always be definated on xpips below or above high or low of candel befor - depends on the trend and will be calculated on every new intraday Candel. - if it is a Long trend SL will be x pips under low of candel before - on a short trade SL just the other way after an order has been closed EA has to wait for next opening the Minimum candels in a row. Pending will be placed every day new because of may lot has changed.


Chart information:
EA Activ - and if activ Hedge is activ or Equal - If Hedge EA should give Information only Long or Short positions opening
Differenz Lot size - hedge size and direction should shown in chart - update every xminutes
Trade Strategy
Used lots size fix or Equity lot calculation - sice shown ind chart
Activ Traded lot size of EA

Closing information in Chart:
Trend - Long Trend is always a High, on the short trend is always the low of candel before
Closing of last candle -
Information of last closed order - Lots and Price will be stay for Xdays.  than If we have no open position - nothing will shown in chart.



//+------------------------------------------------------------------+
//|               Input Parameters                                   |
//+------------------------------------------------------------------+
static input string Miscellaneous; // <<       Miscellaneous  Settings           >>
input   int             Magic_Number         = 37476;
input   string          EA_Name              = "Candl";
input   bool            Use_Comment          = true;
input   Stratergy       Method             = Trade alway (also when only xlots open) - trade only Hege size or if to smale fix lots or Equity lot caculation


static input string Miscellaneous1; // <<       Position Sizing Settings           >> Lot calculation
input   ENUM_LOT_SIZE   Lot_Type             = STATIC_LOT;
input   double          FixLot               = 0.1;
input   double          Equity_Amount        = 50;
input   double          Lot_Per_Equity       = 0.01;

Criterias of lot calculation
Calculation of lot or Hedge lots size updating - xminutes
EA is equal or differenz not bigger than use - xLots - above can be activated fix lots or Lot sicze calclulated on base Equity amount - what is selected and the lot sice is shown in chart.
EA opens order only in Hedge direction - so if there 3 lots long and 5 Lots short EA does open only in Long position
Updating if Hedge and Lots every xminutes.


Criterias of opening Order
Minimum candels in a row - 6 candels - can be definated
Xpips range on opening order Placing order xpips worser - this pips should be calculated to the low or high of last candle in Trend if trend is activ. Example - last trend candel long has closed on 1.2020 - xpips range is 3 pips so if price goes over 1.2023 order will go market. Order will be placed with this limit aready as pending and will be updated if needed on next candle.
SL - xpips under high or low from candel before - can be definated Xpips under high low of candel before - so if we had an long trade and the buy is opend - SL will be 30 pips under Low candel before.
Placing the order as Pending as opening price xpips worser or better (depends on trend) with calculated lots - and SL +xpips on basis of candle before.


Closing criterias. We have 3 closing szenarios
Xpips closing range of intraday candel (opening and closing price of intraday candle differenz) or neare candle before (closing of intraday candel near trend high/low of candle before depends on trend) closing will be Direct on opening (+ or - pips range)

Xpips closing of intraday candle Xpips better then High or low depends of trend - to confirm the trend. If Trend is not confirmed - Opening price (pluse range) is limit for closing on next intraday candle.

SL - of Trend is always high or low (candel before) depens on Trend-  x pips range can be definated - - if not executed SL will be calculated and does change on every new intrada candle
Xpips range for intraday candle or closing of candel before - closing Direct on opening (+ or - pips range) of next candel but only if closing of last intraday candly is in the Range of xpips of Long trade High (xpips below or above the High) or on short trade Xpips below or above the short low.
Example: we have an long trade and High of candel befor was 1.2025 - so xpips range is 5 pips - closing of intraday candel is in range 1.2020 to 1.2030 so order does close on next opening
Out of this range EA does close on opening of candle befor - SL will be also definated for the new candle. So closing is on SL or on Opening of candel before. Information is in chart.
Pips range for closing on Opening example 3 pips up and down on opening
closing intraday on opening price of candle before

Xpips range on opening order - last trend candel long has closed on 1.2020 - xpips range is 3 pips so if price goes over 1.2023 order will go market. Order will be placed with this limit aready as pending and will be updated if needed on next candle.








Откликнулись

1
Разработчик 1
Оценка
(3)
Проекты
4
0%
Арбитраж
8
13% / 88%
Просрочено
1
25%
Свободен
Похожие заказы
Hi I need a experience programmer to build me all harmonic pattern scanner indicator the must send alert with arrow on screen without open trades Multiple times frame H4 D1 W1 MN multiple currency pairs and i want to see all historical patterns that already happened
Pls if have a bos/ CHoCH indicator, about market structure when market changes character and when its down trend you can give me or create an indicator that knows market structure well simply if the market is on downtrend the indicator will know and if it’s on up trend the indicator will also know
I have two jobs actually. 1) I have source code and this one is based on getting signals and implementing. 2) I dont ave source code but you can view source code through any desk than compile those changes at your computer and at the time of implementation, you can do it thru anydesk. these are the changes i require in both: 1) Martingale strategy with manual settings , number of pips it, distance, profit can
Help needed 50+ USD
1. "Need help with my account! Assistance required ASAP!" 2. "Account assistance needed! Please help me resolve my issue!" 3. "Stuck with my account! Can someone lend a hand?" 4. "Account issues! Seeking help from a pro!" 5. "Help needed with my account! Please guide me through the process!"
Ceejay robots 50+ USD
Hllo ceejay I hope u can help me assistant plzz I'm depending on u I know I picked correct robot I know u got this I believe in u I know we can work together
Experience programmer needed who can build a sample double top and double bottom pattern indicator that send alert with arrow without open trades must send signal alerts only after the pattern confirm
I’m looking for a developer who can build a profitable EA for MT5. EA should have no major equity drops or daily drawdown. Looking for a solid trading system. NO martingale or Grid strategy EA should make around 10% a week Risk per trade should be 1% EA should use SL and TP
I am looking for a day trading bot with over 95% success ratio for gold and forex. It should use all the relevant strategies like moving averages (10, 20, 50), volume, RSI and trend into consideration and then generate buy and sell trade automatically with trailing SL and generate max profit
an ea that is based on a custom indicator, currently it works very fine but would like to add following... 1.make sure tp and sl values are calculated in points and are calculated from previous bar close (the one before our entry current bar) 2.check if a trade is already far from previous bar close than dont allow it, set the distance value in points (if current signal candle that is still formin and we would enter
I need a feature setup that will input the Sunday opening price as a horizontal ray on any chart and can be used by another EA as part of a trading strategy. Like this TradingView example below

Информация о проекте

Бюджет
30 - 60 USD
VAT (19%): 5.7 - 11.4 USD
Итого: 35.7 - 71.4 USD
Исполнителю
27 - 54 USD
Сроки выполнения
до 6 дн.