Forum

Array to file

I have an array (example[]), that i want to print to file. What i am doing wrong? The data.csv file appears in folder, but it's empty. ‌‌This is the code: ‌In main section: input string InpFileName= "data.csv" ; input string InpDirectoryName= "SomeFolder" ; string path=InpDirectoryName+ "//"

non zero values in array

So i have an array, with values equal 0 or equal closing price. I need to get all values with their indexes from this array, that are not equal to zero and do math equations with them. For eaxample: I have Buffer named Array[], and I need to sum every array member, that is not equal to zero with

Harmonic patterns based on ZigZag indicator

Hello, I'm thinking to create Harmonic pattern (Gartley, Bat, Butterfly) indicator, which would be based on ZigZag indicator . Indicator would search Fibonacci levels between ZigZag minimums and maximums. I searched in the internet and didn't find such indicator, so i am trying to create my own