Attack of the Robots - An Algo Journal - futures io
futures io futures trading



Attack of the Robots - An Algo Journal


Discussion in Trading Journals

Updated by vmodus
      Top Posters
    1. looks_one vmodus with 246 posts (502 thanks)
    2. looks_two SMCJB with 24 posts (51 thanks)
    3. looks_3 kevinkdog with 16 posts (40 thanks)
    4. looks_4 snax with 10 posts (14 thanks)
      Best Posters
    1. looks_one bobwest with 4.4 thanks per post
    2. looks_two kevinkdog with 2.5 thanks per post
    3. looks_3 SMCJB with 2.1 thanks per post
    4. looks_4 vmodus with 2.0 thanks per post
    1. trending_up 21,626 views
    2. thumb_up 681 thanks given
    3. group 42 followers
    1. forum 327 replies
    2. attach_file 96 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Attack of the Robots - An Algo Journal

(login for full post details)
  #41 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received


kevinkdog View Post
There is almost certainly a reason why you are missing orders, and it may or may not be the fault of Tradestation. I don't know.

BUT, what I do know is that any automated software solution will have its issues. So, changing from one software platform might just solve some issues, but bring up others.

The key with any platform you use is to perform root cause and corrective action analysis of any significant errors. I recommend you do just that. Then, depending on what you discover, you might conclude that a platform switch is appropriate.

I hope you solve it!

Order execution is really the least of our problems and we have had pretty good success on that front.

I suspect that the missed orders are a result of a memory leak or some bug in the Tradestation code. Running the same strategy against the same data set gives me two different results..... one set of results before restarting Tradestation and a different set after restarting. If I see it again, I will post an example of exactly what it looks like before and after a restart of the application. The strategy is clean.

Our Tradestation issues run far and deep beyond this particular issue and we have experienced a ton of problems over the years. I have installed and uninstalled TS more times than I care to think. Registry edits, lost data, corrupt files, installation failures.....you name it, we've done it with TS. We just don't trust the platform any longer, especially as we continue to grow our trading operation. I work with high end ERP systems, both functionally and technically, and what I'm seeing is definitely a bug. I don't expect a perfect system, but I do expect some level of stability and reliability. I have had TS freeze on me at least twice this past month, while in a live position.

I appreciate the encouragement. I know I can get through this, but as I've said in other posts, TS days are numbered in our shop.

~vmodus

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to vmodus for this post:

Can you help answer these questions
from other members on futures io?
T​​​​​​radestation datafeed (real time and historical) to NT8
NinjaTrader
Horizontal Line Indicator
Platforms and Indicators
GBP/ARS Pair
Traders Hideout
Need a near crosses scan help for TOS
ThinkOrSwim
Atm strategy help
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Legal question and need desperate help
183 thanks
Building a high-performance data system
18 thanks
FIO Journal Challenge - June 2020 w/SharkIndicators
15 thanks
VWAP for stock index futures trading?
11 thanks
Is Orderflow An Outdated Concept?
11 thanks
 
(login for full post details)
  #42 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received

@kevinkdog , I'm sorry if I may have sounded grouchy in my response last night. I gave what you said last night some more thought. It occurred to me that I can/should use the print feature in Easylanguage to see what my code is doing.

I have the print feature written in all of my strategies and have a parameter to turn it off or on. Here is the code:
 
Code
// Easylanguage code snippet
inputs:  // just add the inputs below to your existing inputs
   print_on(0),                  // 1 = turn print log on
   print_start_date(1190101),    // start date for the print log
   print_end_date(1190101)       // end date for the print log
   ;

vars:    // these variables are just for reference
   iTrend(0),
   Trigger(0)
   ;
   
// Condition to print 
Condition90 = print_on = 1 and Date >= print_start_date and Date <= print_end_date ;

// if condition is true, then print to the log
if Condition90 
   then
      print(Date, "-", Time, " - ","iTrend: " , iTrend, "Trigger: " , Trigger) ;
I actually add more 'print' statements as needed, to see other things as well.

Here is what the parameters look like on one of my strategies:


So today I'm running it in sim again this morning, with print activated. Thanks again.... you got my thinking turned in the right direction. I'll let you know if I need assistance.

~vmodus

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #43 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received


My weird trading thought of the day:

I am working primarily with the VX tool, and I'm pretty much in an upside down world. Like most people here on FIO, I don't care which way the market moves, as long as it moves. The weird part is that, as I'm watching my instrument fall (short), it is actually good news for the markets. So I cheer for my instrument to crash, this means the market (specifically the ES) is moving up.

Just a weird thing to experience.



~vmodus

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #44 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received

So today's sim run worked a lot better than yesterday. Using my lessons learned, I started TS fresh, only one strategy and nothing else (except trade manager once trading commenced.

Of course the results were not the best:


From a market standpoint, there were three ranges that got to us. We were whipsawed a little at pre-market and then just at open, got in the correct side for most of the morning, then some whipsaw action, then another long trade, then a little more back and forth.

Today's Results:
  • -$764
  • 5 trades, 3 losses and 2 wins
  • Compare to the strategy performance report: -$867
So we did a little better than predicted by the strategy performance report. Obviously this was a losing day, but this week, for this strategy, would have been flat.

What I liked
  • Strategy identified all potential trades
  • Our actual P/L was close enough to the strategy report
  • Signals were good
  • Code did not fail like yesterday
What I didn't like
  • Strategy missed one trade, because of a timing issue; the limit price was not hit and thus we didn't get in.
  • There still work to be done on the trades that get missed
  • For this market and strategy, true automation might be difficult to accomplish
  • I pulled the plug on my strategy 4 minutes early.... I thought my EOD exit was not being hit.... then realized it evaluates at the end of the bar, thus I should have waited until 1610.
The VX is one challenging beast. I like the challenge, but the learning is painful. This strategy needs more work and I will have to think about whether I will trade this next week in sim or live. I am leaning towards sim, but will make a decision by Sunday night.

Anyhow, that is all I have for this week. I hope you all have a restful weekend and let's do this again next week.

~vmodus

Visit my futures io Trade Journal Reply With Quote
The following 3 users say Thank You to vmodus for this post:
 
(login for full post details)
  #45 (permalink)
Legendary Market Wizard
Chicago
 
Experience: Beginner
Trading: MYM, MES, YM, ES
 
snax's Avatar
 
Posts: 1,228 since Feb 2019
Thanks: 5,103 given, 4,575 received

Fascinating stuff as always, do you think it is odd that a volatility index like the VIX goes down when prices go up in a volatile fashion? I need to look to see if there is a gauge for volatility that disregards (or is neutral with regards to) direction and only focuses on the "spikiness/variance" of the movement itself.

Have a great weekend!

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #46 (permalink)
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Trading: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,941 since Jun 2009
Thanks: 510 given, 3,588 received

The VIX is skewed because investors in equities are typically long-only, and when fear rises, PUT prices rise faster than the drop in CALL prices, increasing the VIX, and when the market is going up and doing well, fear subsides so PUTs go down in price faster than CALL prices rise, so the VIX drops. This is why the VIX usually rises in down markets and drops in up marketsx.

In short, if people are bullish they generally buy underlying instruments like futures, ETFs, and stocks, instead of CALLs, and use PUTs to insure them.

Also, an underlying can't go lower than zero, but it can theoretically go up to infinity. This absolute-zero floor also makes puts more expensive than calls.

If you want to just measure volatility in terms of actual up/down movement, just use ATR.

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 4 users say Thank You to shodson for this post:
 
(login for full post details)
  #47 (permalink)
Legendary Market Wizard
Chicago
 
Experience: Beginner
Trading: MYM, MES, YM, ES
 
snax's Avatar
 
Posts: 1,228 since Feb 2019
Thanks: 5,103 given, 4,575 received


shodson View Post
The VIX is skewed because investors in equities are typically long-only, and when fear rises, PUT prices rise faster than the drop in CALL prices, increasing the VIX, and when the market is going up and doing well, fear subsides so PUTs go down in price faster than CALL prices rise, so the VIX drops. This is why the VIX usually rises in down markets and drops in up marketsx.

In short, if people are bullish they generally buy underlying instruments like futures, ETFs, and stocks, instead of CALLs, and use PUTs to insure them.

