Can anyone help me with something super simple? #Primary aggregation: 1 minute declare lower; plot PastDailyClose = close( period = "DAY" )[100]; On certain stocks (CALI) it does not start plotting until the 100th (1 minute) candle, on larger ones (SPY) it starts plotting on the first candle. In both cases it's showing as "The close 100 days ago" for the values that dby KevinR - Trading Discussion
How do I access the values created by EnableApproximation? For instance, I want to determine the slope (line - line[1]) but it still contains NaN... robert Wrote: ------------------------------------------------------- > You are going to need to use the > EnableApproximation() feature. > > Here's an example to get you started. > > > > > # ----- defineby KevinR - Trading Discussion
Is there anyway to do this for a non-horizontal line such as a moving average? QuoteSetPaintingStrategy(PaintingStrategy.HORIZONTAL); And any idea on this one? def ValleyLow = if Valley then LowOfValley else MostRecentCandleOnChart;by KevinR - Trading Discussion
Thanks Robert, but I'm actually looking to do something like this: def ValleyLow = if Valley then LowOfValley else MostRecentCandleOnChart; That way I can sort of "preview" the next connecting line before a valley is formed and it finalizes. Also, I made a set of "gapless" indicators, but is there a display it as a line from open-close, then a new line from the nexby KevinR - Trading Discussion
Robert, How would I reference only the most recent datapoint? I tried doing this, but it didn't work. if isNaN(close[-1]) then close else Double.NaNby KevinR - Trading Discussion
You're the man! That's way simpler than the convoluted things I was trying to do!by KevinR - Trading Discussion
Robert, First, I would like to thank you for this thread. I have learned a lot on thinkscripting from it. I have a request which I have had trouble with: For any given indicator that features a discontinuous plot of up/down arrows, how would you make an additional plot that "connects the dots" (arrows) with straight line segments? If you connected all of the pink arrows,by KevinR - Trading Discussion