You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You just need to code it first, then, increase the efficiency.
just encode in codobase was https://www.mql5.com/ru/code/291 , and it seems to me that the problem is "solved head-on" and there is no coding
The CandleCode method http://www.forextimes.ru/foreks-stati/candlecode-zhiv is exactly what I'm talking about - i.e. each candle is converted into a digital code, but I doubt that this method will allow to determine the relative position of bars
just encode in codobase was https://www.mql5.com/ru/code/291 , and it seems to me that the problem is "solved head-on" and there is no coding
The CandleCode method http://www.forextimes.ru/foreks-stati/candlecode-zhiv seems to be exactly what I'm talking about - i.e. each candle is converted into a digital code, but I doubt that this method will allow to determine the relative position of bars
Maybe draw a horizontal grid and code by the position of bar prices in the grid. Encode by three levels, by four, by five, etc., thus adjusting the total number of variants and accuracy.
cool!
Let me try to formalise the task: develop a method for determining the mutual positioning of bars for the 5 given examples
1. red bar Open > Close
2. in example 1, red bar High and green bar Low are insignificant or may not exist (in other examples by analogy) is specified by a constant in the
1. 2. 3. 4. 5.
how to effectively code this "stuff" for the above 5 examples?
cool!
Let me try to formalise the task: develop a method for determining the mutual positioning of bars for the 5 given examples
1. red bar Open > Close
2. in example 1, the red bar's High and the green bar's Low are insignificant or may be absent (the rest of the examples by analogy) set by a constant in pp
1. 2. 3. 4. 5.
how to effectively code this "stuff" for the above 5 examples?
First, code each candle separately. And then code the cumulative one.
For comparison take the average size of a candle
IgorM, create a separate thread. This discussion is an afterthought here!
They've totally muzzled poor abolk, he's afraid to appear in a branch with his code. :)
First encode each candle individually. Then code the cumulative.
For comparison, take the average size of the candle
cool!
Let me try to formalise the task: develop a method for determining the mutual positioning of bars for the 5 examples given
1. red bar Open > Close
2. in example 1, the red bar's High and the green bar's Low are insignificant or may be absent (the rest of the examples by analogy) set by a constant in pp
1. 2. 3. 4. 5.
how do I effectively code this "stuff" for the 5 examples?
{
if(High[j]==Close[j]&&Open[j]==Low[j]) //Черный бар без хвостов
if(High[j]>Close[j]&&Open[j]>Low[j]) //Черный бар хвост верх и вниз
if(High[j]>Close[j]&&Open[j]==Low[j]) //Черный бар хвост в верх
if(High[j]==Close[j]&&Open[j]>Low[j]) //Черный бар хвост вниз
}
//----------
if(Open[j]>Close[j])//Белая свеча
{
if(High[j]==Open[j]&&Close[j]==Low[j]) //Белый бар без хвостов
if(High[j]>Open[j]&&Close[j]>Low[j]) //Белый бар хвост верх и вниз
if(High[j]>Open[j]&&Close[j]==Low[j]) //Белый бар хвост в верх
if(High[j]==Open[j]&&Close[j]>Low[j]) //Белый бар хвост вниз
}
//----------
if(Open[j]==Close[j])//Нет свечи
{
if(High[j]>Open[j]&&Close[j]>Low[j]) //+
if(High[j]==Open[j]&&Close[j]==Low[j]) //-
if(High[j]==Open[j]&&Close[j]>Low[j]) //хвост в низ
if(High[j]>Open[j]&&Close[j]==Low[j]) //хвост в верх
}
Decode the bar, add your condition, in the right line and get what you want.
By the way, this is one example where if is not replaceable and there are quite a few
By the way, this is one example where if is not replaceable and there are quite a few