You don't tell anything about where you are applying the code.
So I can only guess the most obvious one...
You were applying it in analysis. Analysis interval setting is independently set from chart interval!
So just go to Analysis settings -> General <- tab and choose -> Periodicity <- there.
Change the path variable to
path = Name() + StrFormat( "%g.csv", Interval()/60 );
and see which number is part of the file name. If it is 1440 (minutes) then you have applied the code in Daily TF. So once again change interval to 15-minute then if that's the one you are looking for.
PS: Alternatively use this path variable
path = Name() + "_" + Interval(2) + ".csv;
As for your post in general
- You still don't know how to insert code properly.
- You have got 15 minutes time to correct a post after you have clicked reply button.
- You don't take enough the time to find out how to post code properly before clicking reply button.
- You even have a preview in forum editor.
Please re-read "How to use this site" thread!
Once again the easiest way to insert code is clicking </> button of the forum editor toolbar. Then a place holder text will show up where you place your code instead of it. Before posting check preview. How much easier could it be? I don't understand the "difficulty" about it.