Build a Moving Average Crossover Backtester in 20 Minutes

  Рет қаралды 22,346

TOS Indicators

TOS Indicators

Күн бұрын

Пікірлер: 71
@jaesall3519
@jaesall3519 Жыл бұрын
i'm jealous of how good this guy explained everything i love it
@TOSIndicators
@TOSIndicators Жыл бұрын
Thank you! Appreciate your kindness :-)
@evetsegap
@evetsegap 2 жыл бұрын
Wow. I've been looking for something like this for quite awhile. Thank you!!!!! Subscribed and liked!
@brandonk5389
@brandonk5389 3 жыл бұрын
thank you so much for this. it was very easy to understand and pause and do it rather than just downloading.
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Glad to hear it, Brandon. Cheers!
@cryptotrain6334
@cryptotrain6334 2 жыл бұрын
Outstanding job brother your a great teacher
@richherbert7791
@richherbert7791 3 жыл бұрын
Fantastic video! Thank you for sharing! I had no idea that thinkscript had so many capabilities until I started watching your videos. Time to start tinkering with this backtester :-)
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Awesome to hear that, Rich! Hope this is just the beginning of your thinkScript journey.
@tomtom4903
@tomtom4903 3 жыл бұрын
Thank you your time to made the Video. I learned alot from this vid.👍
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Thanks Tom! Glad it was helpful.
@docjava1
@docjava1 2 жыл бұрын
Very high-quality video! Very helpful. I think would be interesting, is if we could set up a series of parameters and perimeter ranges and optimize over a specific period of time. Then change the period of time and see how the optimized parameters perform in order to test the robustness of the set up. That is to say, over optimize over a given period of time, and then test over a different period of time. This would enable us to tell a little bit better whether or not we have over optimized a given set up. Thanks again for all your fine efforts!
@yahmef1990
@yahmef1990 5 ай бұрын
You the best we appreciate your effort 👌
@TOSIndicators
@TOSIndicators 5 ай бұрын
My pleasure!
@EIStudent
@EIStudent 3 жыл бұрын
Great tutorial! Insane value!
@snail897
@snail897 4 жыл бұрын
Thank you. This is very useful.
@TOSIndicators
@TOSIndicators 4 жыл бұрын
Glad you liked it! And thanks for the support. :-)
@TheUndertaker19
@TheUndertaker19 8 ай бұрын
It’s possible to include result label % of effectiveness for the back tester as you did in other indicator back testers?
@tombrown7187
@tombrown7187 3 жыл бұрын
Amazing video...Thank you!!
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Thanks Tom! Glad you liked it.
@develteam3095
@develteam3095 3 жыл бұрын
Brilliant - thank you
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Thank you! Glad you liked the tutorial.
@serendipity1328
@serendipity1328 Жыл бұрын
Hello, you have added longentries and shotentries condition only in Buy_To_Open and Sell_To_Open orders and not for Sell_To_Close and Buy_To_Close orders! Why is that? If a Buy_To_Open position is open, then won't it execute Buy_To_Close to close it or its not allowed and only executes Sell_To_Close?
@TOSIndicators
@TOSIndicators Жыл бұрын
The opening position is the only one that requires the longEntries/shortEntries boolean checks. A trade can only be closed, if it is already open.
@abhilash0518
@abhilash0518 Жыл бұрын
How do we mention, in the script, the MA is aligned to Day or 1hr etc
@TOSIndicators
@TOSIndicators Жыл бұрын
Hi Abhilash - Here's a video which walks through how to plot a daily time frame's MA on a smaller time frame chart: kzbin.info/www/bejne/Y5uaoIaIZ6aoepo Same concept applies to the 1-hr chart as well.
@VentureNW
@VentureNW Жыл бұрын
This works really nicely. Is there a way to remove the text from the Arrows? When I am zoomed out, its not really needed... just arrows works for me. I looked at the code a bit, and I see over on the look and feel section - HideTitle, but I am really a noob with this stuff and cannot for the life of me figure it out. Any help you could offer is greatly appreciated.
@Mr_Duck_RVA
@Mr_Duck_RVA 2 жыл бұрын
Great script. Although it doesn't seem to work if you do say a 1 Day 3 minute chart. Are there any min requirements in terms of timeframe you can test with?
@TOSIndicators
@TOSIndicators 2 жыл бұрын
You'll need to make sure you have enough historical data on your charts, for the backtester to work correctly. Try expanding to to more days, to give more 3-min data points.
@Mr_Duck_RVA
@Mr_Duck_RVA 2 жыл бұрын
@@TOSIndicators Thank you I’ll give that a try. You’re content is awesome. Keep it coming. Maybe do a tutorial playlist for thinkscript beginners
@Mr_Duck_RVA
@Mr_Duck_RVA 2 жыл бұрын
Just gave it a try. If you do a 3 min 30 day chart using the 9/89 EMA clearly there's an uptrend but the floating PL shows negative profit. Im not understanding whats going on here? Am I doing something wrong?
@TOSIndicators
@TOSIndicators 2 жыл бұрын
You'll need to dig into the report, analyze the trades your script is taking, and use that as a starting point to keep refining/iterating.
@Mr_Duck_RVA
@Mr_Duck_RVA 2 жыл бұрын
@@TOSIndicators ah okay. So the script is taking trades based on the entries and exits settings
@SatishNyala
@SatishNyala Жыл бұрын
I am trying on my TOS but it won't show anything, FYI i am not a coding guy but i downloaded script from your website as mentioned.
@uyghurtradingclub8543
@uyghurtradingclub8543 3 жыл бұрын
Your videos are amazing and very helpful. I was wondering if we can Loop in TOS, where it can consistently buy when the stock touches one of the moving averages? Thank you!
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Hi BTD - I appreciate the kind words, thank you. I don't believe there is a way to "loop" orders in TOS. Each "automated order" needs to be triggered individually, for each stock/ETF.
@uyghurtradingclub8543
@uyghurtradingclub8543 3 жыл бұрын
@@TOSIndicators Thank you!
@ceptember.
@ceptember. 2 жыл бұрын
Awesome sauce
@wildgoose82667
@wildgoose82667 Жыл бұрын
I'm an old dog trying to learn a new trick. How would I change the label that displays at entries and exits? Right now it shows the name of the file. What if I wanted it to be "ENTER" and "EXIT" and white instead of purple? Thanks in advance
@muthiahlakshmanan5104
@muthiahlakshmanan5104 2 жыл бұрын
helo, thx for sharing. 1. How do i scan for stocks where 8 ma crossing above 20 a day ago in daily 2. how do i scan for stocks where 8 and 20 are same. i would appreciate your help. thanks
@TOSIndicators
@TOSIndicators 2 жыл бұрын
This tutorial should give you an idea of how to define moving averages, along with crossovers, which you can use in the scan tab as well (just make sure to set the aggregation period to a daily time period).
@tylereastburn73
@tylereastburn73 2 жыл бұрын
how do i get this to work with option entries and exits instead of shares?
@TOSIndicators
@TOSIndicators 2 жыл бұрын
Hi Tyler - you can use the option functions inside of ThinkOrswim, though they are fairly limited: tlc.thinkorswim.com/center/reference/thinkScript/Functions/Option-Related
@tylereastburn73
@tylereastburn73 2 жыл бұрын
@@TOSIndicators thank you for getting back to me after digging a little further I don’t think I’ll be able to do exactly what I’m looking for so I’ll have to just use on demand and play it out on a few random days where I don’t know the outcome
@kishoresharma8697
@kishoresharma8697 3 жыл бұрын
How can I use this moving crossover script to scan the stock list for long/swing trade?
@NCM393
@NCM393 2 жыл бұрын
Can it buy options for you?
@neuvocastezero1838
@neuvocastezero1838 2 жыл бұрын
Thanks for the video. It's interesting that it's not necessary to include the "Longentries" and "Shortentries" booleans in the closing AddOrder statements. There's a lot of idiosyncrasies that are making it hard for me to learn Thinkscript.
@bestdjintown
@bestdjintown 2 жыл бұрын
Great video, this would be golden if you could make the exit strategy based % gain / or loss, such as close at 5% below, or 10% above entry.
@TOSIndicators
@TOSIndicators 2 жыл бұрын
You can - just need to include the set percentage in your AddOrder() function, for the closing orders -- both stops & targets.
@mikemerlin4020
@mikemerlin4020 3 жыл бұрын
Difference between this and the volatility box?
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Hi Mike - the two are quite different (and unrelated). The Volatility Box is based off of our custom models, for an instant framework around price and volatility, whereas this tutorial walks you through how to build a backtester to measure / compare moving average crossovers. Link to learn more: tosindicators.com/volatility-box
@kerrymorrison4801
@kerrymorrison4801 2 жыл бұрын
I cannot get TS file to open. It says theres an error saying file isnt playable? What did I do wrong
@TOSIndicators
@TOSIndicators 2 жыл бұрын
Hi Kerry - If you need help importing the indicator into ThinkOrSwim, here's a step by step guide that should help you: tosindicators.com/thinkscript/how-to-import-thinkorswim
@hakenly
@hakenly 2 жыл бұрын
I cannot get this to work at all. I even downloaded the study and imported it, still doesn't do anything. Doesn't even plot the MA. I can't get the FloatPL study to load either. I clicked on the check box that says "Display FloatingPL study with strategies", still no success. Any help would be great
@TOSIndicators
@TOSIndicators 2 жыл бұрын
Hi Haken - You'll need to make sure you're on the 'Strategy' tab when importing a STRATEGY.ts file (ie. a backtester).
@hakenly
@hakenly 2 жыл бұрын
@@TOSIndicators Thank you I got it working now. Love your videos, it's so helpful and high quality too.
@Dragonlord9
@Dragonlord9 2 жыл бұрын
How to create crossover scanner alerts for all stocks that will instantly and automatically pop up as an alert?
@TOSIndicators
@TOSIndicators 2 жыл бұрын
You can use this tutorial as a guide on creating a scan with alerts: kzbin.info/www/bejne/nHqbnWZ7d9p3l5I
@Dragonlord9
@Dragonlord9 2 жыл бұрын
@@TOSIndicators I meant for the thinkscript to create scanners with alerts
@matatik
@matatik 3 жыл бұрын
Could you PLEASE help us build multi timeframe (5 TIME FRAMES 3m,15, 1H, 4H, 1D) Mov. Average Crossover strategy with buy/sell signals. I'd greatly appreciate it. Many thanks in advance.
@TOSIndicators
@TOSIndicators 3 жыл бұрын
Sure, I can add a MTF MA Crossover indicator to the backlog of ideas for future tutorials.
@ThunderGOG
@ThunderGOG 3 жыл бұрын
@@TOSIndicators have you done it yet?
@mikemerlin4020
@mikemerlin4020 3 жыл бұрын
Awesome!
@SonSon-vo1ib
@SonSon-vo1ib 3 жыл бұрын
When I entered (longentries), it created an error
@TOSIndicators
@TOSIndicators 3 жыл бұрын
You can download our final version of the code here, and compare it with yours to see where you may be facing issues: tosindicators.com/backtesters/moving-average-crossover
@dan721
@dan721 4 жыл бұрын
Nice
@Romanpax
@Romanpax 3 жыл бұрын
How to show below section of earnings?
@Romanpax
@Romanpax 3 жыл бұрын
16:19
@TOSIndicators
@TOSIndicators 3 жыл бұрын
I think you answered your own question with the timestamp :-).
@BubbaBubs1
@BubbaBubs1 2 жыл бұрын
Nerds go through this stuff way too fast. Do you have any videos on this that are absolute barney style?
@Pj-ej1tq
@Pj-ej1tq 2 жыл бұрын
I could not get it to work
@TOSIndicators
@TOSIndicators 2 жыл бұрын
Hi Pj - you can download from our website for free, using the link in the description box.
Build a Cumulative TICK Indicator in 21 Minutes
21:10
TOS Indicators
Рет қаралды 14 М.
Build a Moving Average Pullback Backtester in 35 Minutes
35:45
TOS Indicators
Рет қаралды 6 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
How to Add a Label in ThinkOrSwim (Beginner-Friendly)
23:18
TOS Indicators
Рет қаралды 17 М.
Master Think or Swim (ToS) Custom Charts | Trading Tutorials
34:40
Trade Brigade
Рет қаралды 137 М.
Build a TTM Squeeze Trend Indicator in 23 Minutes
22:44
TOS Indicators
Рет қаралды 2,6 М.
How to thinkScript - Simple Breakout Tool - Episode 8
25:27
TOS Indicators
Рет қаралды 33 М.
Build a Multi-Time Frame (MTF) Squeeze in 22 Minutes
21:22
TOS Indicators
Рет қаралды 26 М.
Use ChatGPT to Build a Volume Indicator for ThinkOrSwim
26:14
TOS Indicators
Рет қаралды 2,2 М.
Build a Beautiful, Custom TTM Squeeze Dashboard in 25 Minutes
25:45
TOS Indicators
Рет қаралды 43 М.
Build 4 Unusual Volume Scans for ThinkOrSwim in 32 Minutes
31:18
TOS Indicators
Рет қаралды 88 М.
Master the Think or Swim (ToS) Stock Scanner | Trading Tutorials
32:37