Re: Fun with ThinkScript October 14, 2016 12:55AM |
Registered: 10 years ago Posts: 615 |
Quote
elovemer
however the dojis still do not show up on ES ... but they show up for spx
Re: Fun with ThinkScript October 14, 2016 04:36AM |
Registered: 8 years ago Posts: 34 |
Robert: questions of Divergences and Elder's books October 14, 2016 11:24AM |
Registered: 8 years ago Posts: 7 |
Re: Fun with ThinkScript October 14, 2016 09:01PM |
Registered: 8 years ago Posts: 59 |
Re: Fun with ThinkScript October 16, 2016 09:38AM |
Registered: 8 years ago Posts: 63 |
Re: Fun with ThinkScript October 16, 2016 10:18AM |
Registered: 8 years ago Posts: 63 |
Re: Fun with ThinkScript October 16, 2016 10:42AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 16, 2016 10:43AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 16, 2016 10:41PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 16, 2016 11:02PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 16, 2016 11:30PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 17, 2016 12:22AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 18, 2016 08:46AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 18, 2016 05:25PM |
Registered: 10 years ago Posts: 465 |
Re: Fun with ThinkScript October 19, 2016 12:33AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 19, 2016 09:55PM |
Registered: 10 years ago Posts: 465 |
Re: Fun with ThinkScript October 20, 2016 09:44PM |
Registered: 7 years ago Posts: 8 |
Re: Fun with ThinkScript October 21, 2016 01:52AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 21, 2016 01:57AM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 22, 2016 07:50AM |
Registered: 8 years ago Posts: 22 |
Re: Fun with ThinkScript October 22, 2016 08:39AM |
Registered: 8 years ago Posts: 63 |
Quote
ACWE
Can someone help me create this colored zone except with moving averages? I tried myself, but then made the realization that I do not know what I am doing. Thanks
input movAvg1_Length = 10; input movAvg2_Length = 20; input average_type = {default "SMA", "EMA"}; input showMovAvgLines = {default "yes", "no"}; def MA1; def MA2; switch (average_type) { case "SMA": MA1 = Average(close, movAvg1_Length); MA2 = Average(close, movAvg2_Length); case "EMA": MA1 = ExpAverage(close, movAvg1_Length); MA2 = ExpAverage(close, movAvg2_Length); } # Plot the moving average lines plot ln1 = if !showMovAvgLines then MA1 else double.nan; ln1.SetDefaultColor(CreateColor(111,183,214)); #blue ln1.SetLineWeight(1); ln1.HideBubble(); plot ln2 = if !showMovAvgLines then MA2 else double.nan; ln2.SetDefaultColor(CreateColor(249,140,182)); #pink ln2.SetLineWeight(1); ln2.HideBubble(); # Plot the clouds def value1 = highestall(high); def value2 = lowestall(low); def crossDn = if MA1 < MA2 then lowestall(low) else double.nan; addcloud(value1,value2,color.light_green); addcloud(value1,crossDn,color.pink);
Re: Fun with ThinkScript October 22, 2016 02:00PM |
Registered: 7 years ago Posts: 10 |
Re: Fun with ThinkScript October 22, 2016 08:26PM |
Registered: 7 years ago Posts: 8 |
Re: Fun with ThinkScript October 22, 2016 08:54PM |
Registered: 8 years ago Posts: 34 |
Re: Fun with ThinkScript October 23, 2016 12:19PM |
Registered: 8 years ago Posts: 63 |
Quote
rcmcfe
can it be altered to display Stochastics, instead of MA crossovers?
declare lower;
# --- TD Ameritrade IP Company, Inc. (c) 2008-2016
# --- StochasticFull standard script
input over_bought = 80;
input over_sold = 20;
input KPeriod = 10;
input DPeriod = 10;
input priceH = high;
input priceL = low;
input priceC = close;
input slowing_period = 3;
input averageType = AverageType.SIMPLE;
def lowest_k = Lowest(priceL, KPeriod);
def c1 = priceC - lowest_k;
def c2 = Highest(priceH, KPeriod) - lowest_k;
def FastK = if c2 != 0 then c1 / c2 * 100 else 0;
plot FullK = MovingAverage(averageType, FastK, slowing_period);
plot FullD = MovingAverage(averageType, FullK, DPeriod);
plot OverBought = over_bought;
plot OverSold = over_sold;
FullK.SetDefaultColor(GetColor(5));
FullD.SetDefaultColor(GetColor(0));
OverBought.SetDefaultColor(GetColor(1));
OverSold.SetDefaultColor(GetColor(1));
# --- add roberts clouds
def value1 = 100;
def value2 = 0;
def neg = if FullK < FullD then 0 else Double.NaN;
AddCloud(value1, value2, Color.LIGHT_GREEN);
AddCloud(value1, neg, Color.PINK);
Re: Fun with ThinkScript October 23, 2016 01:00PM |
Registered: 8 years ago Posts: 63 |
Quote
ACWE
On a 5 minute chart, as I scroll to the right, the price axis does not change. It's like the chart fits a High/Low scale.
Quote
ACWE
I also like to use HULL as a moving average on a subchart. Can you add that in as a third option to go along with SMA and EMA?
declare upper; input movAvg1_Price = close; input movAvg2_Price = close; input movAvg1_Length = 10; input movAvg2_Length = 20; input movAvg1_Displace = 0; input movAvg2_Displace = 0; input showMovAvgLines = { default "yes","no"}; def HMA1 = MovingAverage(AverageType.HULL, movAvg1_Price, movAvg1_Length)[-movAvg1_Displace]; def HMA2 = MovingAverage(AverageType.HULL, movAvg2_Price, movAvg2_Length)[-movAvg2_Displace]; plot line1 = if !showMovAvgLines then HMA1 else double.nan; line1.DefineColor("Up", GetColor(1)); line1.DefineColor("Down", GetColor(0)); line1.AssignValueColor(if HMA1 > HMA1[1] then line1.color("Up" ) else line1.color("Down" )); plot line2 = if !showMovAvgLines then HMA2 else double.nan; line2.DefineColor("Up", GetColor(1)); line2.DefineColor("Down", GetColor(0)); line2.AssignValueColor(if HMA2 > HMA2[1] then line2.color("Up" ) else line2.color("Down" )); # Plot the clouds def value1 = highestall(high); def value2 = lowestall(low); def crossDn = if HMA1 < HMA2 then lowestall(low) else double.nan; addcloud(value1,value2,color.light_green); addcloud(value1,crossDn,color.pink);
Re: Fun with ThinkScript October 23, 2016 01:18PM |
Registered: 8 years ago Posts: 63 |
Quote
Kamadi
I have a question. What would be the best ATR setting for day trading stocks. Some say use the 14 settings. But I've seen ppl use 7. What setting is best for day trading
Re: Fun with ThinkScript October 23, 2016 07:10PM |
Registered: 7 years ago Posts: 8 |
Re: Fun with ThinkScript October 23, 2016 08:53PM |
Registered: 7 years ago Posts: 59 |
Re: Fun with ThinkScript October 24, 2016 10:31PM |
Registered: 8 years ago Posts: 54 |