Theoretical Question: Long, Short, Position Size, Hedging

 
Hello everyone,

I hope you are well 😊,



I have some theoretical questions about the MQL5 language as I am just starting out: 

1) is it possible to create an EA that opens separate Long and Short positions at the same time? Example opening a Long and a Short at the same price.

2) Is it possible to open several positions and manage them differently in the same robot? Example Pyramider, different TP and SL, Relicat, ..... for the same position

3) Is it possible for two EA to communicate with each other? For example, is it possible to automatically retrieve values from one EA and transmit them to another EA?



Thank you in advance for your insights 😊
 

Hello,

1) Yes, that is possible. (Keep in mind Ask and Bid price difference however).

2) Yes, that is possible as well. You can for instance identify trades using a different magic number for each strategy you have in the same EA.

3) Yes, using common files, especially written ones. There might be other ways of doing so, but the latter is what I know about.

 
ZeroCafeine Example opening a Long and a Short at the same price.

Martingale is not a strategy. It's a betting system.

Hedging, grid trading, same as Martingale.
          Martingale, Hedging and Grid : MHG - General - MQL5 programming forum (2016)

Martingale, guaranteed to blow your account eventually. If your strategy is not profitable without, it is definitely not profitable with.
          Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum (2015)

Why it won't work:
          Calculate Loss from Lot Pips - MQL5 programming forum (2017)
          THIS Trading Strategy is a LIE... I took 100,000 TRADES with the Martingale Strategy - YouTube (2020)

 
The answer to all your questions is a vivid yes
 

@Zaky Hamdoun

Tks you so much 🙂

 

@William Roeder


There is only one strategy that works for sure with the martingale and that is to have infinite funds, even Berni didn't make martingales 😊,


Again, thank you for your links, but unfortunately I will not consult them because this is not the subject and for lack of time 😊


Otherwise more seriously, if you had links with examples to my questions I would be delighted 😊

 

@Ebunoluwa Abimb Owodunni


Sorry for my question but what is mean vivid ?

Reason: