Re: Fun with ThinkScript March 29, 2015 08:33AM |
Registered: 10 years ago Posts: 615 |
Quote
mdtmn8888
Hello Robert and All ,
I would like to scan the NASDAQ and NYSE to end up with a list of stocks that I can see the 15min 30 min one hour daily and weekly time frames for a squeeze as per the attached
Custom Expression Subscription Limit Exceeded
Has anyone ever seen this before?
Would anyone have any thoughts, comments , feedback , ideas , etc etc about how this can be worked around ?
Re: Fun with ThinkScript March 29, 2015 09:18AM |
Registered: 10 years ago Posts: 615 |
Quote
GaryF
Thanks for the speedy reply. I guess I should have explained better that I want to paint a vertical line ( highlight zone) where the crossover takes place. and only at this point.
plot SMA10 = Average(close, 10); plot SMA50 = Average(close, 50); def SignalUP = SMA10 crosses above SMA50; AddVerticalLine(SignalUP, "Crossing Up", Color.LIME);
Re: Fun with ThinkScript March 30, 2015 05:50AM |
Registered: 9 years ago Posts: 8 |
Re: Fun with ThinkScript March 30, 2015 06:10AM |
Registered: 9 years ago Posts: 11 |
Re: A TOS Squeeze WatchList March 30, 2015 10:40AM |
Registered: 9 years ago Posts: 31 |
Need help with this script April 01, 2015 08:41PM |
Registered: 9 years ago Posts: 1 |
Re: Need help with this script April 02, 2015 10:36AM |
Registered: 10 years ago Posts: 615 |
Quote
proshares
I'am using a two moving avg crossover an EMA 27,displace,0 and an EMA 27,displace,3 .The problem is when the signal is given it shows the buy or sell 3 bars past .I know it is because displace 3 but to give me a true back test I need the buy or sell to be on the bar that it signals on and not 3 bars in the past.I'am working with this using XIV on a 333 tick chart the back-tests are out of this world but unfortunately they are not accurate as it is written.Please Help and thank you in advance.
Re: Need help with this script April 02, 2015 12:51PM |
Registered: 9 years ago Posts: 31 |
Re: Need help with this script April 02, 2015 02:07PM |
Registered: 10 years ago Posts: 615 |
Quote
anky7544
Robert,
If you change displace to 1 instead of 3, will it show signal little earlier?
Re: Need help with this script April 02, 2015 03:59PM |
Registered: 9 years ago Posts: 31 |
Re: Fun with ThinkScript April 04, 2015 09:19AM |
Registered: 9 years ago Posts: 75 |
Re: Fun with ThinkScript April 04, 2015 12:08PM |
Registered: 12 years ago Posts: 321 |
Re: Fun with ThinkScript April 04, 2015 01:10PM |
Registered: 9 years ago Posts: 75 |
Re: Fun with ThinkScript April 04, 2015 03:42PM |
Registered: 12 years ago Posts: 321 |
Re: Fun with ThinkScript April 04, 2015 08:17PM |
Registered: 9 years ago Posts: 7 |
Re: Fun with ThinkScript April 05, 2015 11:42AM |
Registered: 9 years ago Posts: 75 |
Scanning for cycles April 05, 2015 03:08PM |
Registered: 9 years ago Posts: 3 |
Re: Scanning for cycles April 05, 2015 04:10PM |
Registered: 10 years ago Posts: 615 |
Quote
Tnirb
Is it possible with the TOS platform to scan for stocks that meets the following cycling requirements?
1. Within a 6 months period stocks having a minimum of 6 positive 20 % price moves.
2. Each of the 20% must occur in a 10 day period.
The trend of the stock is not important. The chart can look like a sine wave.
I am a programmer and spent the last day researching this without having much success.
Any help would be appreciated.
def Gain20 = highest(high, 10) >= (1.2 * close[11]); def data = gain20 and !gain20[1]; plot count = sum(data, 128) >= 6;
Re: Scanning for cycles April 06, 2015 01:29AM |
Registered: 9 years ago Posts: 3 |
Re: Scanning for cycles April 06, 2015 08:38AM |
Registered: 10 years ago Posts: 615 |
Quote
Tnirb
When I add this study to my chart the count plot is always equal to one even when I change the percentChg to 1.00.
When the percentChg value is set to one the highest high will always be greater than the lowest low and the count plot
should always be greater than 1.
Quote
Tnirb
The only part of the code I don't understand I highlighted,
Can you explain what the highlighted code does?
def Gain20 = highest(high, 10) >= (1.2 * close[11]);
def count = sum(Gain20, 128);
def Gain20 = highest(high, 10) >= (1.2 * close[11]); def count = sum(Gain20, 128);then the count would be off due to the way the Gain20 code works. It's easier to see what's going on if I set the code to plot an arrow every time the Gain20 line is true.
def Gain20 = Highest(high, 10) >= (1.2 * close[11]); def count = Sum(Gain20, 128); plot test = Gain20; test.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
plot data = Gain20 and !Gain20[1];
def count = sum(data, 128);
def Gain20 = Highest(high, 10) >= (1.2 * close[11]); def data = Gain20 and !Gain20[1]; plot test = data; test.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); def count = Sum(data, 128); AddLabel(yes, "data count: " + count, color.yellow);
def Gain20 = highest(high, 10) >= (1.2 * close[11]); def data = gain20 and !gain20[1]; plot count = sum(data, 128) >= 6;
Re: Scanning for cycles April 06, 2015 12:08PM |
Registered: 9 years ago Posts: 3 |
Re: Fun with ThinkScript April 08, 2015 03:31PM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript April 08, 2015 05:35PM |
Registered: 12 years ago Posts: 321 |
Re: Fun with ThinkScript April 08, 2015 06:06PM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript April 09, 2015 08:08PM |
Registered: 10 years ago Posts: 615 |
Quote
scalper
I do not want the cyan or some may call it blue on the histogram just only the green or red when triggered so the histogram will only show when the green or red are triggered than go blank until then .
plot VolumeRatio = UPDVR;
plot VolumeRatio = if UPDVR crosses above maxLine then maxLine + 1 else if UPDVR crosses below minLine then minLine - 1 else Double.NaN;
Re: Fun with ThinkScript April 09, 2015 08:24PM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript April 09, 2015 08:32PM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript April 09, 2015 10:28PM |
Registered: 10 years ago Posts: 615 |
Quote
scalper
how can I get the rest of the green or red histogram bars to paint also not just the first one like in your picture ?
plot VolumeRatio = if UPDVR >= minLine and UPDVR < maxLine then Double.NaN else UPDVR;
Re: Fun with ThinkScript April 10, 2015 07:22AM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript April 10, 2015 09:32AM |
Registered: 9 years ago Posts: 11 |