Scalping Watch List Code Using POC_Help Needed

Shmo

New member
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.
 

halcyonguy

Well-known member
VIP
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.
you can't define muliple values of different times, in 1 formula.
define a variable for each part, then combine them in a new formula.

not sure what is going on here, but )( should have a comma or math symbol between them, and/or is missing close?
, opacity = 0)(period =


def z1 =Close(period = AggregationPeriod.Min);

def z2 = 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); ?

? add close
def z3 = close(period = AggregationPeriod.30_Min);

def z4 = Close(period = AggregationPeriod.Min);

def w = z1 - z2 ? (z3 / z4 ) * 100
 

Similar threads

Top