Re: Buy and Sell lines on chart of zigzag May 07, 2018 06:55PM |
Registered: 10 years ago Posts: 464 |
Re: Buy and Sell lines on chart of zigzag May 07, 2018 08:21PM |
Registered: 5 years ago Posts: 23 |
Re: Fun with ThinkScript May 07, 2018 09:05PM |
Registered: 5 years ago Posts: 1 |
Re: Buy and Sell lines on chart of zigzag May 08, 2018 07:14AM |
Registered: 5 years ago Posts: 23 |
Re: Buy and Sell lines on chart of zigzag May 08, 2018 04:07PM |
Registered: 7 years ago Posts: 126 |
Quote
optionmaster
ok is there a way to change the lines to bubbles that say buy, instead of the lines
AddChartBubble(showBubbleschange and !IsNaN("ZZ$" ) and barNumber != 1, if isUp then high else low , "buy" , if barCount == barNumber or !isConf then GlobalColor("Unconfirmed" ) else if isUp then GlobalColor("Down" ) else GlobalColor("Up" ), isUp);
Re: Fun with ThinkScript May 09, 2018 12:20PM |
Registered: 5 years ago Posts: 23 |
3 Time frame chart with daily pivot points TOS May 10, 2018 01:31PM |
Registered: 5 years ago Posts: 23 |
Re: Fun with ThinkScript May 12, 2018 04:32AM |
Registered: 7 years ago Posts: 126 |
Need Scripting Help May 11, 2018 08:36PM |
Registered: 6 years ago Posts: 13 |
Re: Need Scripting Help May 14, 2018 04:06AM |
Registered: 7 years ago Posts: 126 |
Re: Need Scripting Help May 14, 2018 12:13PM |
Registered: 6 years ago Posts: 33 |
AddCloud on Tick Chart. multiple time frame analysis on tick chart May 14, 2018 09:49AM |
Registered: 5 years ago Posts: 7 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 14, 2018 10:51AM |
Registered: 5 years ago Posts: 7 |
Re: Need Scripting Help May 15, 2018 04:43AM |
Registered: 7 years ago Posts: 126 |
#MTF_ADX_METER #created by m0biledev@yahoo.com #DECLARE LOWER; ############################# input length = 9; #14 input ADX_length = 14; input ShowADXValue = {DoNotShow, OnLeft, default OnRight}; input DisplayStrengthMeter = {"No", default "Yes"}; #input FixedValueBkgndColor = {default "No", "Yes"}; #Not used in your code # for ADX input LookBack6 = 6;#6 input LookBack5 = 2;#5 input LookBack3 = 3;#3 # aggregation periods used def agg_5 = AggregationPeriod.FIVE_MIN; def agg_10 = AggregationPeriod.TEN_MIN; def hiDiff_5 = high(period = agg_5) - high(period = agg_5)[1]; def loDiff_5 = low(period = agg_5)[1] - low(period = agg_5); def plusDM_5 = if hiDiff_5 > loDiff_5 and hiDiff_5 > 0 then hiDiff_5 else 0; def minusDM_5 = if loDiff_5 > hiDiff_5 and loDiff_5 > 0 then loDiff_5 else 0; def ATR_5 = WildersAverage(TrueRange(high(period = agg_5), close(period = agg_5), low(period = agg_5)), ADX_length); def "DI+5" = 100 * WildersAverage(plusDM_5, ADX_length) / ATR_5; def "DI-5" = 100 * WildersAverage(minusDM_5, ADX_length) / ATR_5; def DX_5 = if ("DI+5" + "DI-5" > 0) then 100 * AbsValue("DI+5" - "DI-5" ) / ("DI+5" + "DI-5" ) else 0; ##@@@@@@@@@@@@@@@@@@@@ def hiDiff_10 = high(period = agg_10) - high(period = agg_10)[1]; def loDiff_10 = low(period = agg_10)[1] - low(period = agg_10); def plusDM_10 = if hiDiff_10 > loDiff_10 and hiDiff_10 > 0 then hiDiff_10 else 0; def minusDM_10 = if loDiff_10 > hiDiff_10 and loDiff_10 > 0 then loDiff_10 else 0; def ATR_10 = WildersAverage(TrueRange(high(period = agg_10), close(period = agg_10), low(period = agg_10)), ADX_length); def "DI+10" = 100 * WildersAverage(plusDM_10, ADX_length) / ATR_10; def "DI-10" = 100 * WildersAverage(minusDM_10, ADX_length) / ATR_10; def DX_10 = if ("DI+10" + "DI-10" > 0) then 100 * AbsValue("DI+10" - "DI-10" ) / ("DI+10" + "DI-10" ) else 0; #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #######def ADX = DMI(length).ADX; def DIBull = DIPlus(ADX_length); def DIBear = DIMinus(ADX_length); DEF BullishTrend = DIBull >= DIBear ; #METER###################################### def ADX6 = DMI(LookBack6);#.ADX def ADX3 = DMI(LookBack3);#.ADX def ADX1 = DMI(LookBack5);#.ADX def ADX6_5 = WildersAverage(DX_5, LookBack6); def ADX3_5 = WildersAverage(DX_5, LookBack5); def ADX1_5 = WildersAverage(DX_5, LookBack5); def ADX6_10 = WildersAverage(DX_10, LookBack6); def ADX3_10 = WildersAverage(DX_10, LookBack5); def ADX1_10 = WildersAverage(DX_10, LookBack5); ############################ This section can be replaced/improved def ShowDigits; switch (ShowADXValue) { case DoNotShow: ShowDigits = 0; case OnLeft: ShowDigits = 1; case OnRight: ShowDigits = 2; } ######################################################################## def HighlightColor = if (ADX1 >= 50) then 51 else if (ADX1 >= 40 and ADX1 < 50) then 51 else if (ADX1 >= 30 and ADX1 < 40) then 102 else if (ADX1 >= 20 and ADX1 < 30) then 153 else if (ADX1 >= 10 and ADX1 < 20) then 204 else 255; def HighlightColor_5 = if (ADX1_5 >= 50) then 51 else if (ADX1_5 >= 40 and ADX1_5 < 50) then 51 else if (ADX1_5 >= 30 and ADX1_5 < 40) then 102 else if (ADX1_5 >= 20 and ADX1_5 < 30) then 153 else if (ADX1_5 >= 10 and ADX1_5 < 20) then 204 else 255; def HighlightColor_10 = if (ADX1_10 >= 50) then 51 else if (ADX1_10 >= 40 and ADX1_10 < 50) then 51 else if (ADX1_10 >= 30 and ADX1_10 < 40) then 102 else if (ADX1_10 >= 20 and ADX1_10 < 30) then 153 else if (ADX1_10 >= 10 and ADX1_10 < 20) then 204 else 255; #------------------------------------------------- Results --------------------------------------------------------------------- #@@ AddLabel (yes, "MTF_METER", Color.WHITE); #AddLabel (yes, "/", Color.WHITE); #AddLabel( ShowDigits == 2, Floor(ADX_6) - FLOOR(ADX_1) - Floor(ADX_3), CreateColor(if !BullishTrend then 255 else HighlightColor, if !BullishTrend then HighlightColor else 255 , 51)); #@@ #AddLabel (yes, "MTF_METER", Color.WHITE); #AddLabel (yes, "/", Color.WHITE); AddLabel( ShowDigits == 2, Floor(ADX6) - FLOOR(ADX1) - Floor(ADX3), CreateColor(if !BullishTrend then 255 else HighlightColor, if !BullishTrend then HighlightColor else 255 , 51)); AddLabel (yes, "/", Color.WHITE); AddLabel( ShowDigits == 2, Floor(ADX6_5) - FLOOR(ADX1_5) - Floor(ADX3_5), CreateColor(if !BullishTrend then 255 else HighlightColor_5, if !BullishTrend then HighlightColor_5 else 255 , 51)); #AddLabel (yes, "/", Color.WHITE); #AddLabel( ShowDigits == 2, Floor(ADX6_10) - FLOOR(ADX1_10) - Floor(ADX3_10), CreateColor(if !BullishTrend then 255 else HighlightColor_10, if !BullishTrend then HighlightColor_10 else 255 , 51)); ##AddLabel (yes, "/", Color.WHITE); AddLabel( ShowDigits == 2, Floor(ADX6) - FLOOR(ADX1) - Floor(ADX3) - Floor(ADX6_5) - FLOOR(ADX1_5) - Floor(ADX3_5) - Floor(ADX6_10) - FLOOR(ADX1_10) - Floor(ADX3_10), CreateColor(if !BullishTrend then 255 else HighlightColor_10, if !BullishTrend then HighlightColor_10 else 255 , 51)); #end code
Re: Need Scripting Help May 15, 2018 09:12AM |
Registered: 6 years ago Posts: 33 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 16, 2018 10:02AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript May 16, 2018 04:59PM |
Registered: 6 years ago Posts: 33 |
Help with coding? May 16, 2018 06:22PM |
Registered: 5 years ago Posts: 1 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 17, 2018 10:48AM |
Registered: 5 years ago Posts: 7 |
Re: Fun with ThinkScript May 18, 2018 06:25AM |
Registered: 7 years ago Posts: 126 |
PLOT FI = ExpAverage((close - close[1]) *volume, lengthFORCE);and then, you are asking to plot negative values (-25) but only when FI is positive.... Do you notice that any color statement for FI negative values will never be executed?
plot F_I = if FI >= 0 then -25 else Double.NaN;
Re: Help with coding? May 18, 2018 06:52AM |
Registered: 7 years ago Posts: 126 |
Quote
GoldenPineapple
Would be cool to be able to have it start at market open and end at market close, save then reset every market day. Repeat.
Level.AssignValueColor(if close>=Level then Color.Pink else Color. Yellow); Level.AssignValueColor(if close<=Level then Color.Yellow else Color.Pink);In the first you are saying: color pink when the close is above or equal to Level any other case should be color yellow.
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 18, 2018 03:47PM |
Registered: 7 years ago Posts: 126 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 18, 2018 09:28PM |
Registered: 6 years ago Posts: 6 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 19, 2018 04:13PM |
Registered: 5 years ago Posts: 7 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 21, 2018 08:17PM |
Registered: 5 years ago Posts: 7 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 22, 2018 08:10AM |
Registered: 7 years ago Posts: 126 |
Quote
Paras
Is that possible combine 3 tick based bars and make 1 bar Tick based bar. (Like three 5 minutes candle chart = one 15 minutes candle Chart)
Re: Fun with ThinkScript May 22, 2018 12:28PM |
Registered: 8 years ago Posts: 15 |
Reference code? May 22, 2018 12:26PM |
Registered: 8 years ago Posts: 15 |
Re: Reference code? May 23, 2018 04:44AM |
Registered: 7 years ago Posts: 126 |
# Rigel, May 2018 # declare lower; input Sym2 = "SPY"; def c2 = close(symbol = Sym2); def ma3=average(c2,3); def ma35=average(c2,35); plot Dots = (HighestAll(high) + LowestAll(low)) / 2; Dots.SetStyle(Curve.POINTS); Dots.SetLineWeight(5); Dots.AssignValueColor(if ma3 > ma35 then Color.GREEN else Color.RED);
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 23, 2018 07:14AM |
Registered: 5 years ago Posts: 7 |