I know just enough Thinkscript to get in trouble. I want to create a scalping watchlist column based on the tendency of price to act as a magnet drawn towards or a cannon blasting away from the thirty (30) minute Point of Control (POC) reflected on a one (1) minute chart. The watchlist column would reflect the resultant of the following equation:
LAST (AggregationPeriod. 1 min) minus POC (AggregationPeriod. 30 min) divided by LAST (AggregationPeriod. 1 min) multiply by 100 = Last/POC % [Last – POC / Last * 100 = LP%]
The percentages will be small to two (2) decimal places and have three user defined color and value thresholds that could be modified if the relevance proves fruitful.
The code I have thus far will not verify:
Close(period = AggregationPeriod.Min) - reference VolumeProfile (("price per row height mode" = "TICKSIZE", "time per profile" = "MONTH", "on expansion" = No, "show point of control" = No, "show value area" = No, opacity = 0)(period = AggregationPeriod.30_Min)) / Close(period = AggregationPeriod.Min)*100
TOS says that a double equals is expected in front of “TICKSIZE” ………When this is done it creates a huge error. I do not know how to code for the user defined three (3), percent thresholds and background colors. The POC code I am using is from the stock hacker to just reveal the POC only.
Any assistance would be greatly appreciated.
LAST (AggregationPeriod. 1 min) minus POC (AggregationPeriod. 30 min) divided by LAST (AggregationPeriod. 1 min) multiply by 100 = Last/POC % [Last – POC / Last * 100 = LP%]
The percentages will be small to two (2) decimal places and have three user defined color and value thresholds that could be modified if the relevance proves fruitful.
The code I have thus far will not verify:
Close(period = AggregationPeriod.Min) - reference VolumeProfile (("price per row height mode" = "TICKSIZE", "time per profile" = "MONTH", "on expansion" = No, "show point of control" = No, "show value area" = No, opacity = 0)(period = AggregationPeriod.30_Min)) / Close(period = AggregationPeriod.Min)*100
TOS says that a double equals is expected in front of “TICKSIZE” ………When this is done it creates a huge error. I do not know how to code for the user defined three (3), percent thresholds and background colors. The POC code I am using is from the stock hacker to just reveal the POC only.
Any assistance would be greatly appreciated.