
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
{
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 to 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
Second line think carefully
I ask the audience with a question on how to code, well, let it be my question on the development of the alphabet for candlestick combinations: comb_A, comb_B, comb_C, comb_D, comb_E - respectively Fig. 1-5.
Second line think carefully
{
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 to 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
Do you limit the number of candles to a certain combination somehow, or can there be 2 as well as 3, or 4, or 5?
Let's look at a concrete example with pictures for now, as Integer wrote : " First, you just have to code, then, increase efficiency. "
i.e. there are only 5 pictures and you need a methodology for that, well roughly how:
it is all clear, and any "average programmer" can implement it, I am asking the audience with a question how to code, well, let it be my question to develop the alphabet for candlestick combinations: comb_A, comb_B, comb_C, comb_D, comb_E - respectively fig. №№ 1-5
Er, colleagues, create your own thread for candle combinations, who's stopping you? :-)
This is, like, a different thread...
I'd like to get involved myself... There is a ground for applying combinatorics there...
This is all understandable, and any "average programmer" can implement it, I ask the audience with a question how to code, well, let it be my question to develop the alphabet for candlestick combinations: comb_A, comb_B, comb_C, comb_D, comb_E - respectively Figures 1-5
Compare real numbers?????