11/1/2023 0 Comments Vwap indicator thinkorswimVolumeSum = CompoundValue(1, VolumeSum + volume, volume) PeriodIndx = RoundDown(yyyyMmDd / 100, 0) ĭef NewDay = CompoundValue(1, periodIndx != periodIndx, yes) PeriodIndx = Floor((DaysFromDate(First(yyyyMmDd)) + GetDayOfWeek(First(yyyyMmDd))) / 7) #if Equities_Futures and GetTime() = AggregationPeriod.WEEK or timeFrame = timeFrame.WEEK and cap >= AggregationPeriod.MONTH Input timeFrame = ĭef show_cloud = if background_color_signal = background_color_signal."Cloud" or background_color_signal = background_color_signal."Both" then 1 else 0 ĭef show_fast_lane = if background_color_signal = background_color_signal."Fast_Lane" or background_color_signal = background_color_signal."Both" then 1 else 0 ĭef ToleranceTrue = Tolerance_Band_Width > 0.0 ĭef HLBarLength = if High_or_Low_of_x_bars = 0 then Double.NaN else High_or_Low_of_x_bars ĭef Market_Open = RegularTradingStart(GetYYYYMMDD()) ĭef Equities_Futures = if ticksize() * tickvalue() = 0.0001 then 1 else 0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |