- Joined
- 28 December 2013
- Posts
- 6,578
- Reactions
- 24,793
Now that I am a Proud holder of BHP
I have entered this week myself fwiw See BHP thread
Hi SkateEvaluation and analytics are a different matter for (AI)
To better understand the 'percentage up' buy timing filter, I ask (AI) to explain it to an interested person. For instance, what specific criteria does the 'percentage up' filter use to determine whether a stock is a buy, and how does it factor in market sentiment?
Initialization of (AI) response
The 'percentage up' code starts with the _SECTION_BEGIN("Percentage Mode Parameters") directive, which defines the beginning of a section for the filter. It also initializes variables such as wlnum, List, Up, Total, and NoM.
Loop for Percentage Calculation
The code checks if it is the first iteration of the loop using the Status("stocknum") == 0 condition. It then enters a loop to calculate the percentage change for each symbol in the watchlist.
Procedures
It retrieves the symbols in the watchlist using CategoryGetSymbols(categoryWatchlist, wlnum).
For each symbol, it sets the symbol as the foreign symbol using SetForeign(symbol, 0).
It calculates the number of bars where the close price is greater than the open price using Up += Nz(Close / Open > 1).
It counts the number of valid bars for the symbol using NoM += NOT IsNull(C).
It restores the price arrays for the symbol using RestorePriceArrays().
The loop saves the calculated values of Up and NoM in static variables using StaticVarSet() for future use.
Retrieving Stored Values
After the loop ends, the code retrieves the stored values of Up and NoM using StaticVarGet() and assigns them back to the respective variables.
Percentage Calculation
The code calculates the percentage of bullish stocks in the watchlist using the formula: PercentWatchlistUp = round(100 * (Up / NoM)).
Threshold Parameters
The code defines two threshold parameters using the Param() function:
Bullish Threshold
This represents the minimum percentage required for the market sentiment to be considered bullish. The default value is 56%, and it can be adjusted between 0 and 100%.
Bearish Threshold
This represents the maximum percentage allowed for the market sentiment to be considered bearish. The default value is 25%, and it can be adjusted between 0 and 100%.
Bullish and Bearish Conditions
The 'percentage up' code sets two conditions based on the calculated percentage:
Percentage Bullish
This evaluates to true if the PercentWatchlistUp is greater than the BullishThreshold.
Percentage Bearish
This evaluates to true if the PercentWatchlistUp is less than the BearishThreshold.
Percentage Up Ribbon Plotting
If there is an additional condition PercentageUpFilter (not shown in the provided code snippet), the code plots a ribbon using the Plot() function. The ribbon color (RibbonColor) is determined based on the PercentageBullish condition. If it is true, the color is set to colorGreen; otherwise, it is set to colorRed.
Section End
The code ends the section using the _SECTION_END() directive.
Overall, this AFL code calculates the percentage of bullish stocks in a watchlist and provides a visual representation of the market sentiment using a buy timing filter and a corresponding visual lower ribbon. The bullish and bearish thresholds can be adjusted to customize the filter's sensitivity to market conditions.
Skate.
In Perter2's thread you say: "If the average percentage change isless than or equal tothe threshold, the filter generates a buy signal."
Is this correct? ( No it's INCORRECT)
Apology to all members
I don't proof read before I post - I know if I get most of the post correct, whats not I'm sure members will work it out.
Free will seems to be pulling your strings
Those traders who have little trading experience "think they have free will" when it comes to trading but all is not what’s it’s cracked up to be. The feeling that we define our own trading choices just isn't correct because it’s hard to get enough mental distance to see what’s really going on in the markets.
I’m just saying as traders we have a hard time differentiating between confidence & intelligence
"Free will" is inherently flawed when related to trading as our decisions are manipulated with additional information, not so when you are a "mechanical system trader" as those decisions are out of your control & made for you.
Some of us are critical thinkers not bound by the biases and unfounded opinions of others . Data/fact driven is the best way forward but i aint preaching , just saying how i go about life , not just trading . You do you whoever you are . I am not trying to change anyones world but mine ..
I find it difficult to listen to Neil deGrasse ( not really a critical thinking scientist imo , bordering on narsissitic ) but i will watch the second one . cheers@Chipp as you are a critical thinker you might find Robert Sapolsky’s new book “Determined” intriguing. It delves into the fascinating subject of ‘free will’. I’ve also attached three YouTube videos for a deeper understanding of this topic.
Background
Robert Sapolsky, a renowned neuroscientist and biologist, has written extensively on the subject of free will and predetermination in his book "Determined: The Science of Life Without Free Will".
For those interested in this topic of 'free will'
Robert Sapolsky, is a distinguished neuroscientist, and biologist, His ongoing research of philosophy surrounding decision-making argues that free will does not exist in any shape or form. He believes that we are nothing more or less than the sum of that which we cannot control – our biology, our environments, and our interactions. This perspective is often referred to as determinism, the philosophical belief that all events, including moral choices, are determined completely by previously existing causes.
Robert Sapolsky's new book "Determined" (A Science of Life without Free Will)
Sapolsky takes readers on a tour of their own biology to explain why he believes free will is a complete illusion. He states his position succinctly - "We are nothing more or less than the cumulative biological and environmental luck, over which we had no control, that has brought us to any moment".
In summary
Robert Sapolsky’s perspective on free will and predetermination is rooted in the belief that our actions and decisions are the result of our biology and environment, rather than an independent will. This view has profound implications for how we understand morality, punishment, and societal structure, even our adaption to trading or investing is predetermined by our 'belief system' (I've also written about this topic).
This is an exciting point that Sapolsky makes
"Decisions are made before we are aware of them"
# 1. Do We Have Free Will? with Neil deGrasse Tyson & Robert Sapolsky
This YouTube video is not only educational but also highly entertaining.
#2. Determined: Robert Sapolsky on Life without Free Will. A Conversation with HG Moeller
# 3. Robert Sapolsky on Free Will & his new book 'Determined'
Skate.
I find it difficult to listen to Neil deGrasse ( not really a critical thinking scientist imo , bordering on narsissitic ) but i will watch the second one . cheers
Yeah there was a time i felt the same way about NDT , but with a huge amount of exposure on utube he has become a celebrity and his ego has blown out considerably . Bit of a Joe Rogan effect type thing . He talks down to people more than i am comfortable with . A hint of eliteism for want of a better word .@Chipp, in addition to the content featuring Neil deGrasse Tyson, there are two other YouTube videos that you might find interesting. I must say, I truly admire how Neil deGrasse Tyson masterfully simplifies complex subjects, making them easily understandable. His exceptional ability to convey intricate ideas in a relatable way never ceases to impress me.
Skate.
What a Dump this thread has become!!
wot, no sailing boats ?What a Dump this thread has become!!
The Captain has Left the Building
View attachment 173069 Good Luck and Bon Voyage
Professor, as an apprentice used to say me "Ripper tune, boss".@Captain_Chaza, I’d like to take a moment to revisit the original intent of the “Dump it here” thread.
A Place to Unburden
Sometimes, we all have thoughts or feelings that we just need to let out. This thread can serve as the perfect outlet for such moments.
Helping Others
You might have insights, advice, or experiences that could be beneficial to others. Feel free to share them here.
Unloading Thoughts
If something’s been weighing on your mind, don’t hesitate to unload and share it here.
Sharing Gems
Have some wisdom or ‘gems’ to share? This thread is an ideal place for that.
Letting Go
Sometimes, it’s hard to let go of certain thoughts until we put them down in words. Consider this thread your paper.
Dump it Here
If there’s something you want to express, feel free to dump it here.
Remember, this thread is like a skate park - a place to freestyle, experiment, and share. Let’s respect its purpose and each other.
Skate.
" Most "
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?