Specifiche
Hi Programmers,
I want to create an EA with a Bearish and Bullish concept for taking trades. The EA will make decisions using the EXTREME PRICES as a Control. Every new price change from either the highest or lowest will be used to limit the reversal bids from the changed extreme positions. Every new price changes will be used to manage and monitor the bids from the reversal positions.
So the steps are as follows.
EA starts at a start position when installed. And then it begins to measure the HIGH and LOW price from installation. Every new Extreme will allow the EA take reversal bids to the last position.
There will be a distance to use to measure the first Bid from both sides at the beginning. And then after the first bid, the next bids will operate like a ladder/step by step using an agreed distance.
Every last side to change will take only bids to the previous extremes using a lower distance to be determined as a % of normal distance set earlier.
A median line will be established to measure the average position between the HIGHEST and LOWEST prices.
The current price position from the median line will determine the current direction of the market as UPWARDS or DOWNWARDS. If above the median, then upwards, and if below then downwards.
TP/SL can be manual or automated. Manual if allowed to close only at TP and SL and for automation, it must have 2 bids of same direction before it can activate and it will adjust SL to the mid of the last 2 bids of same direction. So if 5 bids of BUY, then SL will be between bid 4 and 5, if 2 bids of SELL, then SL will be between bid 1 and bid 2.
AVERAGE PRICES will also be used to take bids when market changes from a LOW RANGE to a HIGH RANGE. So BUY will activate at HIGHEST AVERAGE PRICE and SELL will activate at LOWEST AVERAGE PRICE. The bids will take normal distance bids to the direction
So lets use a case study scenario to explain the actions.
The EA is installed on a product at a price of 300. Distance for first bid is 2, and then 1 afterwards. % of reversal bids distance is 50% meaning 50% of 1= 0.5.
1 Market moves from 300 to 299, then moves to 305, then moves to 303, then moves to 307, then moves to 304, then moves to 310, then moves to 308.
a- 300-299, b- 299-305, c- 305-303, d- 303-307, e- 307-304, f- 304-310, g- 310-308
A. 300-299. No Action because minimum distance of 2 is not yet achieved. This is just 1.
B. 299-305. First bid of BUY is achieved at 299+2=301. And then other BUY bids at 302, 303, 304 and 305.
C. 305-303. First bid of SELL at 303. Because of no previous SELL bids. So it must activate first Bid at first distance.
D. 303-307, BUY bids at 304, 305, 306 and 307. Normal distance because EXTREME PRICE of 299 (LOWEST) has not changed.
E. 307-304. Because EXTREME HIGH PRICE has changed from 305 to 307, and has also activated the first bid of SELL, then EA will take bids downwards at distance of 0.5 until it reaches 305 and then stop taking SELL bids. So SELL at 306.5, 306, 305.5 and 305. So no new SELL bids from 305 to 304.
F. 304- 310. BUY bids from 305, 306, 307, 308, 309 and 310. At normal distance
G. 310- 308. New HIGH PEAK at 310 from 307. So we should only plan to take SELL from 310 to 307. However, the price stopped at 308. So we sell at 309.5, 309, 308.5 and 308.
In addition, AVERAGE PRICES WILL BE USED TO ACTIVATE BIDS TOWARDS A DIRECTION when it changes. So HIGHEST AND LOWEST AVERAGE PRICES WILL BE COMPUTED BY EA.
BUY when prices goes from below the Highest average price UPWARDS and SELL when markets fall below the Lowest average price DOWNWARDS. USE NORMAL DISTANCE for these bids.
This will be the actions the EA will perform based on the Example shown above.
QUESTION
If you are interested in this job, kindly clarify and show the decisions for the sample below as it will be used as a criteria for my selection.
EXAMPLE 2.
EA is installed at a price of 4500. Distance for first bid is 30, and then 10 afterwards. % of reversal bids distance is 40% meaning 40% of 10= 4.
1 Market moves from 4500 to 4560, then moves to 4490, then moves to 4600, then moves to 4550, then moves to 4630, then moves to 4560.
a- 4500-4560, b- 4560-4490, c- 4490-4600, d- 4600-4550, e- 4550-4630, f- 4630-4560,
Answers may not include all trades for each part but should include minimum of 3 positions each.
Please note that only applicants who understand the logic will be considered.
Source code will be received at end of project
All variables should be in real time prices and not points
Testing will be required for up to 12 weeks after completion of project and response will be required urgently.