You have to decide on the criteria to identify the 3 bars
Then find the time of the 2nd and 3rd bars
Use the price of the high and time of these 2 bars to draw a trend-line
You have to decide on the criteria to identify the 3 bars
Then find the time of the 2nd and 3rd bars
Use the price of the high and time of these 2 bars to draw a trend-line
Hello. what u are saying is exactly true. I just want a code how u decide the 3 bars. Then as u said connect highs of bars for last two bars. My problem is how can i define those three bars. so that it can i connet las two bars. Please help me.
That is your problem. There are no mind readers here. Unless you can come up with your definition, no one here can help you.
- Possibly use something like.
#define LOOKBACK 10 int iCurHi = iHighest(NULL,0,MODE_HIGH,LOOKBACK,0); if(iCurHi == 0){ int iPrevHi = iHighest(NULL,0,MODE_HIGH,LOOKBACK,1); TLine("H2H"+Time[0], Time[iPrevHi], High[iPrevHi], Time[0], High[0], Green); }
- Another would be to use every other zigzag point
Hello. what u are saying is exactly true. I just want a code how u decide the 3 bars. Then as u said connect highs of bars for last two bars. My problem is how can i define those three bars. so that it can i connet las two bars. Please help me.
It is up to you to define the criteria. Look at the image. All 3 examples meet your criteria as you have stated so far, and that is just from 8 bars
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
HI TO ALL!
GOOD MORNING.
Though i am new, i am learning myself to write a important code. i struct here unable to get the idea.
Any one suggestion or help please.
highly appreciated.