where buffer is the value of the required buffer (0 - bearish candlestick shadow, 1 - bullish candlestick shadow, 2 - bearish candlestick body, 3 - bullish candlestick body),
bar - number of the needed bar (0 - current bar)
clBearShadow - colour of bear candlestick shadow, clBoolShadow - colour of bullish candlestick shadow, clBearBody - colour of bear candlestick body, clBoolBody - colour of bullish candlestick body.
Hello! Can you please tell me how to solve the problem with the EA?I can't find the reason. Orders are opening but closing is not working and trawl is not working.
I tried to closeall(), order types are mixed up, I should have closeall(0) for BUY and closeall(1) for SELL. Wrong magik is applied too.
Why do I even need to set
int mMagic; нигде не инициализирован
а ниже ещё раз, но уже внешней переменной
externint Magic = -1;
And why aren't we reading the error log? Is there really nothing there?
artmedia70: Yes, Boris, you're right. I've written this before, while falling asleep. Habit is a bool... ;)
You get confused with bulls! It's like a bull, but all of a sudden it's going down. And it's no easier with bears, either! They lie down and then suddenly rise up. Bye-bye to sleep! ;)
for 4 months, tested yesterday for 2 years no further lots allowed)
Trade a fixed lot on the real and sell the signal for 20 quid, it's more profitable than selling the Expert Advisor itself. Although, in two years, if all goes well, you can start selling the Expert Advisor, for 50 quid ;)
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.
where buffer is the value of the required buffer (0 - bearish candlestick shadow, 1 - bullish candlestick shadow, 2 - bearish candlestick body, 3 - bullish candlestick body),
bar - number of the needed bar (0 - current bar)
clBearShadow - colour of bear candlestick shadow, clBoolShadow - colour of bullish candlestick shadow, clBearBody - colour of bear candlestick body, clBoolBody - colour of bullish candlestick body.
You can use default values, then:
Why Bool? Isn't it Bull?
Hello! Can you please tell me how to solve the problem with the EA?I can't find the reason. Orders are opening but closing is not working and trawl is not working.
I tried to closeall(), order types are mixed up, I should have closeall(0) for BUY and closeall(1) for SELL. Wrong magik is applied too.
Why do I even need to set
And why aren't we reading the error log? Is there really nothing there?
Yes, Boris, you're right. I've written this before, while falling asleep. Habit is a bool... ;)
Closeall() calls, order types are mixed up, should be for BUY = closeall(0) and for SELL = closeall(1). The wrong magik is also applied.
Why do I need to set
And why I have not read the error log? Is there really nothing there?
People!!! How much will my advisor cost? :)
for 4 months, tested yesterday for 2 years no further lots allowed)
People!!! How much will my advisor cost? :)
for 4 months, tested yesterday for 2 years no further lots allowed)
People!!! How much will my advisor cost? :)
for 4 months, tested yesterday for 2 years no further lots allowed)
I am just learning the system, so please do not judge me too harshly.
1 I have a question: in what direction should I go, my Expert Advisor opens more than one position; it does not always open one position on a bar.
2 If the order reopens when the stop or profit is true
SRC!
SRC!