gregoirejohnb

Random Entries Work!

"tHe MaRkEtS aRe RaNdOm", say moron academics.

The purpose of this study is to show that most markets are NOT random! Most markets show a clear bias where we can make such easy money, that a random number generator can do it.

=== HOW THE INDICATOR WORKS ===

  • The study will randomly enter the market
  • The study will randomly exit the market if in a trade
  • You can choose a Long Only, Short Only, or Bidirectional strategy

=== DEFAULT VALUES AND THEIR LOGIC ===

  • Percent Chance to Enter Per Bar: 10%
  • Percent Chance to Exit Per Bar: 3%
  • Direction: Long Only
  • Commission: 0

Each bar has a 10% chance to enter the market. Each bar has a 3% to exit the market . It will only enter long.

I included zero commission for simplification. It's a good exercise to include a commission/slippage to see just how much trading fees take from you.

=== TIPS ===

  • Increasing "Percent Chance to Exit" will shorten the time in a trade. You can see the "Avg # Bars In Trade" go down as you increase. If "Percent Chance to Exit" is too high, the study won't be in the market long enough to catch any movement, possibly exiting on the same bar most of the time.
  • If you're getting the red screen, that means the strategy lost so much money it went broke. Try reducing the percent equity on the Properties tab.
  • Switch the start year to avoid/minimize black swan events like the covid drop in 2020.

=== FINDINGS ===

  • Most markets lose money with a "Random" direction strategy.
  • Most markets lose ALL money with a "Short Only" strategy.
  • Most markets make money with a "Long Only" strategy.

Try this strategy on: Bitcoin (BTCUSD) and the NASDAQ (QQQ).

There are two popular memes right now: "Bitcoin to the moon" and "Stocks only go up". Both are seemingly true. Bitcoin was the best performing asset of the 2010's, gaining several billion percent in gains. The stock market is on a 100 year long uptrend. Why? BECAUSE FIAT CURRENCIES ALWAYS GO DOWN! This is inflation. If we measure the market in terms of others assets instead of fiat, the Long Only strategy doesn't work anymore (or works less well).
Try this strategy on: Bitcoin/GLD (BTCUSD/GLD), the Eurodollar (EURUSD), and the S&P 500 measured in gold (SPY/GLD).

Bitcoin measured in gold (BTCUSD/GLD) still works with a Long Only strategy because Bitcoin increased in value over both USD and gold.
The Eurodollar (EURUSD) generally loses money no matter what, especially if you add any commission. This makes sense as they are both fiat currencies with similar inflation schedules.
Gold and the S&P 500 have gained roughly the same amount since ~2000. Some years will show better results for a long strategy, while others will favor a short strategy. Now look at just SPY or GLD (which are both measured in USD by default!) and you'll see the same trend again: a Long Only strategy crushes even when entering and exiting randomly.

=== "JUST TELL ME WHAT TO DO, YOU NERD!" ===

Bulls always win and Bears always lose because fiat currencies go to zero.

You're not underperforming a random number generator, are you?

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?