Competition. I will write an expert for free. - page 17

 

Yeah...

Such proposals, which allegedly aim to do a good deed, in fact, is nothing more than an attempt to get someone else's idea and implement it.
:) Do you have none of your own (it's to those who write TC)?
In fact, the language of MQ4 is incredibly simple, besides it has an excellent HELP, and there is a lot of books, though the HELP is more than enough. Take a couple of days and you'll see for yourself.

Of course, there is one more "but", it is the presence of an analytical mindset. But I do not believe that the trader does not possess this quality. Believe in yourself to the end!

 

Dear Masters!

Could you please answer whether it is possible to write such an EA (see below) and what possible prospects it has in your experience. What is not considered in it?
The idea of the Expert Advisor is very simple, but it has many limitations in order to reduce losing trades.

1. Entry condition:
a) 3 or more candles in series (the notation is "forward" movement).
b) 2 candles in the opposite direction (abbreviation - "reverse" movement)
c) The time of entry - 10 seconds before the end of formation of the "last" candle.
d) to open no more than one transaction in a time interval (x) - an adjustable parameter.
e) opening of a bet within a period of time, for instance from 9.00 to 18.00 - adjustable parameter.
f) opening of a bet only after the closing of the previous bet.

2. Additional and adjustable parameters:
(a) Ratio of "forward" to "backward" candles
(several options can be set, for instance 3:2, 4:2, 5:3, 6:3, or as a percentage: 50% to 70%, in which case the ratio will be included in this range)
b) the size of the invisible "stop loss".
d) the size of the bet as a % of the cash deposit;
e) the percentage of "reverse" movement from the "forward" movement (40% and below);
f) Expert should not close/modify bets opened by other experts or manually.

3. "Stop Loss" (invisible):
a) stop-loss should be invisible, i.e. set not on the server but virtually;
b) Stop Loss step: Stop Loss is decreased by an adjustable number of points with every generated candle;
c) Trailing Stop Loss: Stop Loss is trailing in increments of 1 behind the price (see the attachment has a trailing Expert Advisor, but it is designed for visible Stop Loss).
d) Invisible stop loss should be invisible only to the server, the stop loss line should be displayed on the screen.

4. "Take Profit:
a) shall not be exposed;

5. Communication with the server:
a) In the event of a break in communication with the server, an audible notification;
b) When connection is restored:
1) audible notification;
2) Expert Advisor shall disconnect from accompaniment of bet, if he left in deficit;
3) Expert Advisor shall close bet if they went to the profit.

6. Time-frames:
(a) Work on any timeframes;

7. Exit condition:
a) triggering of an invisible "stop loss";
b) Closing of a bet, in case of formation of "reverse" movement more than (x) candles (adjustable parameter);
c) If there is one-way "profit" movement in the size (x) of candlesticks (adjustable parameter), closing of a bet.
d) Closing a bet when a "reverse" candle has formed and crossed or failed to cross the level reached by the last candle of the "forward" movement.
e) closing of the bet, if it went in the profit, starting from the moment of time - xx.xx (adjustable parameter).

I will be glad to get any advice or real help in realization!
Regards,
Alexander

Files:
 

Well, if it's really "free" here, maybe someone could help me out. I'd be very grateful.

there's an expert "locker" If you want to change it in some way, first, you have to make it so when it would open a locking order, (the lot would be opened as a percentage of an losing order, not as a fixed lot), it would close it when the EA or a human closes the order it was opened for, not when these positions reach certain profit in % as it is mentioned in the locker, If i have a profit of 50+ which is specified in external parameters of the locker, i just don't know if it is pips or points, the locker opens the order in the same direction as the profit order and closes it the same way as the loss order, and most importantly it should not open itself like now.
(a little addition about the positive lock, if the profit of the order, for which a positive lock is set, the second time comes to the same 50+, so that the lock does not close the first positive lock, open another one, but it is if you undertake

(although I bet you won't)

Files:
locker.mq4  8 kb
 
Can someone try to write a simple Expert Advisor for one indicator Slope Trend mtf .mq4 . The conditions are as follows in the file:

condition of work (each deal should be opened with its own comment)

1.buy - if the line on Slope Trendmtf 5min and 15 min green (comment is automatically 15)

" // intraday trawl parameters ( 15 min )
extern double MaxLot1 = 0.1; // maximal lot allowed
extern int MaxN1 = 2; // max.
buy order (1order if the line is green and price < price of the green zone appearing by 70 points; condition of opening another order if price of the first order > price of 2 by 70 points and so on for the set of valid orders)
extern int SL10=100; // initial stop
extern int TP10=300; // takeprofit
extern int SL11=3; // stop without loss + 3 points. put
extern int Prof11=100; //on reaching 100 points profit.
extern int SL12=100; //stop at breakeven + 100 points. put
extern int Prof12=100; //on reaching 100 points profit.
extern int SL13=100; //stop at breakeven + 100 points. place
extern int Prof13 = 100;//on reaching 100 points profit "; 2.buy - if lines on Slope Trendmtf are green (comment is automatically placed 30) "// intraday trail settings ( 30 min)
extern double MaxLot2 = 0.1; // maximum allowed lot
extern int MaxN2 = 2; // max.
buy order (1order if lines are green and price < price of green zone appearing by 70 points; condition of opening another order if price of first order > price of 2nd order by 70 points and so on for the set of orders)
extern int SL20=100; // initial stop
extern int TP20=500; // takeprofit
extern int SL21=3; // stop without loss + 3 points
. put
extern int Prof21=100; //when a profit of 100 points is reached.
extern int SL22=100; //stop to Breakeven + 100 points. put
extern int Prof22=100; //when a profit of 100 points is reached.
extern int SL23=100; //stop to Breakeven + 100 points. put
extern int Prof23=100; //when a profit of 100 points is reached."

3.buy if the line on Slope Trendmtf is green

(comment is automatically placed 1)" // intraday trawl parameters ( 1 )
extern double MaxLot3 = 0.1; // maximum lot allowed
extern int MaxN3 = 2; // max.
buy order (1order if the line is green and price < price of green zone appearing by 70 points; condition of opening another order if price of first order > price of 2nd order by 70 points and so on for the set of orders)
extern int SL30=100; // initial stop
extern int TP30=800; // takeprofit
extern int SL31=3; // stop without loss + 3 points. put
extern int Prof31=100; //when a profit of 100 points is reached.
extern int SL32=100; //stop to Breakeven + 100 points. put
extern int Prof32=100; //when a profit of 100 points is reached.
extern int SL33=100; //stop to Breakeven + 100 points. put
extern int Prof33=100; //when a profit of 100 points is reached .Sell - if lines on Slope Trendmtf 5 min and 15 min are red (sets comment 15 automatically)"// intraday trawl parameters ( 15 min )
extern double MaxLot1 = 0.1; // maximum allowed lot
extern int MaxN1 = 2; // max.
sell orders are allowed (1order if the line is red and price > price at which the red zone appears by 70 points; the condition for opening another order is if the price of the first order < price 2 by 70 points and so on for the number of allowed orders)
extern int SL10=100; // initial stop
extern int TP10=300; // takeprofit
extern int SL11=3; // stop at breakeven + 3 points
. put
extern int Prof11=100; //on reaching 100 points profit.
extern int SL12=100; //stop at breakeven + 100 points. put
extern int Prof12=100; //on reaching 100 points profit.
extern int SL13=100; //profit lossless stop + 100 points. put
extern int Prof13 = 100; // upon reaching 100 points profit" 5.Sell if lines on Slope Trendmtf 5min, 15 min, 30min red(comment is automatically put 30)"// intraday trail parameters ( 30min)
extern double MaxLot2 = 0.1; // maximum allowed lot
extern int MaxN2 = 2; // max.
sell orders are allowed (1order if the line is red and price > price of red zone by 70 points; condition of opening another order if price of the first order< price of 2 by 70 points and so on for the number of allowed orders)
extern int SL20=100; // initial stop
extern int TP20=500; // takeprofit
extern int SL21=3; // stop at breakeven + 3 points
. put
extern int Prof21=100; //when a profit of 100 points is reached.
extern int SL22=100; //stop to Breakeven + 100 points. put
extern int Prof22=100; //when a profit of 100 points is reached.
extern int SL23=100; //stop to Breakeven + 100 points. put
extern int Prof23=100; //when a profit of 100 points is reached." 6.Sell if lines on Slope Trendmtf are red ( 5min, 15min, 30min, 1hour) " // intraday trawl parameters ( 1 )
extern double MaxLot3 = 0.1; // maximal lot allowed
extern int MaxN3 = 2; // max.
sell order (1order if the line is red and price > price of red zone by 70 points; condition of opening another order if price of the first order< price of 2 by 70 points and so on for the set of valid orders)
extern int SL30=100; // initial stop
extern int TP30=800; // takeprofit
extern int SL31=3; // stop at breakeven + 3 points
. put
extern int Prof31=100; //when a profit of 100 points is reached.
extern int SL32=100; //stop at breakeven + 100 points. put
extern int Prof32=100; //when a profit of 100 points is reached.
extern int SL33=100; //stop at breakeven + 100 points. put
extern int Prof33=100; //when a profit of 100 points is reached.
Files:
 
Hi all !!! I would be thankful for an EA that will place pending buy stop orders 10 pips above yesterday's high and sell stop orders 10 pips below yesterday's low at the same time. Parameters that I would like to change in it: Take profit, trailing stop, stop loss, and the number of points opening orders from yesterday's high and low. Thanks in advance.
 

Is it realistic to make an EA using this indicator?
ikarfx@mail.ru

 
Hello, please help me write an EA on the nonlagdot indicator. if the line is red, then sell lot 1, if the price passes a large number in the right direction, and drawn a blue, then open on a buy lot 1, if the price does not go in the right direction and the colour line changing, open the opposite position a lot 2, then if again not in our direction, rollover lot 3x, then a rollover 4x, 5x, etc. .... position opening or reversal should be done if the indicator makes 3-4 points in the direction of coming opening. it may work better if the Expert Advisor crosses 2 MAs or other indicators. the Nonlagdot indicator http://indicator.forex-investo.ru/download-indicator/4643-indikator-nonlagdot
 

I need an EA to enter pending orders:

The Expert Advisor places pending orders:

Trade condition for BuyStop order:

  1. Fractal above the Alligator's Jaws.
  2. Limit of loss: (order open price - Stop) < 1000 pips.
  3. No more than 2 pending orders at the same time.

The same for SellStop order.

Stop Loss according to the opposite fractal.

Two orders are placed in each side at the same open price, with the same stops, but different lot sizes and different TP.

For 1 order, TP = Trailing Stop

For 2 orders, TP is calculated using the formula = (Open price - Stop)/3

If a new fractal is formed, the old orders are removed and new ones are placed based on the new data.

If the order was executed to any side, orders to the opposite side shall be deleted as there are no more reasons to set stop prices for these orders.

If after this, a new fractal is formed which meets the trading conditions, a new order is placed, irrespective of whether the previous ones were closed or not. That is, we need a counter for pending orders which will consider all changes and keep the number of pending orders within the set limits.

Thank you.

Reason: