NexusFi: Find Your Edge


Home Menu

 





Attack of the Robots - An Algo Journal


Discussion in Trading Journals

Updated
      Top Posters
    1. looks_one vmodus with 357 posts (859 thanks)
    2. looks_two SMCJB with 38 posts (84 thanks)
    3. looks_3 kevinkdog with 27 posts (70 thanks)
    4. looks_4 bobwest with 13 posts (53 thanks)
      Best Posters
    1. looks_one bobwest with 4.1 thanks per post
    2. looks_two kevinkdog with 2.6 thanks per post
    3. looks_3 vmodus with 2.4 thanks per post
    4. looks_4 SMCJB with 2.2 thanks per post
    1. trending_up 94,749 views
    2. thumb_up 1,141 thanks given
    3. group 61 followers
    1. forum 478 posts
    2. attach_file 181 attachments




 
Search this Thread

Attack of the Robots - An Algo Journal

  #451 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

I had a few minutes to try a 'matrix optimization' in MultiCharts today, so I thought I would share here. There is a similar capability in TradeStation and MultiOpt (an excellent 3rd party tool for walk-forward analysis and optimizing in TradeStation). The TS version was, uh, difficult, though the MC one appears to be modeled after that one. The main utility of this tool is the ability to find an optimal out-of-sample (OoS) period for optimization. I optimized an instrument and one of my recent systems, just to see what would happen (on the systems I optimize, I usually have set periods based on timeframe for re-optimization.

Here is what the different periods look like:


The less obvious utility for me is to validate that a system will work over a wide variety of in-sample and out-of-sample periods. This follows Perry Kaufman's idea that 'loose pants fit all'. In this case, all periods seemed to work, though my parameters to 'pass' this particular system were pretty low.

Here is what Profit Factor looks like, along with the broader results of the matrix optimization:


The report also provides the parameters and dates (not seen above) for the optimization, so I can just build my code around those values as needed. The Robustness feature allows me to pick the fitness function(s) (e.g. Profit Factor) and the values that are considered passing. All-in-all a nice feature, though I personally try to develop systems that I do not need to optimize. This is an easy to use and fast little utility.

That's it for now...

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Quantum physics & Trading dynamics
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Strategy stop orders partially filled
EasyLanguage Programming
What broker to use for trading palladium futures
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
15 thanks
GFIs1 1 DAX trade per day journal
15 thanks
EG Indicators
11 thanks
  #452 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

Here is a sneak preview of the Momentum Pinball system I'm working on. There are two variations of this system in the book, Street Smarts, but I am developing and testing the first variation:


The rules are as follows:
  1. If the previous day's 3-period RSI of a one-period rate of change (LBR RSI) is > 70, set a sell short order at the low of the 60 minute opening bar
  2. If the previous day's 3-period RSI of a one-period rate of change (LBR RSI) is < 30, set a buy order at the high of the 60 minute opening bar
  3. Orders expire at the end of the trading session (GTD, expiration = today)
  4. If short order is filled, set stop at High of 60 minute opening bar
  5. If long order is filled, set stop at Low of 60 minute opening bar
  6. If stop is hit either way, 1 additional entry is allowed for the day
  7. Exit within 5 minutes of the close of the session
I deviate from the original rules, as this system was originally designed for ES (e-mini S&P) at a time when overnight trading was minimal or non-existent (1995), at least to my knowledge and understanding. The original rules state: get out if not at a profit; hold overnight if profitable. I observed, using SPY as a proxy for ES, that holding overnight in these times (27 years later) is generally not profitable. I'll test that variation another time, but for now, I'll be satisfied exiting right before the close.

The text also states that we should use a trailing stop, but Connors and Bradford-Raschke are not clear on the structure of that stop.

Anyhow, that's what I'm working on. To be continued...

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #453 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


Just a little interesting algo/systematic trader tidbit to share.... I get daily email updates from the 40in-20out trend-following project. Here is what their hypothetical trend-following portfolio (futures) looks like as of close of business today:



They have done a good year in 7 trading days.

Of course, I've been watching them for a while and even built a system based on those rules (not bad, actually). Some of this will go away when the market turns at some point (such is the nature of trend-following). But wow, talk about some fat tails.


~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #454 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


vmodus View Post
Just a little interesting algo/systematic trader tidbit to share.... I get daily email updates from the 40in-20out trend-following project. Here is what their hypothetical trend-following portfolio (futures) looks like as of close of business today:



They have done a good year in 7 trading days.

Of course, I've been watching them for a while and even built a system based on those rules (not bad, actually). Some of this will go away when the market turns at some point (such is the nature of trend-following). But wow, talk about some fat tails.


Pretty neat, although today so far I'm guessing that portfolio is getting killed - which unfortunately happens in breakout strategies like that.

If you had 1 long Heating oil contract, just today you have lost $23K.

Of course, that is really just giving previous days profits back, but still...

Crazy times.

Follow me on Twitter Reply With Quote
Thanked by:
  #455 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


kevinkdog View Post
Pretty neat, although today so far I'm guessing that portfolio is getting killed - which unfortunately happens in breakout strategies like that.

If you had 1 long Heating oil contract, just today you have lost $23K.

Of course, that is really just giving previous days profits back, but still...

Crazy times.

Exactly. They had some spectacular results last year, but gave a lot of it back. Trend-following is really about catching fat tails when they occur.

Small wins turning to losses, big wins turning to losses, big wins turning to small wins – get used to that in Trend Following.

- Jerry Parker, one of the original turtles

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #456 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

@kevinkdog, from your keyboard to God's ears.... today's results:



You almost have to appreciate the symmetry.

I know I do this wrong, but for the hypothetical portfolio I maintain for my site, I never report marked-to-market profits, only closed position profits.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #457 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,049 since Dec 2013
Thanks Given: 4,388
Thanks Received: 10,208

Yeah, all the big trends reversed today!
At least for one day!

Reply With Quote
Thanked by:
  #458 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

I am working towards the deadline of my next system, which should be published tomorrow. Here is one of the things I do for every system idea: a system process diagram. This system is a little more complex than others, but I figured I would share here:
SAT-030 Momentum Pinball 1-Entry


SAT-030 Momentum Pinball 1-Exit


I will post results of my testing tonight or tomorrow.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #459 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

Developing and debugging this system (Momentum Pinball) has been a bear. Here are a couple long trades on a chart (SPY):



I'm running behind, so this will get published tomorrow. I'm backtesting tonight so let's see what happens.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #460 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


Not looking good thus far.... (2017-current)....

ETF: DIA using as a proxy for YM

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:




Last Updated on March 31, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts