Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Please, can anyone help with this (ThinkOrSwim)? I am trying to display "BULLISH DAY" or "BEARISH DAY" based on whether the main PIVOT LINE is below or above the Previous Day Close.
That is if Main Pivot Line is above Previous Day Close, Display BEARISH and if Main Pivot Line is below Previous Day Close, Display BULLISH.
I have the below code but I am NOT skilled enough to make do the above. The attachment shows what the below code is showing, which is not what I want.
Well, there's a lot going on in your code that doesn't make a ton of sense to me, and there's no attachment so I can't see what you're seeing on your charts.
First, are you wanting to calculate the pivot based on the previous day's price action, or the current day's action? If it's the current day's price pivot, get rid of all the [1] subscripts when calculating the Pivot
Secondly, you're always going to show both the BULLISH & BEARISH labels, why not just show the label that matches the condition you care about?
Thirdly, it's not clear what timeframe charts you will typically use this -- I'm assuming an Intraday rather than Daily/Weekly.
I've changed a few things and added some additional AddLabels to help with diagnosing the code (comment or delete the extra AddLabel statements when you get what you want.