Also, an underlying can't go lower than zero, but it can theoretically go up to infinity. This absolute-zero floor also makes puts more expensive than calls.

If you want to just measure volatility in terms of actual up/down movement, just use ATR.

Ahh thank you. I have never thought of volatility-skew in this fashion, I probably mis-understand it. I always think of it as merely "markets tend to crash faster than they rally" but the option-pricing is skewed as well. Thanks!

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to snax for this post:
 
(login for full post details)
  #48 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received


snax View Post
Fascinating stuff as always, do you think it is odd that a volatility index like the VIX goes down when prices go up in a volatile fashion? I need to look to see if there is a gauge for volatility that disregards (or is neutral with regards to) direction and only focuses on the "spikiness/variance" of the movement itself.

Have a great weekend!

I think it is better to think of the VIX as a fear gauge than a measure of volatility. Volatility can exist and the VIX (or VX, which is what I'm trading) can be low. For example, if this trade war were to be resolved, you would see the VIX drop like a stone, but see a ton of positive (bullish) volatility in equities.

Since the VX is tied to options rather than the underlying equity, it is related to options activity. I've oversimplified it, I'm sure, but I think that's the crux of it. Still learning about it as I go along here.

as @shodson mentioned, ATR is a good measure of volatility.


~vmodus

Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to vmodus for this post:
 
(login for full post details)
  #49 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received

Well, today was a good day. I decided yesterday that I would trade for at least one more day in sim. Today was the first day that sim actually matched my strategy performance report. Everything is spot on, so it is a very nice place to be.

Sim account, closed P/L = $188:


Strategy Report (what would have been in a perfect world): P/L = $188


Trade Manager Report, 5 round trip trades, no cancelled or missed trades:


Today's Results (sim):
  • 5 round trip trades (S, L, S, L, S)
  • +$188 net profit

I believe I have worked out most of the bugs. My end of day exit worked as planned, unlike last week when I was pulling the plug too early.

Final thoughts for today. Here is today's VX chart:

There are generally 2-3 good moves in this market per day. Unfortunately the best move of the day happened at 4:40. Do I want to trade at that time? Probably not. My partner tried it and didn't sleep well for six months. I would really have to trust the execution of my automated strategy to just let this run overnight. I'm far from that point. Just some things for me to think about.

Tomorrow:
I might trade live, but I think I want one more day of sim.

That's it. Algo should be sweet and simple like this. I didn't do any trading work, other than restart my PC and login. And update this journal.

See you all tomorrow!

~vmodus

Visit my futures io Trade Journal Reply With Quote
The following 3 users say Thank You to vmodus for this post:
 
(login for full post details)
  #50 (permalink)
Legendary Market Wizard
Somewhere, Delawhere, USA
 
Experience: Intermediate
Platform: TradeStation,Sierra Chart
Broker: Tradestation Securities
Trading: My kids, VX, Eurodollar
 
vmodus's Avatar
 
Posts: 746 since Feb 2017
Thanks: 1,386 given, 1,351 received



shodson View Post
The VIX is skewed because investors in equities are typically long-only, and when fear rises, PUT prices rise faster than the drop in CALL prices, increasing the VIX, and when the market is going up and doing well, fear subsides so PUTs go down in price faster than CALL prices rise, so the VIX drops. This is why the VIX usually rises in down markets and drops in up marketsx.

In short, if people are bullish they generally buy underlying instruments like futures, ETFs, and stocks, instead of CALLs, and use PUTs to insure them.

Also, an underlying can't go lower than zero, but it can theoretically go up to infinity. This absolute-zero floor also makes puts more expensive than calls.

If you want to just measure volatility in terms of actual up/down movement, just use ATR.

Thanks for the insight, @shodson. I did a lot of studying on options about 20 years ago, but never needed to know much until I started working with the VX.

~vmodus

Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to vmodus for this post:


futures io Trading Community Trading Journals > Attack of the Robots - An Algo Journal


July 30, 2020


Upcoming Webinars and Events
 

Getting Comfortable with Price Action Patterns w/Earn2Trade

Aug 4
 

Live Video Panel: Ask Me Anything w/Ironbeam Brokerage

Aug 6
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts