EA TO ACTIVATE BUY AND SELL POSITIONS USING A THRESHOLD PRICE POSITION DETERMINED AT BEGINNING OF MONTH/PERIOD

MQL4 Experts

Specification

Hello,

I usually prepare a report at the beginning of every Month which has a middle position at the beginning of the Month. The Yellow coloured area is the starting price of the Month and all positions above and below are estimates.

I want the market to follow the direction of the prices and once a price position is achieved, the position will revert back to take an opposite bid. So at the beginning for example, all prices above the yellow colour will be Buy and all prices below will be sell.

After the prices are achieved and activated at each position, then the price below will activate a SELL and the prices above will activate a BUY.

The EA will have variables as starting position prices, which will be determined by me, variable gap positions which will help predict every price above and below the predicted start positions. An example of my Monthly template design is below


 

The above position is usually determined before end of previous Month. After the new Month Commences or at the activation of the EA, it will run for the whole Month using the figures computed above.

The middle line 5/6 above shows the starting positions at the beginning of the Month as determined by me. Number 1-4 shows positions expected to activate a BUY and positions 7-10 shows positions expected to activate a SELL. There will however be exceptions based on the market movement which will be explained as a sample below.  Using real life performance situation


 

The Orange coloured positions above shows which of the bids have been activated in the course of the Month of review.

The above products have 3 scenerios which will be identified as follows:

 AUDJPY,  GOLD, AND NASDAQ.  

SEE EXAMPLES

AUDJPY

Price started at 69.88 and moved down to 68.755 and moved back up again. So if 68.755 activates as a SELL, then bid prices at 69.88 and above will reactivate at twice the pip size of the previous bid position. If Price moves down to 67.63 for example, then 68.755 will activate a BUY but at a normal lot size until it reaches the middle price where it will activate a double lot size.  Prices should activate an opposite bid if it has achieved a 60% gap position to reactivate an opposite bid.

 

GOLD

Price started at 1684 and moved to a low of 1665. Which supposed to have activated a SELL assuming price reached 1664 and moved back up. As a result, as the price moved down and went upwards the bid will activate a BUY from 1684 upwards. For every position at the top the price activates, it will activate the opposite bid as set by the rule after a certain gap is achieved in the course of the move.

 

NASDAQ

Price started at 8880, then moved downwards to below 8655. Now SELL will activate from 8655 downwards and BUY will activate for the upper prices from 8880 upwards at double lot size. 

 

The settings should be as follows

First I will have a start price to be put on the EA. Once I put in the start price, it will have a gap/pip for each product. So that everytime I set the start price, it sets up 4 bids above and 4 bids below using the gap size for each step.

 

EG if I have a gap size of 1 and a start price of 10, then it will set up 4 prices at the top and 4 prices below as follows:

TOP=                10+1, 10+2, 10+3, 10+4

START PRICE=   10

LOW=                10-1, 10-2, 10-3, 10-4

 

Second, after the setup of positions, then market begins to move up and down in the real market environment. ALL prices above will be a BUY and all prices below will be a SELL. So at start price, all TOP PRICES will be a BUY and all BELOW PRICES will be a SELL.

If price Moves from 10 to 12.5 for example, EA will activate 11(10+1), 12(10+2) as BUY and then reactivate 11 and 10 as SELL (Based on previous top moves), while it will then double the lot size of bid for the prices at the LOW position from the start (ie 9, 8, 7 and 6).

 

Everytime a bid activates from either side of the position at every start period, ie whenever the start price is changed, then the first side the market goes will be at normal lot size set at the beginning of the period, while the opposite side bids will be made at twice the lot size. So in the example above, once 11 activates at say .01 lot size, and current price at 12.5, then 11 and 10 will activate a SELL at .01 and 9, 8, 7 and 6 will activate a SELL at .02.

 

So the start line becomes a support and resistance position especially once the market activates a first bid at the top or lower position of the line.

 

I will be needing at least 15 working days to test the EA initially at the end of project before we close the payment on the site. After which I will still need 60 days to be able to properly test the EA and revert back in case I have any issue at no cost.

 

I will be needing the code at end of the project.

 

Thanks


Responded

1
Developer 1
Rating
(219)
Projects
370
42%
Arbitration
145
17% / 41%
Overdue
124
34%
Free
2
Developer 2
Rating
(354)
Projects
629
26%
Arbitration
89
72% / 13%
Overdue
12
2%
Working
3
Developer 3
Rating
(277)
Projects
334
55%
Arbitration
14
36% / 29%
Overdue
1
0%
Free
Similar orders
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
Требуется дописать условия постепенного закрытия позиций для готового советника. Есть готовый советник для МТ4 с простым условием для ТР. ТР= n x SL Требуется написать условие постепенного выхода из сделки. 1. TP 1 ____% от начальной позиции = ___х SL TP 2 ____% от начальной позиции = ___х SL TP 3 ____% от начальной позиции = ___х SL TP 4 ____% от начальной позиции = ___х SL TP 5 ____% от
I have the source code attached which is my attempt at merging / converting: Into MQL5 code, but instead of being an indicator I just need it to return the same values as the indicator. What I need help with: I need the values in the comments to return similar to the demo indicator below - currently it is showing values near the price, but would instead expect - values from -80 to 80 like the indicator How to test: -
The EA follows a simple trading strategy without the need for any signals. Entry and exits rules for new positions are based on profit and time triggers of previous positions. An overall profit triggers closes all open positions. A sequence of max 10 open positions is envisaged. 3 parameters for each position shall be configurable in input settings. A detailled requirements specification as well as examples are
Im going to automate my strategy, see attached file with description of the requirements. Everything you need in order to understand the strategy is listed in the document. If any questions appear feel free to ask! Please leave a quote. thanks ahead. /Axel
— EA RULES — 1. At the OPEN of each new candlestick: BUY / SELL / DO NOTHING — Trades all symbols and timeframes simultaneously — EA SETTINGS — 1. Max Exposure Risk %: (Input) (On/Off) 2. Max Daily TakeProfit %: (Input) (On/Off) 3. Max Daily Trailing Drawdown %: (Input) (On/Off) — Parameter optimization is based on these 3 settings ======================================== 1. Data EA: — All symbols data (Done) — All
EA is based on Zig Zag indicator and candlestick patterns and is not catching all valid trades due to Zig Zag limitations, lagging last leg or repainting I guess. Before I will select you please present me a solution for this issue. I am so sorry, but I haven't got time for an amateur programmers. I am searching a programmer for a longer co-operation
Brizzo bot 1.2 30 - 150 USD
*Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is below the 50-day SMA by 2% or more, buy the stock. 3. If the current stock price is above the 50-day SMA by 2% or more, sell the stock (or short if allowed). *Exit Rules:* 1. Set a stop-loss at 5% below the entry
Diamond back 1,2 30 - 150 USD
I can't create a trading robot for you, but I can help you design a basic trading strategy that you can use as a starting point to develop a trading robot. Here's a simple example of a mean reversion strategy: *Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is

Project information

Budget
30+ USD
VAT (23%): 6.9 USD
Total: 36.9 USD
For the developer
27 USD
Deadline
from 1 to 30 day(s)