[Archive!] Writing an advisor for free - page 82

 
You can remove it, but you'll end up with a neutered EA and the whole idea will go to waste.
 
I'm not the one who's going to make the targets, I just need a sliding order
 
Andrei26:
I have solved the problem thanks to abolk, but how to make take profit not to put up


The problem has been solved but the conclusions are inconclusive.

I'll say it again:

In order to advise you, you must have all the information you need: 1) the code itself; 2) a screenshot with a description; 3) settings; 4) EA report

 

I just need a sliding order on the three Elder screens I will set the take out myself

If I only select long positions.
1 . A pending order is placed
at the level of the maximum of the last closed candle plus 3 points plus
a distance equal to the spread.
2 . Stop Loss is put at the minimum of the current day minus 3 pips.
3 . Take Profit should not be set.
4 . Trailing Stop should not be set.
5 . If the position is open, no new orders are placed.
6 . If position is closed by a stop loss, a new
pending order is placed at the level of the high of the last closed candle plus 3
points plus distance equal to spread, stop loss is placed at the low
of the current day minus 3 points, take profit is not placed trailing stop
is not placed if position is open new orders are not placed.
If I choose only short positions.
1 . I place pending order
on level of a minimum of the last closed candle minus 3 points.
2 . Stop Loss is set at the high of the current day plus 3 pips plus
a distance equal to the spread.
3 . Take profit should not be set.
4 . Trailing Stop shall not be set.
5 . If the position is open, no new orders are placed.
6 . If position is closed on a stop loss, a new
pending order is placed on the level of the minimum of last closed candle minus 3
points, stop loss is placed on the maximum of the current day plus 3 points plus
distance equal to spread, take profit is not exhibited trailing stop is not
exhibited if position is open new orders are not placed.
Many thanks in advance. )

 
Andrei26:

"our song is good, start from the beginning" (c)
 
I just need a sliding order on the three elders screens I will set my own takeaways

If I only select long positions.
1 . A pending order
is placed at the level of the maximum of the last closed candle plus 3 pips plus
a distance equal to the spread.
2 . Stop Loss is set to the minimum of the current day minus 3 pips.
3 . Take Profit should not be set.
4 . Trailing Stop should not be set.
5 . If the position is open, no new orders are placed.
6 . If position is closed by a stop loss, a new
pending order is placed on the level of last candle's high plus 3
points plus distance equal to spread, stop loss is placed on
current day low minus 3 points, take profit is not placed trailing stop
is not placed if position is open new orders are not placed.
If I choose only short positions.
1 . I place pending order
on level of a minimum of the last closed candle minus 3 points.
2 . Stop Loss is set at the high of the current day plus 3 pips plus
a distance equal to the spread.
3 . Take profit should not be set.
4 . Trailing Stop shall not be set.
5 . If the position is open, no new orders are placed.
6 . If position is closed on a stop loss, a new
pending order is placed on the level of the minimum of last closed candle minus 3
points, stop loss is placed on the maximum of the current day plus 3 points plus
distance equal to spread, take profit is not exhibited trailing stop is not
exhibited if position is open new orders are not placed.
Many thanks in advance. )
 
Guys, how do I remove the take profit from an EA ?
 
I didn't give you the source code for nothing. Re-read Andrei's posts.
 
grell what do I need to change in the code of the EA so it does not set take profit ( I know, I'm a zerobot)
 
Put out the code, I'll show you.
Reason: