I wrote it all above. Reread the posts carefully. Your task is not something difficult. If you focus on the task and not bicker on the forum you'll be fine. Good luck.
"bickering" is the teacher entering the chat room. I'm sorry, but you're more of an arrogant arrogant arrogant than an articulate articulate articulate. It'll pass, I was like that when I was 13.
Wrote what? About the array? Did I do that first, or do you mean the definition of an indicator? Or maybe about the way to open two orders and put the TF of the first in the second? Such a neat solution leading to a bunch of side problems.
Nerd Trader #: "bicker" - the teacher has entered the chat room. Sorry, but you're sticking out your ego more than you're writing about the point. It'll pass, I was like that when I was 13.
It's not about my importance or anything else, it's about the importance of knowledge of programming, which you don't have. If you were at uni and behaved like that in class, at the very least the teacher would reprimand you or kick you out. That's when you'd tell him about your ego...? :)
You don't have knowledge not because you're a beginner but because you're ignorant... When someone tells you once again that an EA is different from an indicator, you will continue to say your "what difference does it make". :)
I wrote: "Indicator opens trades" and "Bot needs a timeframe for a trade". No one would even reply to such a question as it lacks any logic. But I tried to answer it. I got a lot of accusations and insults. Is that instead of "Thank you"...?
This won't work because the bot is running on a remote server, so I write the TF in the comment, that would be fine, but it gets overwritten by the ticket when you close part of the volume.
Do an individual magic number for orders on different timeframes. This number does not change when partially closing.
If I receive a signal (for example, Buy), I need to open an opposite order (Sell) after the lot conditions are met.
I built the code:
// Получим значение индикатора
dMA = iMA(Symbol(), 0,PeriodMA, MovingShift, MODE_SMA, PRICE_CLOSE, 0); // MODE_SMA - простое усреднение , значение 0. PRICE_CLOSE- цена закрытия, значение 0.// Если нет открытых ордеров, то входим в условиеif(CountOrders()==0)
{
// Если появился сигнал на покупку, то откроем ордер на покупкуif(bSignalBuy() == true)
vOrderOpenBuy();
if((bSignalBuy() == true)&&(GetLotSize()>LotControl))
vOrderOpenSell();
// Если появился сигнал на продажу, то откроем ордер на продажуif(bSignalSell() == true)
vOrderOpenSell();
if((bSignalSell() == true)&&(GetLotSize()>LotControl))
vOrderOpenBuy();
}
but when a condition occurs
(GetLotSize()>LotControl)
But in this case two opposite orders are opened simultaneously. How do I "fix" it?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I wrote it all above. Reread the posts carefully. Your task is not something difficult. If you focus on the task and not bicker on the forum you'll be fine. Good luck.
Wrote what? About the array? Did I do that first, or do you mean the definition of an indicator? Or maybe about the way to open two orders and put the TF of the first in the second? Such a neat solution leading to a bunch of side problems.
"bicker" - the teacher has entered the chat room. Sorry, but you're sticking out your ego more than you're writing about the point. It'll pass, I was like that when I was 13.
It's not about my importance or anything else, it's about the importance of knowledge of programming, which you don't have. If you were at uni and behaved like that in class, at the very least the teacher would reprimand you or kick you out. That's when you'd tell him about your ego...? :)
You don't have knowledge not because you're a beginner but because you're ignorant... When someone tells you once again that an EA is different from an indicator, you will continue to say your "what difference does it make". :)
I wrote: "Indicator opens trades" and "Bot needs a timeframe for a trade". No one would even reply to such a question as it lacks any logic. But I tried to answer it. I got a lot of accusations and insults. Is that instead of "Thank you"...?Encrypt in magik. I have described the whole encryption and decryption procedure in the articles.
Encrypt in magik. I have described the whole encryption and decryption procedure in articles.
Give me the link, it takes me about 30 minutes to find it every time) Good approach to encryption.
Give me the link, it takes me about 30 minutes to find it every time) Good approach to coding.
I don't remember it myself :)
I'll be looking for 30 minutes too ...
This won't work because the bot is running on a remote server, so I write the TF in the comment, that would be fine, but it gets overwritten by the ticket when you close part of the volume.
Do an individual magic number for orders on different timeframes. This number does not change when partially closing.
Make an individual magic number for orders on different timeframes. This number does not change when partially closed.
And why encrypt the symbol in the magic number if it is already readable from the order/position? And why such values for the SymNumber?
Make an individual magic number for orders on different timeframes. This number does not change on a partial close.
Thank you for StringFind. But it would be much easier for me.
And I would get the order symbol later using OrderSymbol().
hello!
If I receive a signal (for example, Buy), I need to open an opposite order (Sell) after the lot conditions are met.
I built the code:
but when a condition occurs
But in this case two opposite orders are opened simultaneously. How do I "fix" it?