ROBOT autotrading futures (through IB Gateway)

Discussion in 'Journals' started by fullautotrading, Jun 22, 2010.

  1. unco

    unco

    Hi Tom,

    not if EUR goes to 2.5 ;)

    Effectively if you cumulate "mean reverting" strategies, at some point they will all be short during EUR rise (if we agree that this rise is "out of norm"). The only way to really find diversification is by adding a trend following strategy, or even better a strategy that anticipate trend.
    Instead of entering long for your trend following strategy when usually the mean reverting strategy starts shorting, you enter long during low volatility period, expecting the market to break. Then your mean reverting strategy allows you to eventually take some profit and reduce your global exposure and your risk on the same time.
    In that way you can find a real diversification.

    Over a long period and depending of the timeframe these strategies (breakout anticipation) may be flat only, but as your target is to find a global lower drawdown, that wouldn't be a problem.

    For the same reason, instead of adding an instance on the same market but with different parameters, add an instance on an uncorrelated market (soft commo are perfect for this). You may have flat results on this particular market, but there is high probability your global equity curve looks better.
     
    #81     Sep 28, 2010
  2. If you start 1.25 you go up 1.34 then you see a retracement to 1.33. You are out, and probably even begin shorting. So you may be making my same point ;-))

    One thing to note here is that this is already coded as an <b>overlay of 2 trending strategies</b>. So adding a trender could simply mean choosing which side to "overload". And we may back to "prediction" (a word i removed from my vocabulary). The intuitive point is that being direction "unpredictable" (or having to assume that), all the profitable strategies mainly works with retracements/reversals, with a neutral approach.

    Algorithmic directional strategies tend to be a zero profit game (in the best case) due to embedded losses (stop/reverse) and direction unpredictability.

    You may be right, i think, a zero-profit directional strategy could be overlaid just for the purposes of smoothing the equity curve, and possibly might improve hedging in extreme scenarios.

    The current strategy is fundamentally good most of time, but we need to do something for the extreme scenarios; might add a trending component which would "emerge" in case of instruments tracking together unidirectionally, a sort of "macrostop". Should create a sort of "elastic" effect with a "transition" from neutral countertrending to directional trending in order to stay bounded. A directional algorithmic strategy per se is, usually, at best, a 0 zero-profit game, but overlaid on a neutral basis may provide hedging.

    Though, putting together the game can be quite a challenge.

    In any case <b>if large capitals are available</b>, i still suspect that the current strategy would yield the greatest performances, in terms of AvgProfit/MDD (max investment).

    Beautiful idea unco! Let me give it a try... will be back with results, and in case we might compare approaches.


    Tom
     
    #82     Sep 30, 2010
  3. Hi friends,

    i am adding a trending algo over the original one. Since this actually give rise to a <b>new strategy</b>, i will start a <a href="http://www.elitetrader.com/vb/showthread.php?s=&threadid=208265"> new thread</a> to discuss it.
    Everyone is invited to join the discussion :)

    Thanks a lot for all the ideas and the smart contributions so far!

    Tom
     
    #83     Oct 11, 2010
  4. I know this is an old thread (and so apologise for joining the class after everyone has already left the room! ... but I can see the professor is still at the front gathering up his lecture notes ...), but it's fascinating and I have some questions ...

    Forgive me if all my questions achieve is to reveal my ignorance, but ...

    a) why is direction any more predictable in a potentially (or would "hopefully" be a better word?) mean reverting situation than in a potentially ("hopefully"?) trending one?

    b) why are you attributing "embedded losses" only to trending strategies?

    Thanks.
     
    #84     Mar 24, 2011
  5. Hi abattia,

    thanks for contributing. Mkt is a constantly humbling experience, and the day i meet a "professor" of trading I can be pretty sure he might still be a professor, but about market has little experience for sure ;-))

    As to question b) i don't feel i am attributing something to a class of strategies *only*. One can clearly experience losses with any kind of strategy. (Another issue is how one defines "losses".)

    About point a) <b>"prediction"</b> is one of the concept i don't use. In fact if you see also the most recent thread:
    http://www.elitetrader.com/vb/showthread.php?s=&threadid=208265&perpage=6&pagenumber=17
    is all based on the idea that i choose to deliberately <b>"ignore"</b> (for the purposes of autotrading) the possibility of <b>predicting</b> market.
    This is a constant trait of my current approach.

    Tom
     
    #85     Mar 24, 2011
  6. OK, thanks. I'll get started on the later thread ...
     
    #86     Mar 24, 2011
  7. Lear

    Lear

    Hi, Tom.

    I just finish reading above info. and here I got a question.

    As to clone instrument, make a long/short pair at the same time. There mightbe two questions.
    1. one account can have 2 different direction position at the sametime or it is just an internal logic for references?

    2. Suppose the trend is upward, so on the T side, we constantly buy & sell, making money. But on the CT side, we just hold the "investment".And vice versa. Is my understanding correct?

    Thank you for your explanation in advance. I am sure you have improve the strategy by now, if so, just tell me to continue reading.

    Lear.

     
    #87     Sep 7, 2011
  8. Hi Lear,

    let me first answer the first question.
    <b>>1. one account can have 2 different direction position at the same time or it is just an internal logic...? </b>

    All positions must be vieved as "virtual". Clearly, in the actual account you will have the "algebrical result" of all the various virtual "position".
    Similarly, if you have 2 instances of the bot, each one will play its own game, while the account will clearly have a position which is equal to the "algebrical sum" of the 2 robots. Each bot does not look at all at the real account: all PNL computations are self-contained (which also allow us to restore multiple trading sessions across different machines).

    The bot works always with "virtual" positions. Even just 1 bot instance uses this concept, as it layers essentially 2 strategies and the orders issued are clearly a result of <b>"pooling" requests</b> coming from multiple strategies and multiple agents. For instance, if one agent requests a BUY and, at the same time, another one requests sell, what would happen is that "virtually" <b>both take opposite virtual positions</b>, but <b>no "actual" order</b> will be issued.
     
    #88     Sep 7, 2011
  9. I sometimes talk of "countrentrending" or "trending", just to use a language more understandable to most traders or readers. In reality, i have a different picture in my mind, which i try to reflect in the strategic construction.

    Let' s see if i can depict this vision of mine without sounding like a fool.

    First of all, <b>forget</b> the concept of single trade. Forget take profit and stops.
    Imagine instead a "grand scheme" to be built with patience. Like <b>a spider patiently build its web</b>. A sort of <b>"probabilistic cage"</b>, as i like to call it.

    What will this "web" look like when "finished" ? Well, a well-formed web will have catched several "flies". On the ("relative") "bottom", we will see mainly BUY orders, and on the "top" we will see mainly SELL orders.
    What is "in between" is all sort of magics and tricks to try to contain drawdowns as much as possible, relative to profit, and at the same time keep sliding with mkt. And this is where actual implementation and algorithmical variants may make the difference.

    Tom

    <img src="http://www.elitetrader.com/vb/attachment.php?s=&postid=3293218" />
     
    • cage.png
      File size:
      346.1 KB
      Views:
      574
    #89     Sep 7, 2011
  10. #90     Sep 7, 2011