Swing Hi and Lo Scan December 10, 2014 10:12PM |
Registered: 9 years ago Posts: 11 |
Heiken Ashi Delta Script for ToS? December 13, 2014 02:59AM |
Registered: 9 years ago Posts: 1 |
Re: Fun with ThinkScript January 13, 2015 07:54PM |
Registered: 9 years ago Posts: 17 |
Re: Fun with ThinkScript January 13, 2015 09:42PM |
Registered: 10 years ago Posts: 615 |
Quote
Gaterz
Can't understand why I have an invalid statement in the last line (**). Help?
**Momentum.AssignValueColor(if Momentum > 0 then Momentum.color("Above"winking smiley else if Momentum < 0 then Momentum.color("Below"winking smiley);
Momentum.AssignValueColor(if Momentum > 0 then Momentum.color("Above" ) else if Momentum < 0 then Momentum.color("Below" ) else color.current);
Momentum.AssignValueColor(if Momentum > 0 then Momentum.color("Above" ) else Momentum.color("Below" ));
Re: Fun with ThinkScript January 13, 2015 11:11PM |
Registered: 9 years ago Posts: 17 |
Re: Fun with ThinkScript January 14, 2015 05:50PM |
Registered: 9 years ago Posts: 53 |
Re: Fun with ThinkScript January 15, 2015 08:57AM |
Registered: 10 years ago Posts: 615 |
Quote
Palmer
I have looked at the After Market Scan script shown here but not sure where it should be edited to compare the current price (the last close from the previous 1 minute bar) to the close from the previous day's close. Any thoughts?
def closing_price = close(period = "day" )[1];
plot scan = meet_scan_criteria;
Swing Hi / Lo signals on Daily Chart needed January 19, 2015 02:49PM |
Registered: 12 years ago Posts: 321 |
Re: Swing Hi / Lo signals on Daily Chart needed January 19, 2015 06:42PM |
Registered: 10 years ago Posts: 615 |
# define a peak as having a high greater than the two previous candles AND the two following candles def peak = high > highest(high[1], 2) and high > highest(high[-2], 2); # use a recursive variable to remember the peak value. # if peak conditions are met, then set the value to the current high # otherwise set the value to what it was before def PeakValue = if peak then high else PeakValue[1]; # plot the PeakValue line plot PeakLine = PeakValue; PeakLine.SetPaintingStrategy(PaintingStrategy.DASHES);
new member December 12, 2014 12:09AM |
Registered: 9 years ago Posts: 11 |
Re: Fun with ThinkScript January 20, 2015 12:56PM |
Registered: 12 years ago Posts: 321 |
Re: Fun with ThinkScript January 21, 2015 09:46AM |
Registered: 10 years ago Posts: 615 |
Quote
jakesdad
Hi everyone,
I just started day trading this past year and have been studying divergences in the RSI to stock price. I have looked at 100s of charts and see some amazing set ups using this divergence. I saw your members posted some great scripts in the forum for TOS. Is it possible to create an alert on TOS when these divergences occur (neg & pos) on a intraday period?
Love the scripts & appreciate the help
Dave
Re: Fun with ThinkScript - Auto Wave January 21, 2015 10:55PM |
Registered: 9 years ago Posts: 1 |
Re: Fun with ThinkScript January 22, 2015 10:22AM |
Registered: 9 years ago Posts: 17 |
Re: Fun with ThinkScript January 22, 2015 10:58AM |
Registered: 9 years ago Posts: 17 |
Re: Fun with ThinkScript January 22, 2015 12:01PM |
Registered: 10 years ago Posts: 615 |
Quote
Gaterz
ok, I can't get arrows to show on the chart. I've gone thru every write up in this thread trying different combinations. The arrows will show in the lower panel OR if I take out the "declare lower" everything is messed up on the chart. I've also tried crossType == crossType and that doesn't work
Arrows are supposed to show on the chart at the point that the Momentum line crosses the ZeroLine.
Help?
Re: Fun with ThinkScript January 22, 2015 04:23PM |
Registered: 9 years ago Posts: 17 |
Re: Fun with ThinkScript January 27, 2015 05:24PM |
Registered: 9 years ago Posts: 34 |
Re: Fun with ThinkScript January 28, 2015 07:47AM |
Registered: 9 years ago Posts: 53 |
Premarket scan January 28, 2015 09:22AM |
Registered: 9 years ago Posts: 2 |
Help with TOS Option Scan February 03, 2015 02:32AM |
Registered: 9 years ago Posts: 1 |
Re: Premarket scan February 04, 2015 08:02AM |
Registered: 11 years ago Posts: 3 |
Re: Premarket scan February 04, 2015 10:21AM |
Registered: 10 years ago Posts: 615 |
Quote
Kai
Hi there,
I am using the Option Hacker under the Scan tab but I cannot get the following scan to work. Could you help me and tell me what is wrong with the code pls? Hoping for your prompt reply. Thank you.
Purpose
To scan for options where the 1 min volume is more than 500 in the last 60 bars
Time Frame
1 min aggregation
Code
volume("period" = AggregationPeriod.MIN) is greater than 500 within 60 bars
Result
No matching symbols
Regards,
Kai
Re: Fun with ThinkScript February 05, 2015 01:13PM |
Registered: 9 years ago Posts: 31 |
Re: Fun with ThinkScript February 05, 2015 02:18PM |
Registered: 9 years ago Posts: 31 |
Re: Fun with ThinkScript February 06, 2015 10:41AM |
Registered: 10 years ago Posts: 615 |
Quote
Anky7544
Robert,
I think I figured it out already, please double check if it's correct. Thanks.
Re: Fun with ThinkScript February 06, 2015 10:55AM |
Registered: 10 years ago Posts: 615 |
Quote
StrategyNode
Hi I have an idea but have no clue how to even code it or if it is even possible in thinkscript
The premise of this idea is based on the fact the red and green daily candle. A candle turns red when the close is below open and green when close is above open (I am pretty sure everyone knows this). I want to create a arrow in the daily chart which is based on the count of green and red bars in a 5min (or other time frame in that candle).
For example - say today $Sample has a red bar in the daily chart but say I count the number of individual candles in a 5min time frame of the same stock and realize that there are more green than red then I would like to add a up arrow on the daily chart for that red candle.
Not sure how to code this, not sure if I explained my myself correctly please feel free to ask for clarification.
Thanks,
StrategyNode
TMV + OR breakout February 06, 2015 02:35PM |
Registered: 9 years ago Posts: 5 |
Re: Fun with ThinkScript February 06, 2015 04:40PM |
Registered: 9 years ago Posts: 31 |
Re: Fun with ThinkScript February 07, 2015 02:44PM |
Registered: 9 years ago Posts: 34 |