shd027 6 posts msg #117230 - Ignore shd027 modified |
12/5/2013 8:41:42 AM
Hello,
Is it possible to add a custom user variable to a watchlist and if so, how is it done?
I can't seem to get my variable to show up on a watchlist.
Thanks in advance.
Dean
|
Kevin_in_GA 4,599 posts msg #117235 - Ignore Kevin_in_GA modified |
12/5/2013 11:46:38 AM
Basically write the set{} commands in a single long line of code and then add "add column XX" at the end of the same line. All in one line versus using carriage returns and it works.
As an example, I use this on one watchlist:
set{trigger1, open *0.97} add column count(low below trigger1,1) {trigger}
which tells me if that stock has pulled back more than 3% from today's open. If so it puts a "1" in the column.
|
shd027 6 posts msg #117238 - Ignore shd027 |
12/5/2013 2:40:59 PM
Some of this coding is very interesting and I want to become more familiar with it.
Thanks for your help Kevin.
|
shd027 6 posts msg #117239 - Ignore shd027 |
12/5/2013 3:02:34 PM
Not sure this is going to work.
I want to bring in a variable set to a particular number from my filter and put it on the column in the watchlist. This will be used to identify which filter I ran when it shows up on my final report.
I want to use just one watchlist and identify the different filters by this variable, let's call it "FT". For instance, an FT of 1 would indicate one particular filter I ran, and an FT of 2 would indicate stocks which came from a completely different filter. This will allow me to segregate different runs on one report.
Dean
|
Kevin_in_GA 4,599 posts msg #117241 - Ignore Kevin_in_GA |
12/5/2013 3:11:17 PM
It can be done but it depends on the complexity of your filter.
|