Another point is that the result is in spite of "NormalizeDouble" shown with f.g. 3.000000000
Hi,
I want to program an indicator thats writes the gap-high every day on the chart.
But it only works on D1 any there is the statement missing, that the result should only be shown on the first candle of the day.
Well there is quite a bit of work to do. The iTFl is getting a shift on the D1 chart. You are then using that in a Time[] array. You are using an index in the wrong array since the Time[] array could be based on say an M15 chart. You need to sit down and think it through to work out what you need to do.
If you are writing this for FOREX then there is unlikely to be a significant gap except on Monday morning.
- 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,
I want to program an indicator thats writes the gap-high every day on the chart.
But it only works on D1 any there is the statement missing, that the result should only be shown on the first candle of the day.
Another point is that the result is in spite of "NormalizeDouble" shown with f.g. 3.000000000
Here is my code: