[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 166

 
FelixFX:

Good evening all!

Can you please advise how to transfer a variable from an EA located on another terminal, i.e. there are global variables within the same terminal to solve this problem, but what about if different terminals of different DCs?


Here is a fresh article about it right at top of the forum. Plus there are a lot of libraries to suit every need: for example, in general, search rules
 
alsu:

1) they were outraged and stopped 2,3) the best thing to do is to ask Rosh directly

I don't mind, but how ?

Al... The old forum where it all happened no longer exists.

 
alsu:
There's a recent article on this right at the top of the forum. Plus there's a whole bunch of libraries written to suit every need: for example, and in general, search rules


Thanks. I'll try to figure it out.)
 
x501:

I don't mind, but how ?

Al... the old forum that had it all is no longer there.


https://www.mql5.com/ru/users/Rosh

 

Hello.

I apologise in advance for any silly questions - I'm a complete beginner). Called I'm not a magician, I'm just learning.

How best to describe the following algorithm (in the formulas, or at least what functions should be used)

1. manually open a buy position with TP 30 (relatively speaking) pips.

2. when the price reaches TP - the order is closed.

3. Immediately after the previous order is closed, a new order is opened in the same direction with the same TP.

4. This continues until the price starts to reverse. After the reversal, it needs to come to zero - apparently by opening an order in the opposite direction.

And the same algorithm for the reverse - for sell.

I'm not quite sure which side to come from.)

I thank in advance.

 
Magnifique:

Hello.

I apologise in advance for any silly questions - I'm a complete beginner). Called I'm not a magician, I'm just learning.

How best to describe the following algorithm (in the formulas, or at least what functions should be used)

1. manually open a buy position with TP 30 (relatively speaking) pips.

2. when the price reaches TP - the order is closed.

3. Immediately after the previous order is closed, a new order is opened in the same direction with the same TP.

4. This continues until the price starts to reverse. After the reversal, it needs to come to zero - apparently by opening an order in the opposite direction.

And the same algorithm for the opposite - for sell.

I'm not quite sure which side to come from.)

I thank in advance.

Look above, it's all there!

Documentation Tutorial

 
borilunad, thank you for your reply. Upstairs - do you mean in this thread or in the tutorials/documents?
 
Magnifique:
borilunad, thank you for your reply. Upstairs - do you mean in this thread or in the tutorials/documents?
Of course, in textbooks and documentation, and you can get the ready-made stuff at Work. Or do you intend to run an EA without knowledge of the language? Very risky and reckless, and if you have a lot of money, buy the lottery, it's more profitable and you don't need to learn!
 
Magnifique:

Hello.

I apologise in advance for any silly questions - I'm a complete beginner). Called I'm not a magician, I'm just learning.

How best to describe the following algorithm (in the formulas, or at least what functions should be used)

1. manually open a buy position with TP 30 (relatively speaking) pips.

2. when the price reaches TP - the order is closed.

3. Immediately after the previous order is closed, a new order is opened in the same direction with the same TP.

4. This continues until the price starts to reverse. After the reversal, it needs to come to zero - apparently by opening an order in the opposite direction.

And the same algorithm for the reverse - for sell.

I'm not quite sure which side to come from.)

Thank you in advance.


Firstly, of course you should read a textbook and documentation, as you've already been advised.

Secondly, even manually, it's not that difficult. You have to set pending orders in advance. In the case of buy it will be a buystop order. By taking into account the difference of Ask-Bid (spread). That is, your take profit of a previous order should be equal to the opening price of the next BUYSTOP order minus the spread (Ask-Bid). However, there is a small catch, as Ask-Bid in many brokerage companies is not a constant value and can change depending on the weekday, current time, market activity and God knows what else.

In the third, in the Expert Advisor this is done even more elementary, but you need at least a little understanding of programming.

 
Sepulca:


Firstly, you should definitely read the manual and the documentation, as you have already been advised.

Secondly, even manually, it is not difficult. You have to set pending orders in advance. In the case of buy it will be a buystop order. By taking into account the difference of Ask-Bid (spread). That is, your take profit of a previous order should be equal to the opening price of the next BUYSTOP order minus the spread (Ask-Bid). However, there is a slight tricky point concerning the fact that (Ask-Bid) in many brokerage companies is not a constant value and can change depending on the weekday, current time, market activity and on God knows what else.

In the third, in the Expert Advisor this is done even more elementary, but you need at least a little understanding of programming.


Sepulka, thanks for the answer :-) I am studying the tutorial, as well as all the documentation. In addition I've got a video course on mql4, I'm studying it too. I'm still trading (on demo at the moment), but I want to automate some processes, because I use pending orders a lot.