작업 종료됨
명시
You will make a new Expert Adviser for MT4 Platform.
Strategy of EA will be like this-
EA will have different options which can be enabled or disabled.
It will have features which will be as follows-( All options will be optional which can be enabled or disabled)-
Overall take profit in 1 day,
(We will mention pips or points.
for example we put value of 100 pips in overall Take profit option. And if today EA reaches to that point where it has overall profit of 100 pips from all trades combination, it will instantly close all running trades for today and stop working for today’s date. Unless we don’t re-start the EA manually once again.which means we reattach it to same chart and start EA again for today’s date)
Time to Trade for EA – Start time and End time (At the end time, there might be a running trade , all trades will close at that End time- whether in profit or loss)
At start time, EA will open a Trade instantly.
Filter Moving Average- If price is below the MA, it will only open a sell trade and if price is above the MA, it will open a buy trade.
So, Lets start with the strategy.
Now at the start of the EA , if Price is above the MA. It will open a buy trade.
Now there can be only 2 results- either trade goes in profit or loss.
We will discuss both conditions separately.
PROFIT- If trade goes in profit. We will set different parameters.
We will decide some level where EA will work in profit trades.
So we will have option in EA to set that level in points.
So for example we set 300 (which is 30 pips) in that option.
What will happen, when the buy trade goes at the level of 30 pips of profit, it will open another buy trade with double the lot of first trade.So, if initial trade was 1 lot , now it will open a buy trade with 2 lots at that level above 30 pips from first trade.
So for example the first buy trade was opened at 1.3200 level with 1 lot.
When this trade moves at 30 pips profit at the level of 1.3230, another buy trade will be opened with double the lots of first trade which will be 2 lots and stop loss of first trade will be set at 1.3220 level and for second trade with 2 lots, stop loss will also be set at the same level of 1.3220(10 pips below). So the idea is – if stop loss is hit – we will not have any losses because first trade will have 20 pips profit and second trade will have 10 pips loss for 2 lots which will be same as 20 pips. So it will cancel each other.
Moving further on, now the stop loss for both trades will keep jumping every 10 pips.
So after every 10 pips movement in profit, stop loss of both trades will move towards- 1.3230 then at 1.3240 and then at 1.3250. when the stop loss will reach at 1.3250- the price is at 1.3260 which is 30 pips away from second trade(2lots). Here at this point, EA will open third buy trade with double the lot of second trade(so it will be 4 lots). So third trade will be opened at 1.3260 price level with 4 lots and having stop loss at 1.3250.
Now if price keep moving in profit- the stop loss will keep jumping every 10 pips for all 3 trades- which will be at 1.3260 then at 1.3270 then at 1.3280. when the price reaches 1.3290(stop loss at 1.3280) , this level is further away 30 pips from third trade. So here at 1.3290- EA will open a fourth buy trade with double lots than previous third trade (i.e. 8 lots) with stop loss for this fourth trade at 10 pips (1.3280). so like this, the EA will keep opening the new buy orders at movement of every 30 pips with double the lot size from previous trade and stop loss at 10 pips and stop loss of all previous trade will keep jumping every 10 pips.
The time will come when all these trades will close together at the hit of stop loss because all have same stop loss level.
So profit will be more with combination of all these trades.
So this was the strategy for a trade in profit that we double the trade at a specific level and securing profits by jumping stop losses for all trades.
Now if a trade goes in loss. Strategy will be different for that.
LOSS- we will take the same example to understand it.
Here also we will decide a level in the option of EA. ( For example- here also we decide 300 points)
So our first buy trade was opened with 1 lot at 1.3200.
If it goes in loss for 30 pips and price moves to 1.3170 level.
The EA will open a sell trade with 3 times of first trade which will be 3 lots at 1.3170.
Now in this case, price will either move up or down.
(1) If price moves further down, as soon as , price moves 15 pips below which will be at 1.3155- the first buy trade will be in loss of 45 pips and second sell trade will be in profit of 15 pips(3 lots) – so total 45 pips profit. Here the EA will close the first buy trade and set stop loss of second sell trade at 1.3155 level so that our 15 pips profit is secured. Now if price further goes down- the stop loss will keep jumping after every 10 pips.
So when price goes to 1.3145, stop loss sets here, when at 1.3135, stop loss moves here and so on until the trade stops out. Here stop loss for sell trade will keep jumping as soon as the price moves down 10 pips, it will suddenly set at that point.
(2) If price moves above the level of 1.3170 after the opening of second trade which is 3 lots sell trade. The stop loss of sell trade will be 10 pips away and if price reaches that level of 1.3180, the 3 lots sell trade will be closed in loss of 10 pips(3 lots x 10 pips =total 30 pips) and at the same time the first buy trade of 1 lot will also be closed. So total loss of 20 pips for first buy trade and 30 pips (3lots X10 pips) for second sell trade will be there – so total 50 pips loss.
So in this way, we will manage our first trade according to the price movements.
As soon as the first buy trade is closed, no matter wherever it is closed- the EA will open a new trade at the open of next candle- EA will decide this new trade according to the price level with respect to MA. If price is above the MA – it will be a buy trade and if its below the chosen MA- it will be a sell trade.( It will be again 1 lot) A new trade will always be 1 lot as we decide in the parameter of EA.
And again we will manage this new trade according to our strategy- whether it goes in profit or loss.
I hope u understand the strategy.
So please tell me -how much time and money it will take?
Thanks for your support.