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

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
476 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top