TOS sent me this yesterday to add to the script; def label = if C4 then 4 else if C3 then 3 else if C2 then 2 else if C1 then 1 else double.nan; It only seems to work with numbers. Does anyone know how to add letters or words to the AddLabel?by Ralph53 - Trading Discussion
In this ‘AddLabel’ does anyone know how to script it so that what it says in the label area changes from C1 to C2 or C3 or C4) as the color changes (C1 to C2 to C3 or C4), . def C1 = Close < Open("period" = AggregationPeriod.DAY) -.25; def C2 = Close < Open("period" = AggregationPeriod.DAY) -.50; def C3 = Close < Open("period" = AggregationPerioby Ralph53 - Trading Discussion
TOS sent me this using ‘mostrecent’. I was wondering if anyone knows how to combine ‘assignPriceColor’ and ‘assignValueColor’ (for everything other than ‘mostrecent’) in the same script? def X = close > Open; def Y = close < Open; def Z = close == Open; def mostrecent = isnan(close[-1]) ; assignPriceColor(if mostrecent and X then color.Green else if mostby Ralph53 - Trading Discussion
Does anyone know if you can alter a script in this way? def V = Volume < Volume[1]; I need this script to work on all the candles except the first (or present moving candle). def V1 = Volume >= Volume[1] /4; I need these 2 scripts to work on just the first (moving) candle alone. def V2 = Volume >= Volume[1] /2; Thanks, JM.by Ralph53 - Trading Discussion
Here's another one from TOS. I want to assign my own colors and they sent me this scriptlet to do it with; X.SetDefaultColor(CreateColor(102, 142, 0)); I can't make it work right if I insert it into this script; X.assignValueColor(if Y then Color.Yellow else if Z then color.Green else Color.Red); Does anyone know how to replace 'assignValueColor...' with 'SetDefaultColor...'?by Ralph53 - Trading Discussion
Robert, TOS sent me this scriptlet and it works; AddLabel(visible = yes, text = GetSymbol()); As soon as I add colors, it doesn't. Def X = close >= Open; AddLabel(visible = yes, text = GetSymbol()), (if X then color.Yellow else color.Dark_Red)); Can you fix it? Thanks, JM.by Ralph53 - Trading Discussion
I've been working on something for years to help me find stocks that have a propensity (on an intraday scale) to move upward much more than others. This script has a slight alteration that allows me to see the actual values in the high and low bubbles. What I'd like to do is convert it to a watchlist script that will add up the difference between each low and high bubble and divide that value byby Ralph53 - Trading Discussion
Robert, that works great. 1) How can I make the Autowave line invisible in the previous script? And 2) How can I get the price value of X below to appear in the Bubble " " ? Thanks. def X = Highest(open, 12); def lastbar = HighestAll(if IsNaN(close) then 0 else BarNumber()); plot condition = if BarNumber() <= lastbar - 19 and BarNumber() >= lastbar - 20 thby Ralph53 - Trading Discussion
This is a great script from an earlier page. Does anyone know how to alter it so that the AddChartBubbles (just the red and green ones) will show the actual price value of the highs and lows instead of the rise or decline from the previous bubble (while leaving the white bubble alone)? ## START CODE ## ZigZagSign TOMO modification, v0.2 written by Linus @Thinkscripter Lounge adapted from Thby Ralph53 - Trading Discussion
I had 2 more questions, Robert. 1) Can you write a Watch List script that will give the exact price value of a stock when this occurs; StochasticFull().FullK crosses above StochasticFull().FullD[6] 2) I also need a way to compare it to the previous Stochastic crossover like either X = Stochastic crossover #2 -by Ralph53 - Trading Discussion
Thanks, I noticed the lag you're talking about 2 years ago and sent TOS a screen movie showing them how unusable their Watch List data was. They're continuously working on it because then it was much worse with a 2 to 7 minute lag. I just tested my Watch Lists and they seem to be updating continuously with a 15 second lag - each script is different though. My Watch Lists lag behind the Add Label'by Ralph53 - Trading Discussion
Robert, I'm having a problem with some scripts. If I put a script on a chart using Add Label and the chart is set to start at the open the script works correctly right from the open. When I use it in a Watch List it's a different story. If the range script below is used in a Watch List it takes a while for it to give the right value. I believe it's calculating using the previous day's values;by Ralph53 - Trading Discussion
Robert I have 3 more quick questions 1) How should this line appear if I don't want the Bubble hidden? condition.HideBubble(); 2) Is there a condition line for selecting 'Leftaxis' on a chart? 3) On this script you wrote for me; def X = (open("period" = AggregationPeriod.DAY) - .05); def lastbar = HighestAll(if IsNaN(close) then 0 else BarNumber()); plot conditionby Ralph53 - Trading Discussion
Robert, this script works great and I was wondering if there's a way to set an end point to the line (say 15 candles)? Thanks again. # 5 Cents Below Open # def OpenNeg5 = (open("period" = AggregationPeriod.DAY) - .05); def lastbar = HighestAll(if IsNaN(close) then 0 else BarNumber()); plot condition = if BarNumber() <= lastbar - 10 then GetValue(OpenNeg5, BarNumber() - lasby Ralph53 - Trading Discussion
Robert, I posted this last week and I don't know if you answered it yet? This line script you gave me starts 10 candles back and works great. How can I add this description of it ' - 5 ' somewhere on the line (preferably at its beginning - 10th bar back) so I know what it is? Thanks so much. # 5 Cents Below Open # def OpenNeg5 = (open("period" = AggregationPeriod.DAY) - .05); deby Ralph53 - Trading Discussion
Robert; is there any way to alter the line length of this script so it's 3 candles long? Thanks again. def Low10 = Low +.10; def lastbar = HighestAll(if IsNaN(close) then 5 else BarNumber()); plot condition = if BarNumber() < lastbar then GetValue(Low10, BarNumber() - lastbar) else Double.NaN; condition.SetLineWeight(1);by Ralph53 - Trading Discussion
Robert, this line script you gave me starts 10 candles back and works great. How can I add this description of it ' - 5 ' somewhere on the line (preferably at its beginning - 10th bar back) so I know what it is? Thanks so much. # 5 Cents Below Open # def OpenNeg5 = (open("period" = AggregationPeriod.DAY) - .05); def lastbar = HighestAll(if IsNaN(close) then 0 elseby Ralph53 - Trading Discussion
I don't know if it's because of my computer but the same script using 'AddLabel' responds 8 to 15 seconds faster than my TOS watch list and 'AddChartBubble' doesn't work well at all. Is anyone else noticing this?by Ralph53 - Trading Discussion
Thank you so much. I checked it out in real time this morning and the box at the top works better because it's in a fixed spot. The bubble changes immediately when I scroll through a watch list but it doesn't update as fast as the box at the top when the chart is in real time. I was wondering, how do I get the box at the top to appear in a fixed spot on the chart (the lower left (or right) hanby Ralph53 - Trading Discussion
Robert; I saw what I need on the AutoWave screenshot on page 1. How can I have the price bubble from the price area appear on a chart in a fixed spot? Say 8 candles to the left and dead center in height? I would need to know how to alter the coordinates if I need to move it. def X = HullMovingAvg() - HullMovingAvg()[1] Thanks.by Ralph53 - Trading Discussion
I reported it to them. I want to hide the value of X if HULL is negative. Is this what the script would look like if the SetHiding() function were working properly? def X = Close >= Close[1]; plot condition = X; condition.SetHiding() = (HUllMovingAvg() <= HUllMovingAvg()[10]); Thanks so much.by Ralph53 - Trading Discussion
I’m having a problem with a script. I’m trying to plot a moving line on a chart and I want it to give me the High[1] if HULL is negative and disappear when the HULL turns positive. I can only describe it in this way but it doesn't work; def X = input price = high; input offset = 1; input length = 10; def Y = (nothing showing); X.SetPaintingStrategy(PaintingStrategy.LINE);by Ralph53 - Trading Discussion
I didn't describe this right. I wanted to place the line on the left side of the chart. On a 15 candle chart it would start on the 10th candle from the right and work left from there. I find that to many horizontal lines on a chart become a distraction and it would view better if some were on the left. I don't know if this can be done as I've never seen a line drawn in this way. It might needby Ralph53 - Trading Discussion
I plot this script as a line on a chart; # 5 Cents Below Open # def OpenNeg5 = (open("period" = AggregationPeriod.DAY) -.05); plot condition = OpenNeg5; Does anyone know of a way to re-script it so the line starts 10 candles behind the current candle? Thanks.by Ralph53 - Trading Discussion