Leanid Aladzyeu: Anybody willing to skype help? The code is written, but there are a couple of questions ( I'll share the code if needed, in a nutshell it's Fibonacci with a trawl)
Not a pity both on Skype and on the phone ... but I'm leaving now. Will be on the road for two days. Be back in a couple of weeks.
I take 24 candles and find max and min in the shadows.
(Max - min )/ 1000 to find the value in terms of price 0.1% of the channel. It turns out that sometimes negative values are how? Checks are before the calculations (for the trend, position of candlesticks and min. channel)
I am trying to make a include file with the signal by the fractal indicator, I took the standard code as a base.
I use standard code. My logic is elementary - buy or sell, if the fractal is broken.
I put Print on each step, for example:
Print("CSampleSignal::ValidationSettings()");
I don't get Print() from functions:
CSampleSignal::CheckOpenShort()
CSampleSignal::CheckOpenLong()
no explicit errors
Please find out where I have made a mistake.
The function parameters must be restored to their original form otherwise they simply won't be called:
//+------------------------------------------------------------------+//| Проверка выполнения условия для покупки. |//+------------------------------------------------------------------+//bool CSampleSignal::CheckOpenLong(double& price,double& sl,double& tp,datetime& expiration)int CSampleSignal::CheckOpenLong()
{
//+------------------------------------------------------------------+//| Проверка выполнения условия для продажи. |//+------------------------------------------------------------------+//bool CSampleSignal::CheckOpenShort(double& price,double& sl,double& tp,datetime& expiration)int CSampleSignal::CheckOpenShort()
{
The EA works on levels stored in the arrays, if there are more than 0 orders in the market then it should use the last filling and not change its levels in the arrays anymore, filling in the arrays is done in the function.
If I set a returnee in the function, when an order is on the market it gives me zero arrays (I set the returnee before the arrays are zeroed),
How to get the array values without calling the function? Or how to make an array store the last values that were written?
Or is it to be filled in the start ,? The function will not have to be called and the filling condition is order==0. ?
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.
Anybody willing to skype help? The code is written, but there are a couple of questions ( I'll share the code if needed, in a nutshell it's Fibonacci with a trawl)
Question .
Whatever the question, that's the answer:Telepath Club
Yeah, I need to buy glasses ( Attention deficit).
Why is the condition not being met?
Good afternoon,
I am mastering OOP,
I am trying to make a include file with the signal by the fractal indicator, I took the standard code as a base.
I use standard code. My logic is elementary - buy or sell, if the fractal is broken.
I put Print on each step, for example:
Print("CSampleSignal::ValidationSettings()");
I don't get Print() from functions:
CSampleSignal::CheckOpenShort()
CSampleSignal::CheckOpenLong()
no explicit errors
Please see where I have made a mistake.
Good afternoon,
I am mastering OOP,
I am trying to make a include file with the signal by the fractal indicator, I took the standard code as a base.
I use standard code. My logic is elementary - buy or sell, if the fractal is broken.
I put Print on each step, for example:
Print("CSampleSignal::ValidationSettings()");
I don't get Print() from functions:
CSampleSignal::CheckOpenShort()
CSampleSignal::CheckOpenLong()
no explicit errors
Please find out where I have made a mistake.
The function parameters must be restored to their original form otherwise they simply won't be called: