I'm currently modifying the lines labels script. I am just adding a massive amount of S&R lines. Very simple see below. Now I'd have to make a separate script for each individual stock which I don't want to do (i.e lines&labels APPL.efs; lines&lablesSPY.efs; etc...) BUTTT Is there a way to add into the script to recognize what ticker symbol is loaded and then have it only read from that ticker symbols list of S&R lines in the script itself. Script recognizes stock & only reads from a select part of the script which has the list of S&R lines specific to that ticker.
Example of what I am looking for: This would all be in one script. If i change from SPY to AAPL chart, Script will only loads the AAPL lines. If someone could point me in the right direction that be awesome.
SPY
// ADD BANDS
addBand( 43, PS_SOLID, 1, Color.RGB(255,59,56), 90002 );
addBand( 42.9, PS_SOLID, 1, Color.RGB(255,59,56), 90003 );
addBand( 43.93, PS_SOLID, 1, Color.RGB(255,59,56), 90005 );
addBand( 42.5, PS_SOLID, 1, Color.RGB(255,59,56), 90007 );
addBand( 44.55, PS_SOLID, 1, Color.RGB(255,59,56), 90009 );
AAPL
//ADD BANDS
addBand( 39.5, PS_SOLID, 1, Color.RGB(0,255,0), 80004 );
addBand( 38.61, PS_SOLID, 1, Color.RGB(0,255,0), 80006 );
addBand( 39.21, PS_SOLID, 1, Color.RGB(0,255,0), 80008 );
addBand( 38.4, PS_SOLID, 1, Color.RGB(0,255,0), 80010 );
Example of what I am looking for: This would all be in one script. If i change from SPY to AAPL chart, Script will only loads the AAPL lines. If someone could point me in the right direction that be awesome.
SPY
// ADD BANDS
addBand( 43, PS_SOLID, 1, Color.RGB(255,59,56), 90002 );
addBand( 42.9, PS_SOLID, 1, Color.RGB(255,59,56), 90003 );
addBand( 43.93, PS_SOLID, 1, Color.RGB(255,59,56), 90005 );
addBand( 42.5, PS_SOLID, 1, Color.RGB(255,59,56), 90007 );
addBand( 44.55, PS_SOLID, 1, Color.RGB(255,59,56), 90009 );
AAPL
//ADD BANDS
addBand( 39.5, PS_SOLID, 1, Color.RGB(0,255,0), 80004 );
addBand( 38.61, PS_SOLID, 1, Color.RGB(0,255,0), 80006 );
addBand( 39.21, PS_SOLID, 1, Color.RGB(0,255,0), 80008 );
addBand( 38.4, PS_SOLID, 1, Color.RGB(0,255,0), 80010 );
Comment