[Archive!] I'll write an advisor for FREE - page 17

 
In order to know how to change, you must first see what needs to be changed.
[Deleted]  
Good day!

Please tell me how to write an EA for pending orders, for example:

To place two pending buy and sell orders +/- 15 pips from the current price with take profit of 15!

And most importantly, that when one of them triggers and executes, the second pending order is deleted!

Thank you!

 
Locker:
Hello!

Please, advise how to place a pending order for example:

To place two pending buy and sell orders +/- 15 pips from the current price with a take profit of 15!

And most importantly, that when one of them triggers and executes, the second pending order is deleted!

Thank you!

It's already written in the codebase.
[Deleted]  
sergeev:
in the codebase is already written.
sergeev, please post the link.
 

Every time I come across the subject title, I can't help but smile.

It sounds like "Eat cake for free".

 
DhP:

Every time I come across the subject title, I can't help but smile.

It sounds like "Eat cake for free".


Everything in life happens. And free pies, only you usually have to pay later
 
Vinin:

Everything in life happens. And free cakes, only you usually have to pay later.
The whole family budget? ))
 
DhP:
The whole family budget? ))


And that depends on who has what kind of budget.

 
I corrected the last post. It didn't sound right
 
Mudreishii:

Hello.

Please make a simple Expert Advisor that opens one order for a certain amount of points and if the price passed them and closed in the + side, the order closes and opens back in the plus side. If it is in a minus position, it reverses to the minus position.

Parameters to be set - Size of lot and number of points to be passed.

Many thanks in advance.

Regards Dimitriy.


Found this in the kodobase, tweaked it a bit.
The picture is like this :-)

Files:
y-.mq4  2 kb