# GAB BUY TRIGGER - PRICE ACTION CROSSES ABOVE (YESTERDAYS CLOSE + PENETRATION_AMOUNT)ĭef buytrigger = close(period = AggregationPeriod.DAY) crosses above low(period = AggregationPeriod.DAY) + pa and buysetup ĭef bpa = Round(low(period = AggregationPeriod.DAY) + pa, 2) # GAP BUY SETUP - TODAYS OPEN IS LESS THAN YESTERDAY'S LOWĭef buysetup = open(period = AggregationPeriod.DAY) is less than low(period = AggregationPeriod.DAY) ĪddLabel(if buysetup then yes else no, "GTB SETUP", Color.GREEN) #AddChartBubble(GTS, open + 1, "GTS", Color.DARK_RED, yes) #helps backtest but I warned you GTS.SetHiding(GetAggregationPeriod() != AggregationPeriod.DAY) GTS.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN) Plot GTS = open(period = AggregationPeriod.DAY) is greater than high(period = AggregationPeriod.DAY) and close(period = AggregationPeriod.DAY) < high(period = AggregationPeriod.DAY) - pa #AddChartBubble(GTB, open - 1, "GTB", Color.DARK_GREEN, no) #helps backtest but be careful GTB.SetHiding(GetAggregationPeriod() != AggregationPeriod.DAY) GTB.SetDefaultColor(color = Color.LIGHT_GREEN) GTB.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP) Plot GTB = open(period = AggregationPeriod.DAY) is less than low(period = AggregationPeriod.DAY) and close(period = AggregationPeriod.DAY) > low(period = AggregationPeriod.DAY) + pa Def range = Round((high(period = AggregationPeriod.DAY) - low(period = AggregationPeriod.DAY)), 2)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |