İş Gereklilikleri
1)When the EA is placed on a chart, it should create a horizontal line, line1, at the current price. If the price closes above this line( Line1), a buy position is opened with lot size, L1. If it closes below this line(Line1), a sell position is opened With lot size, L1
**Please note that if a candle goes above the length of the two horizontal line( i:e by a value X) a buy position is opened immediately without waiting for the price to close. If it goes below two horizontal line(i:e by a value of X), a sell order is opened immediately without waiting for the candle to close.
2)Whenever a position is opened( buy or sell),a horizontal line,(Line2) is created X distance from the first one(Line1) ( above if a buy position or below if a sell position).
3)For an example, If its a buy, each time the position moves higher by at least X from the last line and then closes above X, a horizontal line, X from the last line is created below the closing price. This goes on and on. The Position is closed when the price goes down and closes below the last horizontal line created just below ( for a profitable buy position) or above the horizontal line just above(for a profitable sell position).
4)If at the start, the position opened is a buy, but it doesn't become profitable, rather, after opening, it moves downwards and closes below the first horizontal line( Line1), a sell position should be opened with lots L2. This position is then monitored as explained in #3 above( but in opposite direction).
If the sell position then goes up instead of continuing down, a new line( Line2), is created X distance from line 1 and if it closes above this line( Line2), a buy order is created with lots L3.All 3 opened positions( 2 buys and one sell) are monitored. They are only closed when the last position( which in this case a buy) is profitable when the candle closes below the last created horizontal line. If it's a sell position that was the profitable position then above the last created horizontal line.
However, if after opening lot L3, the price then goes down X distance below Line1 and closes, a horizontal line(line3) is created and a sell position is opened with lot size L4 below this line where the candle closed,.
No sell or buy position is opened as long as the price continues to move in the direction of the last opened position despite horizontal lines are continued to be created each time a candle closes X distance from the last horizontal line(most recently created).
If a price going up, changes to a downward trend then closes below the last created horizontal line, all opened positions are closed if it is in profit. However, if it is not in profit when these conditions take place,( i:e trend direct changes and close below last created horizontal line), then a sell position is opened with the next lots size. The reverse should be the case for a sell position that changes direction
Very, very Important: The EA must have continuity( that is should remember where it stopped and what it was doing if interrupted and must be able to continue from there when it resumes. That is, if there is any kind of interruption, e.g, trading ends for the week( Friday 4pm Eastern), user removes EA, Internet or power failure, or any thing that interrupts the EA, )
After a trade( i:e a series of opened position), is closed, a new set of trade should be opened immediately. For example, if it is a buy position that was profitable, it is closed when the price closes below the most recently created horizontal line below it. A new trade with sell position starting with lot L1 is then opened and the whole process,as described above is repeated. If its a sell position that was closed after being profitable, a new buy position is opened and the whole process repeated
Please create the following parameters:
i)X=Distance of the horizontal line,
ii) 25 setting for lot sizes( User can enter the lo sizes,l1, l2------ln)
Take Profit
Trailing stop
Continues Trade(True/False Button
Line visibility ( True/fasle)
Also, include any other relevant settings
Please, as its fairly obvious, positions re-opened in alternative order( i:e a buy than a sell, then another buy, then another sell, e.t.c)
The EA should trade continuously, non-stop except the Continues Trade True/False button is set to false, then it should not open another trade after a profitable trade is closed.
Each horizontal line can only have a maximum of one buy and one sell. If it is a profitable position, then no position is opened in a line, it just keeps going up( for a buy) or down ( for a sell) until it is closed at a profit.
There should be settings for take profit and trailing stops. If values are entered for the take profit and trailing stops, they become the default for closing trades(i:e the trade closing method explained in the specification is not used, rather the take profit and trailing stops becomes default method to close trades)