Awesome!! It will save a lot of time!! Tks for sharing
@AlgoTradingWithKevinDavey6 ай бұрын
I hope so!
@leemc27426 ай бұрын
Very useful tip, thanks Kevin.
@AlgoTradingWithKevinDavey6 ай бұрын
Glad it was helpful!
@roystoncartwright56406 ай бұрын
thank you 😊 I'm very new so don't know what's my favourite but I bought your book and it has given me loads of ideas to go off and learn
@AlgoTradingWithKevinDavey6 ай бұрын
Glad to hear this!
@roystoncartwright56406 ай бұрын
would there be any chance we could have an example of this being used hope you have a great day 😊
@AlgoTradingWithKevinDavey6 ай бұрын
@@roystoncartwright5640 at 1:21 I show sample code. You just have to add entry code to it.
@roystoncartwright56406 ай бұрын
thank you Kevin 😊 hope you are having a great day 😀
@covingtoncreek6 ай бұрын
For this question assume I'm using daily bars. "sell next bar at low stop" will place a stop tomorrow at the low of today. "sell next bar from entry ("MyEntry") at$ low stop" will place a stop at the low of tomorrow? But that will continually be changing throughout the day (tomorrow)? At the open tomorrow, the open is actually the low (and high) of tomorrow, at least for a moment. So you've already hit your stop?
@AlgoTradingWithKevinDavey6 ай бұрын
I believe it will be the low of the entry bar. You could use print statements to debug and check this.
@covingtoncreek6 ай бұрын
@@AlgoTradingWithKevinDavey That makes sense. You could watch it with live data, to see if it's adjusting and changing the way you think it should.
@AlgoTradingWithKevinDavey6 ай бұрын
@@covingtoncreek worth a test for sure!
@danilam_6 ай бұрын
Is there a possibility to use previous bar before entry in the similar fashion? Like at$1 or something?
@AlgoTradingWithKevinDavey6 ай бұрын
Have not tried that, you'd have to see if that is also a Tradestation reserved keyword.
@HateDietPepsi6 ай бұрын
Yes. Just use "Sell next bar from entry ("buy code") at$ low[1] stop. I often use something like the at$ with "Sell next bar from entry ("buy code") at$ lowest(L,8) - 2 points stop. This puts the stop at the lowest low of the previous 7 periods plus the entry period plus minimum unit of movement (like 0.25 for ES, 2 points = 0.5). They have a pdf online for "Learning EasyLanguage Functions and Reserved Words." Suggest you use this reference to aid in your coding.
@AlgoTradingWithKevinDavey6 ай бұрын
@@HateDietPepsi - Thanks for sharing. Been using TS for 20+ years, never knew about the at$ keyword before!