AFL Help me please (2 question)

#1
1. I want to plot a vertical line(or other shape) 20th bar in the past from today without a specific signal. How to do it.

2. I have a function exporting symbol (and data) in a watchlist to a CSV file and this work well.

But I have a problem I want the first line if this .CSV file with a name of wathlist. How I can resolve my problem?

I've tried this (below) but give me all WL name where the symbol is stored.
I want only name of WL scanned.

---------------------------
Title1 = "";
for( i = 0; CategoryGetName( categoryWatchlist, i )!= ""; i++ )
{
if( InWatchList( i ) )
Title1 = Title1 + CategoryGetName( categoryWatchlist, i );
}
----------------------------------

Thanks in advance for help. :sos:
 

manojborle

Well-Known Member
#2
1. I want to plot a vertical line(or other shape) 20th bar in the past from today without a specific signal. How to do it.

2. I have a function exporting symbol (and data) in a watchlist to a CSV file and this work well.

But I have a problem I want the first line if this .CSV file with a name of wathlist. How I can resolve my problem?

I've tried this (below) but give me all WL name where the symbol is stored.
I want only name of WL scanned.

---------------------------
Title1 = "";
for( i = 0; CategoryGetName( categoryWatchlist, i )!= ""; i++ )
{
if( InWatchList( i ) )
Title1 = Title1 + CategoryGetName( categoryWatchlist, i );
}
----------------------------------

Thanks in advance for help. :sos:
Put your query in Happy singh Thread, it will be resolved.