Forum Think Finance - Bolsa e Forex

Geral => Sistemas Automáticos => Tópico iniciado por: JoaoAP em 2012-08-22 22:59:20

Título: Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 22:59:20
Poderíamos colocar aqui algumas sugestões de sistemas.

Após uma leitura AQUI (http://www.thinkfn.com/forumbolsaforex/index.php/topic,47.msg10709/topicseen.html#msg10709), onde o Zel refere o vtoreport, parece-me que se poderia deixar aqui algumas sugestões para implementar alguns sistemas.

Quem pudesse implementar e testar...
Ora após uma pesquisa pelo vtoreport, apesar de que li que ele crashou a determinada altura, parece-me que algumas ideias do sistema podem estar aqui na imagem em anexo.
Implementar o que está escrito na imagem mais abaixo.
...

Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 23:03:32
No fundo...:
Citar
3 Trading systems on the Q's

Posted by Rogerdodger, Feb 21 2006, 10:38 PM
LINK TO STOCKCHARTS I've picked these up (stolen) from others.
Two use the RSI primarily and the other uses STO and CCI.
Use them at your own risk.
I find them useful when used with other TA.
They show Q's but try them on other stuff.

RSI 2
BUY: 1. Above 200ma
2. 2-period RSI falls 3 days in a row
3. 1st day must be below 60
4. 2-period RSI is below 10 = BUY
5. Buy an additional unit if the 2-period RSI falls 5 days in a row
6. Exit at the close when the 2-period RSI closes above 75
SELL: 1. below 200ma
2. 2-period RSI rises 3 days in a row.
3.The first rising day (day #1) of the 2-period RSI must be above 40.
4. Today the 2-period RSI is above 90: SELL SHORT
5. Sell an additional unit if the 2-period RSI rises 5 days in a row
6. Exit at the close when the 2-period RSI closes below 25.
RSI 5
Buy the Nasdaq 100 Trust (QQQQ) when the 5-day Relative Strength Index (RSI) closes below 30.0.
Sell the Nasdaq 100 Trust (QQQQ) when the 5-day Relative Strength Index (RSI) closes above 50.0.
The Nasdaq 100 Trust is purchased during after-hours trading on the day the RSI buy signal is generated.
The Nasdaq 100 Trust is sold during after-hours trading on the day the RSI sell signal is generated.
The 5-day RSI strategy has a tendency to underperform the buy-and-hold strategy when the market is strong and outperform when the market is weak.
1997 to 2005 Results: NDX "Buy & Hold"up 76.2%, "5 day RSI" up 349.7%
1997 to 2006 Results: NDX "Buy & Hold"up 108.3%, "5 day RSI" up 381.8%
[url]http://www.vtoreport.com/rsi.htm[/url] ([url]http://www.vtoreport.com/rsi.htm[/url]) (Site now closed)


RSI 12 (Sorry, I can only show 2 indicator windows)
Bull Market Signal:
Buy #1: STO & CCI both turn up, unless RSI >70.
Buy #2: CCI turns up and STO below 20.
Sell: STO & CCI both turn down.
Bear Market Signal:
Sell #1: STO & CCI both turn down, Unless RSI<30.
Sell #2: CCI turns down and STO above 80.
Buy: STO & CCI both turn up.
NOTE RSI 12, CCI 10, STO 5,5
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 23:23:44
Apesar de ser Mkting para comprar algo, podemos sempre ter em atenção as sugetsões que aqui estão.

Citar
Dear Friend,

If you're wanting to be a successful trader let me impress upon you the importance of back testing your system. I believe it to be one of the most critical steps in designing any trading system and here's why.

Dr. Van Tharp in "Trade Your Way To Financial Freedom" describes the 3 components of successful trading to be: the system, money management & your psychology. The only way I know to improve all 3 components is through backtesting.


David Jenyns Live
Here's how backtesting directly impacts each component:

1. The System: Backtesting allows you to find out if and how profitable your system truly is, even before you risk a cent. You can also test different variables to identify the most profitable combinations.

2. Money Managment: Backtesting allows you to discover which money management model works best for your system, further demonstrating the importance of having these rules in place.

3. Psychology: Backtesting is guaranteed to increase the confidence you have in your own system. Not only will you prove you're trading a winning system (making it easier to follow) but you'll have the metrics to back it up.

Backtesting really is what gives professional traders their edge! Sadly, even though it's most important, it's one of the least understood areas of trading.

Worse still, as I illustrated in my article "Upgrading Metastock", MetaStock just isn't up to the task of back testing your trading systems. Watch the video below to see what I mean.



With all that said and done, there is a solution and it is by far the best backtesting system I have ever seen. TradeSim is the first realistic true portfolio trading simulator and back tester available for Metastock.

I highly recommend you read all about it below!

All the best,



David Jenyns | Professional Trader, Author & Coach!
Co-author of the MetaStock Programming Study Guide

Back Testing Your System Is Critical!


By David Samborsky | Director of Compuvision - makers of TradeSim.

Whatever technical analysis criterion you use to trade with, be it moving averages, candle sticks, volatility breakouts, fibonacci retracements or any other trading system you have devised you're going to need to back test your trading system thoroughly and objectively in order to remove any possible doubt about it's capability.

To remove any self-doubt you need to thoroughly back test or simulate your trading system in such a way that it matches the conditions under which it will be traded. Once you have established that you have a reliable and robust trading system, only then will you be confident in trading your system.

The Importance of Back Testing

When trading what is the question in most traders’ mind? To answer this question I shall quote the introduction from Chapter 8 “Back Testing” of Mark Jurik’s book "Computerized Trading".

"Will my trading strategy be profitable? After having gone through the arduous process of crafting a trading strategy, this is the question you must ask yourself."

The ability to answer that question is the great promise that back testing holds out for all traders. A successful back testing procedure will greatly reduce the probability that you will begin trading with either an unprofitable strategy or one that does not meet your expectations. By adopting a sound and rigorous back testing approach, you will: -

 Pinpoint which approaches to the market that are likely to be successful and which ones are not.
 Generate good estimates of future performance for each trading strategy you test.
 Create a record of your trading strategy's historical trading performance.
 Produce data necessary for other components of your trading approach such as your asset allocation strategy.

Important Trading System Criteria

Profitability is not the only criteria by which a trading system should be evaluated. Drawdown and stress should equally be considered as well... for example, before you open a trading account:

- Are you satisfied that your system is reliably profitable?
- Will drawdowns wipe out your account?
- Is your system trading in a way you can tolerate?
- Can you tolerate long periods of no trading or too much trading?
- Can you tolerate a large string of losses?


The only way to answer these questions is to subject your trading system to extensive back testing.

Discover The Flaw In MetaStock’s Enhanced System Tester
Unfortunately MetaStock’s system tester leaves a lot to be desired when it comes to realistically and objectively testing the performance of a trading system.

Even though the Enhanced System Tester tests multiple securities in one batch, Metastock treats each security independently of the other. In other words, when Metastock tests the first security, it uses your predefined float and takes the trade over the test period selected. Once completed, it repeats the same process for the second security, using the same initial float, with no reference to the first securities traded.

The consequence of this type of testing is that you receive the same result as you would if you simply tested each security individually and added the results together. Not only is this process dreadfully slow, but the question of the performance of the trading system still goes unanswered. The trader then has to trade the system with a lack of confidence and a certain amount of self-doubt.

Lack of Confidence

Lack of confidence usually forces traders to question their own trading systems with a temptation to continually modify it with devastating consequences. This temptation is usually spawned by a string of losing trades or an opportunity to replace their trading system with a whiz bang indicator that was talked about on a traders chat forum which seems like the answer to all traders prayers.

Anything that sounds too good to be true will attract the attention of a trader who is not satisfied with their own trading system simply because they have not properly tested their system in the first place and have not built up the necessary confidence needed to successfully trade it.

In the end these negative subconscious thoughts will only hinder and destroy your ability to trade successfully. To improve your confidence in your trading system you need to thoroughly and objectively back test it - simple as that! Only then will you be confident enough to commit time and money to it!

The Trader's Dilemma

How can we test how a trading system will perform over a period of time when trading an arbitrary group of securities?

Introducing TradeSim...

TradeSim is the first realistic true trading simulator/analyzer for Metastock that can quickly back-test and evaluate a trading system across a portfolio of securities. With its powerful data processing capabilities TradeSim can evaluate the historic performance of a given trading system within a matter of minutes and do it with a realistic representation of a real-life trading scenario. Whether a single security or a multiple security portfolio, TradeSim answers the simple question: -

"What would have happened if this system had been traded in the past using an arbitrary portfolio of securities?"

Sounds simple - but it is extremely complex if not impossible to do with Metastock as it stands. However, with TradeSim it is just a simple matter of running a Metastock exploration on a portfolio of securities using your own set of indicators. When the exploration has finished you just simply run TradeSim and analyse the resulting trade data.
...

If you're interested in purchasing TradeSim now Click Here
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 23:37:49
Deve ser um bom sistema, mas este não deve ser fácil de implementar:

http://www.thinkfn.com/forumbolsaforex/index.php/topic,47.msg10735.html#msg10735 (http://www.thinkfn.com/forumbolsaforex/index.php/topic,47.msg10735.html#msg10735)

http://www.thinkfn.com/forumbolsaforex/index.php/topic,47.msg10742.html#msg10742 (http://www.thinkfn.com/forumbolsaforex/index.php/topic,47.msg10742.html#msg10742)

Algumas ideias no pdf em cima podem primeiro ler em:
http://www.thinkfn.com/forumbolsaforex/index.php/topic,454.msg7704.html#msg7704 (http://www.thinkfn.com/forumbolsaforex/index.php/topic,454.msg7704.html#msg7704)  (ZACKS_ Ranking - Europa.pdf)
Também ler nesse tópico:
Growth Stocks.htm
Trading Ideas Filtradas por sistemas automaticos.htm

etc...

Feito em Excel e dados, aqui mais crítico, segundo o Rs_trader vai à Bloomberg.
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 23:47:56
Fórmulas free para metastock:
http://www.tradingstrategies.net.au/list_formulae.php (http://www.tradingstrategies.net.au/list_formulae.php)
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-22 23:58:56
Os dados para implementar um sistema são críticos.
Os free: finance.yahoo.com e podem facilmente exportar para Excel.

Quem conhecer outros sites para fornecer dados, a bom preço, deixem aqui.
Para dados fundamentais é mais complicado conseguimos dados a bom preço.
Mas podem sempre conhecer alguém que forneça para testes e depois logo decidem se devem pagar ou não. Ou a partir de certa data podem manualmente colocá-los na base de dados ou usar um sricpt para retirar dados da SEC a partir da apresentação das empresas.

Exemplo para cosneguir alguns dados free (exemplo para a ICE), mas não de forma automática...:
http://money.cnn.com/quote/financials/financials.html?symb=ICE (http://money.cnn.com/quote/financials/financials.html?symb=ICE)
http://www.bloomberg.com/quote/ICE:US (http://www.bloomberg.com/quote/ICE:US)

Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-23 00:05:18
A terminar uma pesquisa encontrei este site.
Esperando que não feche.
sistemas de negociação e estratégias
http://sanvangonline.com.vn/archive/index.php/f-10.html?s=4980642b34d4ce55a5305413c1ed36f9 (http://sanvangonline.com.vn/archive/index.php/f-10.html?s=4980642b34d4ce55a5305413c1ed36f9)  (traduzido...)
Se alguém achar algo interessante deixe aqui.
Mesmo um cópia da tradução para cá de algo que considerem importante, copiem.

Criando um sistema de comércio
http://sanvangonline.com.vn/archive/index.php/f-18.html?s=4980642b34d4ce55a5305413c1ed36f9 (http://sanvangonline.com.vn/archive/index.php/f-18.html?s=4980642b34d4ce55a5305413c1ed36f9)

Vale a pena ler o que está em cima!
O chrome depois de clicarem, diz se querem traduzir ou não.
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-08-26 14:31:13
Um site para ler. Em especial artigos mais antigos:
http://www.automated-trading-system.com/ (http://www.automated-trading-system.com/)
Título: Re:Sugestões para Sistemas
Enviado por: Gama em 2012-08-26 17:35:00
Excel VBA, Trading, Technical Indicators, Quantitative Methods
http://finance4traders.blogspot.pt/ (http://finance4traders.blogspot.pt/)

Útil para programar alguns indicadores e não só.
Título: Re:Sugestões para Sistemas
Enviado por: Gama em 2012-08-26 17:54:25
Tinha aqui guardado duas sugestões do Cem. Penso que foi alguém que deixou no fórum anterior. De qq forma deve ter sido retirado do Caldeirao.
Mas como qq bom sistema, sem um bom money managment a maioria dos sistemas craham a conta facilmente. Fica tb do Cem, um sugestão sobre o assunto.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2012-09-23 18:26:42
porque nao fazer os backtest destes sistemas? alguem fez?
Título: Re:Sugestões para Sistemas
Enviado por: consultaqui em 2012-09-26 11:42:27
Bom dia a todos, eu pessoalmente uso metatrader e para me auxiliar na escolha de estratégias e combinação das mesmas, para efetuar backtest uso este software gratis http://www.mqlsoft.com/download/reportmanager. (http://www.mqlsoft.com/download/reportmanager.)

Assim consigo organizar-me e saber o comportamento do bolo de estratégias, podendo inclusivamente adicionar o nr de estrategias e nr de pares.

Pessoalmente combino estrategia de break out 2 variações e estratégia de retracement.

Um exemplo de 12 anos e qualquer coisa.

Initial deposit: 5000.00€    Total net profit: 9288.78€
Maximal drawdown: -391.94€ Total trades: 10898
Short positions (won %)5174 (45.419%) Long positions (won %)5724 (46.506%)
Profit trades (% of total)5012 (45.99%)Loss trades (% of total)5886 (54.01%)
Maximum consecutive wins (profit in money) 285.34€
Maximum consecutive losses (loss in money )-96.90€
Maximal consecutive profit (count of wins) 484.22 €
Maximal consecutive loss (count of losses) -143.64 €

Estes valores são sem gestão do risco, lote fixo 0.01lote.

Bons trades a todos.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2012-09-27 02:30:31
a minha sugestao para a maioria de voces e' que desistam do trading e que se concentrem em tactical asset allocation / dynamic asset allocation

fazem 15% ao ano e gastam melhor o tempo

eu proprio vou acabar por fazer isso pois da mais liberdade e eu quero viajar
Título: Re:Sugestões para Sistemas
Enviado por: zAPPa em 2012-09-27 22:48:17
a minha sugestao para a maioria de voces e' que desistam do trading e que se concentrem em tactical asset allocation / dynamic asset allocation

fazem 15% ao ano e gastam melhor o tempo

eu proprio vou acabar por fazer isso pois da mais liberdade e eu quero viajar

Se for uns 12% já é bem bom. ;)
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-10-07 23:23:47
Estive a pesquisar por alguns livros mais básicos, etc... e encontrei esta série:
"Algorithmic Trading - Algorithmic Trading Strategies"
http://www.amazon.com/Algorithmic-Trading-Strategies-Bootstrapping-ebook/dp/B007C4IAAY (http://www.amazon.com/Algorithmic-Trading-Strategies-Bootstrapping-ebook/dp/B007C4IAAY)

Parece-me ter aquilo que se precisa: do simples ao mais complexo.
Alguém conhece, recomende?
Alguém consegue ... por exemplo o Volume 32, etc...
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2012-10-11 03:19:18
nao conheco 

recomendo um outro
http://www.amazon.com/Encyclopedia-Technical-Market-Indicators-Second/dp/0070120579/ref=sr_1_1?s=books&ie=UTF8&qid=1349921947&sr=1-1&keywords=indicators+encyclopedia (http://www.amazon.com/Encyclopedia-Technical-Market-Indicators-Second/dp/0070120579/ref=sr_1_1?s=books&ie=UTF8&qid=1349921947&sr=1-1&keywords=indicators+encyclopedia)
Título: Re:Sugestões para Sistemas
Enviado por: frugal em 2012-10-11 22:39:23
a minha sugestao para a maioria de voces e' que desistam do trading e que se concentrem em tactical asset allocation / dynamic asset allocation

fazem 15% ao ano e gastam melhor o tempo

eu proprio vou acabar por fazer isso pois da mais liberdade e eu quero viajar

de um livro de investimento que li diz o autor que em dezenas de anos de vida nos mercados nunca viu ninguém enriquecer de market timing

cumprimentos
Título: Re:Sugestões para Sistemas
Enviado por: zAPPa em 2012-10-12 10:54:26
a minha sugestao para a maioria de voces e' que desistam do trading e que se concentrem em tactical asset allocation / dynamic asset allocation

fazem 15% ao ano e gastam melhor o tempo

eu proprio vou acabar por fazer isso pois da mais liberdade e eu quero viajar

de um livro de investimento que li diz o autor que em dezenas de anos de vida nos mercados nunca viu ninguém enriquecer de market timing

cumprimentos

O autor tem de alargar os seus horizontes. São poucos, a "enriquecer de market timing", mas existem.
Título: Re:Sugestões para Sistemas
Enviado por: rs_trader em 2012-10-22 22:47:11
Estive a pesquisar por alguns livros mais básicos, etc... e encontrei esta série:
"Algorithmic Trading - Algorithmic Trading Strategies"
[url]http://www.amazon.com/Algorithmic-Trading-Strategies-Bootstrapping-ebook/dp/B007C4IAAY[/url] ([url]http://www.amazon.com/Algorithmic-Trading-Strategies-Bootstrapping-ebook/dp/B007C4IAAY[/url])

Parece-me ter aquilo que se precisa: do simples ao mais complexo.
Alguém conhece, recomende?
Alguém consegue ... por exemplo o Volume 32, etc...
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-10-23 12:06:55
Obrigado.
Se encontrares outros volumes que sejam fundamentais dominar...
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2012-10-30 15:00:11
Uma sugestão para sistema e adpatar.

http://breakpointtrades.com/market_lab/index.php/systems/gdx_systems/ (http://breakpointtrades.com/market_lab/index.php/systems/gdx_systems/)

Como pode deixar de repentes... fica o essencial:
Citar
System Rules:

1. Buy Signals are generated by a cross over the 5 day simple MA.

2. Sell Signals are generated by a cross below the 8 day simple MA.

3. Do not short GDX if the price is < 3% above the 200 day MA, Instead go to cash and wait for the next buy signal.

4. All new Trades (Longs/Shorts) are entered at the close of the day (true end of day swing system), except for Stops which can occur intra day.

5. Exit Longs and Short when $BPGDM goes above 86%

6. Exit Longs and Short when $BPGDM goes above 83.8% with a gap up >1% in the GDX ETF.

7. Set an initial Stop loss of 8% from the entry price Note: this is NOT a trailing Stop and can be hit any time during the day.

8. Do Not Take shorts when the BPGDM is 12% or below.

9. Time Stop - If you are in a position for 20 days, set a stop loss of +0.50%. This will ensure that you can't take a loss now

10. Exit trades and go to cash once a Profit Target of 13.5% has been met.

11. ATR Trailing Stop, Custom Tradestation Indicator

12. RSI Filter


Se alguém pudesse confirmar, com as regras acima, se as imagens que se encontram nesse site estão de acordo com as regras.
Título: Re:Sugestões para Sistemas
Enviado por: Visitante em 2012-11-15 10:43:05
Este é baseado no cruzamento de médias móveis e foi publicado num artigo da Futures. Além disso aplica uma média móvel à curva de 'equity', e fiquei com a ideia que inverte os sinais do sistema quando o valor da 'equity' está abaixo dessa MM, minimizando os 'drawdowns'. Li o artigo por alto, se alguém  experiente quiser dar a sua opinião será bem-vinda.

Artigo: Flying high with forex (http://www.futuresmagdigital.com/futuresmag/201211#pg64)
Título: Re:Sugestões para Sistemas
Enviado por: Visitante em 2012-11-18 22:37:17
Há algum 'software' que se distinga para o teste de sistemas? O 'Enhanced System Tester' do Metastock é muito fácil de programar, embora já tenha ouvido falar bem e mal dele, além de se tratar de um programa que usa princípios de uma década atrás, entretanto houve evoluções que penso não terem sido incorporadas no MetaStock.

Da minha pouca experiência com ele, pareceu-me ter observado algumas inconsistências, que se notam ao desenhar os sinais de entrada, saída, stop no gráfico. Aparentemente sinais que deveriam estar lá, não estão, mas pode ser falha minha, ou de configuração do 'tester'.

O Metatrader poderia ser usado, mesmo para simular sistemas não automáticos, o problema é que tem um interface de programação complicadíssimo e pobre. Tem muito a evoluir caso seja destinado ao retalho, para a autoprogramação, terá de evoluir para algo mais prático de programar. Dá a entender que o programa não foi foi feito para isso. Hoje há a possibilidade da programação por objectos, que muitos fornecedores de 'software' usam, e isso até as crianças programam. O compilador do Metatrader é de 'baixo nível' equivalente aos compiladores que se usavam na década de 1980!

Não conhecem nada com a simplicidade do MS mas eventualmente mais eficaz?
Título: Re:Sugestões para Sistemas
Enviado por: Incognitus em 2012-11-19 00:35:12
Penso que o software da tradestation faz o que queres com alguma simplicidade: http://www.tradestation.com (http://www.tradestation.com)
 
A IB é extraordinariamente complicada para esse fim (o metatrader é muito mais simples). O Metatrader 5 permite programação por objectos, mas regra geral acho que é mais difícil de usar que o metatrader 4.
 
Depois existem mais uma série de programas: Amibroker, Ninjatrader e muitos mais.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2012-11-19 02:35:46
Há algum 'software' que se distinga para o teste de sistemas? O 'Enhanced System Tester' do Metastock é muito fácil de programar, embora já tenha ouvido falar bem e mal dele, além de se tratar de um programa que usa princípios de uma década atrás, entretanto houve evoluções que penso não terem sido incorporadas no MetaStock.

Da minha pouca experiência com ele, pareceu-me ter observado algumas inconsistências, que se notam ao desenhar os sinais de entrada, saída, stop no gráfico. Aparentemente sinais que deveriam estar lá, não estão, mas pode ser falha minha, ou de configuração do 'tester'.

O Metatrader poderia ser usado, mesmo para simular sistemas não automáticos, o problema é que tem um interface de programação complicadíssimo e pobre. Tem muito a evoluir caso seja destinado ao retalho, para a autoprogramação, terá de evoluir para algo mais prático de programar. Dá a entender que o programa não foi foi feito para isso. Hoje há a possibilidade da programação por objectos, que muitos fornecedores de 'software' usam, e isso até as crianças programam. O compilador do Metatrader é de 'baixo nível' equivalente aos compiladores que se usavam na década de 1980!

Não conhecem nada com a simplicidade do MS mas eventualmente mais eficaz?

dos varios que ja experimentei o amibroker e' o melhor por ser tao simples e tao rapido
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2012-11-19 07:55:31
Eu experimentei a demo do Multicharts e é excelente, mas o preço faz com que tenha ficado de parte.

Para coisas muito básicas uso o Meta, mas ainda hoje vou muitas vezes buscar o velhinho e descontinuado Omega Prosuite porque a Easy language é realmente muito fácil de programar e bastante mais versátil do que o Metastock. O Omega entretanto foi substituído pela plataforma do Tradestation que o Inc referiu, mas não sei se pode ser utilizado por quem não tenha conta.

Há também quem use o ProRealtime que é gratuito e a linguagem de programação é parecida à Easy Language.
Título: Re:Sugestões para Sistemas
Enviado por: Visitante em 2012-11-19 13:45:53
Obrigado a todos pelas respostas.
Título: Re:Sugestões para Sistemas
Enviado por: John_Law em 2012-11-20 17:38:18
Neste verão fiz um robot que negociava Head and Shoulders. Fiz uns testes com ele com resultados fraquinhos, depois nunca mais peguei nele nem acho que vá alguma vez tentar usá-lo outra vez. Acham que há alguma possibilidade de eu o vender? Qual a melhor maneira de o fazer? O código tem que seguir alguma nomenclatura/procedimento standard?
Título: Re:Sugestões para Sistemas
Enviado por: vdap em 2012-11-20 17:57:39
Neste verão fiz um robot que negociava Head and Shoulders. Fiz uns testes com ele com resultados fraquinhos, depois nunca mais peguei nele nem acho que vá alguma vez tentar usá-lo outra vez. Acham que há alguma possibilidade de eu o vender? Qual a melhor maneira de o fazer? O código tem que seguir alguma nomenclatura/procedimento standard?

Ninguém te compra um robot que não tenha dado provas no mercado, o que aconselho é que coloques a correr numa conta demo, inscreves-te num site e colocas lá os ganhos e perdas, se der dinheiro o robot ao fim de uns tempos começas a receber respostas e tu avalias.

quanto a vender o código, só pelo código, isso tinha que ser vendido a um programador, e um programador não gasta dinheiro em funções já programadas, a não ser que seja uma coisa do outro mundo (" o que não me parece ser o caso ").

cumprimentos,

Título: Re:Sugestões para Sistemas
Enviado por: John_Law em 2012-11-20 18:04:41
Eu fiz uns backtests... Tenho que experimentá-lo numa demo também. Quais são os sites mais frequentados de compra e venda de robôs, sabes-me dizer?
Título: Re:Sugestões para Sistemas
Enviado por: vdap em 2012-11-20 18:07:08
Eu fiz uns backtests... Tenho que experimentá-lo numa demo também. Quais são os sites mais frequentados de compra e venda de robôs, sabes-me dizer?


dois: (que eu conheça) existem muitos mais... é uma questão de procurares

http://www.collective2.com/ (http://www.collective2.com/)
https://www.myfxbook.com/ (https://www.myfxbook.com/)
Título: Re:Sugestões para Sistemas
Enviado por: Incognitus em 2012-11-20 18:45:54
Eu fiz uns backtests... Tenho que experimentá-lo numa demo também. Quais são os sites mais frequentados de compra e venda de robôs, sabes-me dizer?

John, se nem em backtest a coisa parece produzir resultados, é pouco provável que vá longe em demo ou real.
Título: Re:Sugestões para Sistemas
Enviado por: John_Law em 2012-11-20 23:35:11
Vou mexer um bocadinho nele porque ele tem várias variáveis: para modelação do padrão (simetria, no tempo, dos ombros; simetria, no valor do activo, entre ombros e entre suportes), depois na estratégia: tem para só negociar com neckline ascendente ou não, etc. e eu na altura que o criei não perdi muito tempo a estudar estratégias para o algoritmo. A parte importante do algoritmo é o reconhecimento depois o que tu fazes com ele dá aso a algum estudo. Vou brincar um bocado com ele quando tiver tempo. Se não tive nenhum valor ponho-o aqui, até tem alguma piada esse AE.
Título: Re:Sugestões para Sistemas
Enviado por: consultaqui em 2012-12-18 13:59:03
A rolar em live, conjunto de estratégias sem truques de take profits de menos que 1 pip, sem truques de martingale, risco entre estratégias 1:3 e 3:1.

Segundo o histórico, pode-mos contar com muitas ordens dadas sobe e desce,sobe e desce, poucas probabilidades de perda total de capital e probabilidade de sobreviver positivamente em longo prazo.

Ofereço este conjunto de estratégias (20 contas max, depósito máximo por conta 25k, a funcionar em vários brokers, conta individual para o efeito)

EurUsd live

(http://widgets.myfxbook.com/widget?id=409556&type=1&color=red) (http://www.myfxbook.com/members/marcopq/f1-pt/409556)

Bons trades a todos




Bom dia a todos, eu pessoalmente uso metatrader e para me auxiliar na escolha de estratégias e combinação das mesmas, para efetuar backtest uso este software gratis [url]http://www.mqlsoft.com/download/reportmanager.[/url] ([url]http://www.mqlsoft.com/download/reportmanager.[/url])

Assim consigo organizar-me e saber o comportamento do bolo de estratégias, podendo inclusivamente adicionar o nr de estrategias e nr de pares.

Pessoalmente combino estrategia de break out 2 variações e estratégia de retracement.

Um exemplo de 12 anos e qualquer coisa.

Initial deposit: 5000.00€    Total net profit: 9288.78€
Maximal drawdown: -391.94€ Total trades: 10898
Short positions (won %)5174 (45.419%) Long positions (won %)5724 (46.506%)
Profit trades (% of total)5012 (45.99%)Loss trades (% of total)5886 (54.01%)
Maximum consecutive wins (profit in money) 285.34€
Maximum consecutive losses (loss in money )-96.90€
Maximal consecutive profit (count of wins) 484.22 €
Maximal consecutive loss (count of losses) -143.64 €

Estes valores são sem gestão do risco, lote fixo 0.01lote.

Bons trades a todos.
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-02-18 16:49:00
Hoje descobri um bom fórum para quem vai começar a desenvolver sistemas que está dentro do:
http://www.stockfetcher.com (http://www.stockfetcher.com)
Existe aqui um bom fórum sobre: " PORTFOLIO SELECTION AND MANAGEMENT USING RISK/REWARD RATIOS"
http://www.stockfetcher.com/sfforums/?q=view&tid=91296&start=0 (http://www.stockfetcher.com/sfforums/?q=view&tid=91296&start=0)
E aqui na página 40 têm um codigo final:
http://www.stockfetcher.com/sfforums/?q=view&tid=91296&start=390 (http://www.stockfetcher.com/sfforums/?q=view&tid=91296&start=390)

Coisas simples, mas para quem via começar tem muita informação e algumas coisas muito bem explicadas.
Depois tem sugestões numa linguagem para o stockfetcher e testarem.
Experimentem com calma....


Outro:
ConnorsRSI Pullback Strategy
Here's a system that might be of some interest to a number of StrataSearch users. It's called the "ConnorsRSI Pullback Strategy" and is created by Laurence Connors of Connors Research, LLC. A complete guide to this system can be found here:
http://www.stratasearch.com/forum/viewtopic.php?f=8&t=1115 (http://www.stratasearch.com/forum/viewtopic.php?f=8&t=1115)
Mais abaixo tem o código para o stockfetcher  e qq um pode traduzir para outra linguagem
Aliás aqui: http://www.stratasearch.com/forum/viewforum.php?f=12 (http://www.stratasearch.com/forum/viewforum.php?f=12) tem um bom fórum para estas coisas...

Outra ferramenta:
 FundamentalDataDownloader V1.2 - Downloads fundamental data for all US stock exchanges (AMEX, NASDAQ, NYSE)
http://www.trading-tools.com/historical-fundamental-data-downloader.htm (http://www.trading-tools.com/historical-fundamental-data-downloader.htm)
Título: Re:Sugestões para Sistemas
Enviado por: Messiah em 2013-02-19 14:43:02
Fica aqui um software mt bom free:

http://www.tssbsoftware.com (http://www.tssbsoftware.com)
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-02-19 20:57:15
o connorsrsi nao eh la muito bom, mais vale um simples williams %r

testei o bicho e desisti, parece-me uma manobra de marketing



Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-02-19 23:25:46
o connorsrsi nao eh la muito bom, mais vale um simples williams %r

testei o bicho e desisti, parece-me uma manobra de marketing
QQ dia vou testar uma adaptação dele:

Código: [Seleccione]
%R = [(Highest high over 10 bars - today's close) /
(highest high over 30 bars - lowest low over 10)] * -100
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-05-24 18:42:38
Eu experimentei a demo do Multicharts e é excelente, mas o preço faz com que tenha ficado de parte.

Para coisas muito básicas uso o Meta, mas ainda hoje vou muitas vezes buscar o velhinho e descontinuado Omega Prosuite porque a Easy language é realmente muito fácil de programar e bastante mais versátil do que o Metastock. O Omega entretanto foi substituído pela plataforma do Tradestation que o Inc referiu, mas não sei se pode ser utilizado por quem não tenha conta.

Há também quem use o ProRealtime que é gratuito e a linguagem de programação é parecida à Easy Language.
Só para uma nota.

Cheguei a pedir no fórum se alguém me passava um sistema em Easy Language/TradeStation para Ninja ou Meta ou outros e ninguém me ajudou. Mas, hoje descobri que o Multicharts permite a escrita nesta linguagem.
Fica a informação. O problema é o Multicharts ser pago... mas pronto... deu para perceber o que sistema faz...
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-05-27 08:06:22
Deslpa lá João mas deve-me ter passado esse pedido. Há um site que têm muita coisa em Easy Language, tanto indicadores, como sistemas:
http://trader-online.tk/ELZ/ (http://trader-online.tk/ELZ/)!-ELZ-index.html
O site é bastante antigo e era originalmente polaco há uns anos atrás por isso é possível que encontres algumas páginas que não estejam em Inglês.

Para programar em EL sem ter de abrir conta na Trade Station (http://www.tradestation.com) provavelmente o mais fácil é procurar na net pela versão do velhinho Omega Tradesuite 2000. Mas, claro, sabendo que é uma coisa antiga e descontinuada não esperes nada de extraordinário a nível gráfico e de recursos (ainda assim em programação e system testing dá um baile ao Metastock de hoje IMO).
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-05-28 02:19:11
a minha criatividade na criacao de sistemas e sucesso aumentou bastante desde que comecei a usar o amibroker, as vezes querer poupar 150 euros e usar um programa limitado como o ninja trader ou o metatrader eh um erro.

em todo o caso neste momento preciso de algo mais poderoso tipo multicharts pois quero um software com suporte para multi-sistemas, encontrei um chamado sharequant q me parece cumprir essa funcao e eh muito mais barato que o multicharts

tb estou a considerar o tradelink, um programa opensource bastante popular e HFT ready q tem a desvantagem de ser trabalhoso
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-05-29 16:03:45
Boas sugestões por estes lados...

Zel, quando referes: "sharequant " queres dizer "quantshare"?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-05-30 21:12:24
isso
Título: Re:Sugestões para Sistemas
Enviado por: Swaagg em 2013-06-06 18:43:45
http://cyborgtrading.com/ (http://cyborgtrading.com/)
Título: Re:Sugestões para Sistemas
Enviado por: Swaagg em 2013-06-06 18:45:17
Algorithms: The Shake, by Cyborg Trading Systems (http://www.youtube.com/watch?v=lO2x-EK2zvE#)
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-07-30 22:46:50
muitos dos programas aqui referidos não têm built-in a walk forward analysys
já ouvi falar que o traderstudio possui este atributo/função e talvez a tradingblox
alguém sabe de alguma plataforma que não custe os olhos da cara e que produza gráficos decentes, execute multi testes em multi mercados e multi time frames e execute de forma correcta uma walk forward analysis ?
o Metastock, que eu uso e vou provavelmente largar, não tem a não ser via add-in e os bons são caros
desde já o meu obrigado
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-30 23:08:34
o que sao multi-testes?

o amibroker tem walk-forward testing
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-07-30 23:54:27
o que sao multi-testes?

o amibroker tem walk-forward testing

eu queria dizer multi sistemas...erro meu
já realizaste algum walk forward no amibroker ? achas que é fiavel ? é que há algumas aplicações de walk forward que não são grande coisa
que tal é o amibroker em termos de linguagem de programação ?
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 00:25:08
muitos dos programas aqui referidos não têm built-in a walk forward analysys
já ouvi falar que o traderstudio possui este atributo/função e talvez a tradingblox
alguém sabe de alguma plataforma que não custe os olhos da cara e que produza gráficos decentes, execute multi testes em multi mercados e multi time frames e execute de forma correcta uma walk forward analysis ?
o Metastock, que eu uso e vou provavelmente largar, não tem a não ser via add-in e os bons são caros
desde já o meu obrigado

Penso que o Multicharts (http://www.multicharts.com/) faz o que queres e usa a Easy Language. Eu em tempos experimentei a trial e gostei bastante (mas também é verdade que vinha habituado ao velhinho Omegatrade Suite 2000).
O preço é que é capaz de estar no intervalo dos olhos da cara.  :D
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 01:00:40
o que sao multi-testes?

o amibroker tem walk-forward testing

eu queria dizer multi sistemas...erro meu
já realizaste algum walk forward no amibroker ? achas que é fiavel ? é que há algumas aplicações de walk forward que não são grande coisa
que tal é o amibroker em termos de linguagem de programação ?

o amibroker eh muito bom, a linguagem e super acessivel e o walk-forward funciona sem problemas, podes experimentar durante um mes gratuitamente

o problema eh q nao tem multi-sistema (no sentido de criar resultados de 2 sistemas ou mais combinados), essa eh a razao porque vou mudar provavelmente para  o quantshare. nao sei se o quantshare tem walk-forward mas se nao tiver estara quase a ter pois foi prometido em janeiro de 2013, ja enviei uma pergunta aos tipos sobre isso. de resto parece-me ser superior ao amibroker em tudo menos na velocidade. e ambos sao baratos.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 01:01:58
a linguagem do amibroker eh script vectorial, o quantshare tem a mesma alternativa e ainda c# para coisas mais complexas
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 01:05:48
muitos dos programas aqui referidos não têm built-in a walk forward analysys
já ouvi falar que o traderstudio possui este atributo/função e talvez a tradingblox
alguém sabe de alguma plataforma que não custe os olhos da cara e que produza gráficos decentes, execute multi testes em multi mercados e multi time frames e execute de forma correcta uma walk forward analysis ?
o Metastock, que eu uso e vou provavelmente largar, não tem a não ser via add-in e os bons são caros
desde já o meu obrigado

Penso que o Multicharts ([url]http://www.multicharts.com/[/url]) faz o que queres e usa a Easy Language. Eu em tempos experimentei a trial e gostei bastante (mas também é verdade que vinha habituado ao velhinho Omegatrade Suite 2000).
O preço é que é capaz de estar no intervalo dos olhos da cara.  :D


o problema eh o preco, o quantshare parece-me fazer praticamente o mesmo e estao prestes a lancar uma versao realtime event-based
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 01:30:39
A linguagem de programação é parecida com alguma outra ?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 01:32:57
A linguagem de programação é parecida com alguma outra ?

o quantshare? eh script language qs igual a do amibroker + c#
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 01:35:16
Thanks. Vou experimentar. Nunca usei o Amibroker.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 04:46:02
o quantshare tb tem walk-forward testing
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 12:17:34
Nunca experimentei o Tradingblox mas tem uma funcionalidade interessante que é a simulação Montecarlo (pelo menos tenho quase a certeza de que foi do Tradingblox que um trader me falou em tempos).
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 13:17:16
Estive a ver com mais detalhe as features do quantshare e saltou-me logo à vista que tem multiple time frames (http://www.quantshare.com/sa-121-technical-analysis-using-multiple-timeframes) o que é excelente. A ver se ainda hoje experimento.
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-07-31 13:46:20
penso que o tradersstudio e a trading blox tambêm têm multiple frame

bem...tenho agora além dos dois referidos o amibroker e o quant share graças ao Neo
obrigado "capitalist pig"  :D

agora é cruzar os atributos (onde as análises/simulações multi e a linguagem de programação têm ponderação acrescida) com os preços, pesquisar atentamente umas reviews (parece-me haver umas boas no elite trader) e apurar o vencedor
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 13:51:13
Nunca experimentei o Tradingblox mas tem uma funcionalidade interessante que é a simulação Montecarlo (pelo menos tenho quase a certeza de que foi do Tradingblox que um trader me falou em tempos).
mas ja viste o preco?
Título: Re:Sugestões para Sistemas
Enviado por: Automek em 2013-07-31 13:54:43
mas ja viste o preco?
Já, por isso é que nunca o experimentei, sequer.
O Multicharts na altura experimentei-o apesar de ser caro porque têm uma versão free (mas as limitações são tantas que nem vale a pena).
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 13:57:37
penso que o tradersstudio e a trading blox tambêm têm multiple frame

bem...tenho agora além dos dois referidos o amibroker e o quant share graças ao Neo
obrigado "capitalist pig"  :D

agora é cruzar os atributos (onde as análises/simulações multi e a linguagem de programação têm ponderação acrescida) com os preços, pesquisar atentamente umas reviews (parece-me haver umas boas no elite trader) e apurar o vencedor

o traderstudio eh super lento, se quiseres fazer optimizacoes demora 20x mais do que o amibroker (sem exageros), a sua utilizacao principal eh para auto-trading

Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-07-31 19:12:38
o amibroker tem money management totalmente programável ?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-07-31 20:12:33
o amibroker tem money management totalmente programável ?

para coisas mais complicadas nunca senti nenhuma limitacao embora possa ser confuso inicialmente e nao ha bons exemplos para seguir, tive de aprender sozinho
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-08-02 18:56:38
o quantshare tem montecarlo, muito fixe

eh sem duvida o melhor negocio que ja vi, comprei hoje
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-08-19 01:50:54
aproveito este espaço para pôr à vossa consideração e opinião a seguinte "polémica"

existe uma corrente de trading automático que acha que os sinais devem ser filtrados pelo trader pois este consegue perceber melhor que a máquina qual a interpretação do gráfico e momento do mercado

existe outra corrente de sistema automático que acha que o melhor a fazer é seguir todos os sinais pois só assim se fará a réplica dos resultados apurados pelos back testings

por qual alinham ?
Título: Re: First one, of course!
Enviado por: Lucky Luke em 2013-08-19 23:44:23
Essa é a diferença entre um sistema automático e um discricionário, e só em situações muito raras ou anormais é que se justifica a intervenção humana num sistema automatizado.

I am all for the machine... let it do the dull routine! :)


O mundo da realidade tem limites. O mundo da imaginação não tem fronteiras. - Jean-Jacques Rousseau
tudo bem...até posso concordar contigo no que respeita aos sinais mas e a colocação de stops, por exemplo, perto duma resistência ou suporte ou outra acção que implique reconhecimento de padrões gráficos....aqui uma mente humana experiente não poderá fazer melhor trabalho que uma máquina ?
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-08-20 00:23:13
A minha experiência diz, para quem não tem tempo para estudar todos os dias, que deve ser TUDO automático.
A nossa mente no discricionário não pode estar cansada por isto ou por aquilo... etc... já me aconteceu... que olhava e não estava a ver... aquela resistência... devido ao cansaço... no automático estes problemas são minimizados...

Mas fazer experiências e mais experiências ... tem de ser pelo menos 2 anos em papertrade... seja automático ou não...
ou então seguir o Apollo ou outro...

mesmo no automático (tem de se ir testando...) de repente algo que funcionou durante  5 anos ... deixou de funcionar... e temos de adapatar as estratégias... sistemas ... etc...
Título: Re:Sugestões para Sistemas
Enviado por: Asgard em 2013-08-26 22:28:26
9:29 NY
oil -1%
spy +0.5%
compra UAL, DAL, LCC MOO(Market On Open)
take profit >0.40$
stop loss <0.15$
0.5-5 minutes trade
funciona.
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-09-04 18:48:41
o quantshare tem montecarlo, muito fixe

eh sem duvida o melhor negocio que ja vi, comprei hoje
Hoje decidi fazer o trial.
Aquilo é bom, mas temos de perder muito tempo... aprendendo e fazendo.
Mas tem capacidades que ficam a léguas de muitos outros.

Mas parece não haver muitas pessoas a "falar" dele... o que achas?
Facilmente referem Meta, TradeStation, MultiCharts, Amibroker, Esignal, Ninja, ..e não este.

Para o quantshare onde vais buscar dados? Subscreveste algo?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-09-04 19:19:18
uso os dados gratuitos do quantshare, nao faltam

tambem podes usar a IB para intraday gratuitamente com o quantshare

as pessoas nao falam dele mas eh muito melhor do que qs tudo o que anda por ai menos os super caros, o mercado nao eh eficiente 
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-09-14 02:24:11
Citar
Kaeppel's Corner: The Greatest Gold Stock System You'll Probably Never Use

By Jay Kaeppel, Optionetics.com | Wed November 28, 2012 12:27PM PT

One of the great paradoxes of trading success is:

A) the need to develop a “method” (roughly defined as an entry and exit timing technique and some attendant money management and risk control measures in place) that has a realistic probability of making money in real time over the long run.

B) the need to avoid messing up the result of A by endlessly “tinkering” with it.

For many individuals this roughly equates analogy wise to either:

A) Wandering in the desert for 40 years.

B) Swerving endlessly from one lane to the next to try to get ahead.

For even once a trader ultimately settles on a winning approach there is always this haunting feeling that there is “something better” out there somewhere.  So there is a tendency to not “leave well enough alone.”  As a person who has unofficially tested approximately 10,362,123 trading systems (although that number seems a little low) all I can say is “trust me on this one.”  This by the way is a mistake.  More on this in a moment.

 

Logic Mistakes

For those new to the method development game there are also the inevitable “logic mistakes”.  Typically this is uncovered by the fact that you run a simulation of your newly devised trading system and it makes more money than you could ever dream of making.  After you allow the initial rush of euphoria to wash over you for just a few seconds you eventually find yourself saying something that involves “bad words.”  For you come to the grim realization that there is some flaw in your trading logic that improves results on paper that you could not actually experience in the real world (I hate that part).

Logic mistakes take many forms but as a youngster my favorite was writing a system so that it would allow you to buy or sell at yesterdays open after you see what happens in the market today.  Works fantastically well in back-testing.  Not so much in walk forward.

So what follows is my advice in terms of devising and settling on a trading “method.”

 

The Proper Way to Update an Existing Method

Step #1. Do whatever work you have to do to settle on something that you are comfortable using (i.e., when it gives a signal you actually follow it) and start putting it to use.

Step #2. DO NOT TINKER!!  As time goes by and you learn new things you will be tempted to retest things and see how your newfound knowledge might help or hinder performance.  That’s fine.  Set up a set interval for considering changes to your existing method. 

For example, once a month or once a quarter, etc.  But – repeating now – DO NOT TINKER with your method day in and day out.  If you are constantly tinkering with a method then you will never quite feel settled with it and sooner or later you will start to second guess things when you should simply be placing orders.

 

A Method for Trading GDX – Maybe?

So in the title of this week’s piece I mentioned a “great system” for trading ticker GDX, but also suggested that you will probably never use it.  What the heck is that all about?  Well, I read something recently by Laurence Connors and he pointed out the fact that over some given period of time the S&P 500 has gained far more from each daily close to the next day’s open than from each day’s open to that day’s close.

To state it more clearly, if you bought at the close every single trading day and sold at the next trading days open you would have made more than if every single trading day you bought at the open and sold at the close.  This of course seems somewhat counterintuitive since many traders are sort of preprogrammed to believe that holding a position “overnight” is far riskier than hold a position “intraday” and “exiting by the close.”

So somehow – must have been the end of a month – I tested this idea using ticker GDX, the exchange-traded fund that tracks the price of gold stocks.

The results were, well, “interesting”.

 

The GDX LC Method

Since I got the idea from Laurence Connors I’ll use his initials here in naming this method (although in all candor if it somehow becomes super popular I will undoubtedly change it from LC back to JK – sorry, it’s just my nature).  Ticker GDX started trading on 5/22/2006.

Test #1:

Buy 100 shares of GDX at the close of trading each and every single trading day.  Sell those shares at the open of the following trading day.

Test #2:

Buy 100 shares of GDX at the open each and every single trading day.  Sell those shares at the close of trading the same day.

The results appear in Figure 1.



Figure 1 - $’s gained using Test #1 (blue line) versus $’s lost using Test #2 (May 2006-Present)

 

The blue line in Figure 1 displays the dollars gained by buying GDX at the close each day and selling it at the following open.

The red line in Figure 2 displays the dollars lost by buying GDX at the open each day and selling at the close of that day.

For the record:

-The method of buying at the close and selling at the next open gained $12,154.

-The method of buying at the open and selling at the same day’s close lost -$11,131.

So to go one step further, Test #3 works as follows:

Step #1 - Day #1: Buy 100 shares of GDX each day at the close.

Step #2 - Every subsequent day: Sell short 200 shares of GDX each day at the open and then buy 200 shares of GDX at the close.

Repeat Step #2 ad infinitum.

The results of this method (long GDX overnight and short GDX intraday) appear in Figure 2.

 

Figure 2 – Long GDX at the close, short GDX at the open, repeat (100 shares since May 2006)

 

Summary

So who’s ready to sign on and start trading?  That’s kind off what I figured.  There are a few things to ponder here.  First off is the obvious fact that the results shown here do not take slippage or commissions into consideration. Obviously I you are paying commissions of any meaningful amount the results would deteriorate quickly due to the frequency of trading.

Secondly – and repeating now – this method is counterintuitive to what most traders are taught to think – that “overnight risk” is “bad” but intraday risk is OK.

So despite the compelling results as a standalone method this is something of “You First” method, as in, “you try it first and let me know how it works.”

The real lessons here may be:

-There can be an advantage to looking at things that seem counterintuitive for they represent ideas that most people are not looking at or considering.  If you are looking for an “edge” does it make more sense to look, a) where most people are looking, or b) not.

-The particular “raw” system that I detailed here may be a good starting point for some further tinkering.

Of course, I’ll have to wait until the end of the month.  My “No Tinkering Today” sign is up.

Jay Kaeppel

Staff Writer and Trading Strategist

Optionetics.com ~ Your Options Education Site
Testem lá...
Que raio de ideia!!
E adaptar para outros...
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-09-14 02:25:10
E esta:
Citar
This is a variation of Jay Kaeppel's post at optionetics but using some extra ETFs that have exhibited the same kind of behavior. Original article: [url]http://www.optionetics.com/market/articles/2012/11/28/kaeppels-corner-the-greatest-gold-stock-system-youll-probably-never-use[/url] ([url]http://www.optionetics.com/market/articles/2012/11/28/kaeppels-corner-the-greatest-gold-stock-system-youll-probably-never-use[/url])

It buys equal amounts of each of these 6 etfs: WOOD,GDX,EPU,IDX,PALL,JJG.
It buys on the close of the U.S.session, holds overnight and sells on the open the next day.
That's it.

Would you invest in this strategy?


E fico-me por aqui ... por uns tempos! Bons testes!
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-09-14 10:54:36
Citar
Kaeppel's Corner: The Greatest Gold Stock System You'll Probably Never Use

By Jay Kaeppel, Optionetics.com | Wed November 28, 2012 12:27PM PT

One of the great paradoxes of trading success is:

A) the need to develop a “method” (roughly defined as an entry and exit timing technique and some attendant money management and risk control measures in place) that has a realistic probability of making money in real time over the long run.

B) the need to avoid messing up the result of A by endlessly “tinkering” with it.

For many individuals this roughly equates analogy wise to either:

A) Wandering in the desert for 40 years.

B) Swerving endlessly from one lane to the next to try to get ahead.

For even once a trader ultimately settles on a winning approach there is always this haunting feeling that there is “something better” out there somewhere.  So there is a tendency to not “leave well enough alone.”  As a person who has unofficially tested approximately 10,362,123 trading systems (although that number seems a little low) all I can say is “trust me on this one.”  This by the way is a mistake.  More on this in a moment.

 

Logic Mistakes

For those new to the method development game there are also the inevitable “logic mistakes”.  Typically this is uncovered by the fact that you run a simulation of your newly devised trading system and it makes more money than you could ever dream of making.  After you allow the initial rush of euphoria to wash over you for just a few seconds you eventually find yourself saying something that involves “bad words.”  For you come to the grim realization that there is some flaw in your trading logic that improves results on paper that you could not actually experience in the real world (I hate that part).

Logic mistakes take many forms but as a youngster my favorite was writing a system so that it would allow you to buy or sell at yesterdays open after you see what happens in the market today.  Works fantastically well in back-testing.  Not so much in walk forward.

So what follows is my advice in terms of devising and settling on a trading “method.”

 

The Proper Way to Update an Existing Method

Step #1. Do whatever work you have to do to settle on something that you are comfortable using (i.e., when it gives a signal you actually follow it) and start putting it to use.

Step #2. DO NOT TINKER!!  As time goes by and you learn new things you will be tempted to retest things and see how your newfound knowledge might help or hinder performance.  That’s fine.  Set up a set interval for considering changes to your existing method. 

For example, once a month or once a quarter, etc.  But – repeating now – DO NOT TINKER with your method day in and day out.  If you are constantly tinkering with a method then you will never quite feel settled with it and sooner or later you will start to second guess things when you should simply be placing orders.

 

A Method for Trading GDX – Maybe?

So in the title of this week’s piece I mentioned a “great system” for trading ticker GDX, but also suggested that you will probably never use it.  What the heck is that all about?  Well, I read something recently by Laurence Connors and he pointed out the fact that over some given period of time the S&P 500 has gained far more from each daily close to the next day’s open than from each day’s open to that day’s close.

To state it more clearly, if you bought at the close every single trading day and sold at the next trading days open you would have made more than if every single trading day you bought at the open and sold at the close.  This of course seems somewhat counterintuitive since many traders are sort of preprogrammed to believe that holding a position “overnight” is far riskier than hold a position “intraday” and “exiting by the close.”

So somehow – must have been the end of a month – I tested this idea using ticker GDX, the exchange-traded fund that tracks the price of gold stocks.

The results were, well, “interesting”.

 

The GDX LC Method

Since I got the idea from Laurence Connors I’ll use his initials here in naming this method (although in all candor if it somehow becomes super popular I will undoubtedly change it from LC back to JK – sorry, it’s just my nature).  Ticker GDX started trading on 5/22/2006.

Test #1:

Buy 100 shares of GDX at the close of trading each and every single trading day.  Sell those shares at the open of the following trading day.

Test #2:

Buy 100 shares of GDX at the open each and every single trading day.  Sell those shares at the close of trading the same day.

The results appear in Figure 1.



Figure 1 - $’s gained using Test #1 (blue line) versus $’s lost using Test #2 (May 2006-Present)

 

The blue line in Figure 1 displays the dollars gained by buying GDX at the close each day and selling it at the following open.

The red line in Figure 2 displays the dollars lost by buying GDX at the open each day and selling at the close of that day.

For the record:

-The method of buying at the close and selling at the next open gained $12,154.

-The method of buying at the open and selling at the same day’s close lost -$11,131.

So to go one step further, Test #3 works as follows:

Step #1 - Day #1: Buy 100 shares of GDX each day at the close.

Step #2 - Every subsequent day: Sell short 200 shares of GDX each day at the open and then buy 200 shares of GDX at the close.

Repeat Step #2 ad infinitum.

The results of this method (long GDX overnight and short GDX intraday) appear in Figure 2.

 

Figure 2 – Long GDX at the close, short GDX at the open, repeat (100 shares since May 2006)

 

Summary

So who’s ready to sign on and start trading?  That’s kind off what I figured.  There are a few things to ponder here.  First off is the obvious fact that the results shown here do not take slippage or commissions into consideration. Obviously I you are paying commissions of any meaningful amount the results would deteriorate quickly due to the frequency of trading.

Secondly – and repeating now – this method is counterintuitive to what most traders are taught to think – that “overnight risk” is “bad” but intraday risk is OK.

So despite the compelling results as a standalone method this is something of “You First” method, as in, “you try it first and let me know how it works.”

The real lessons here may be:

-There can be an advantage to looking at things that seem counterintuitive for they represent ideas that most people are not looking at or considering.  If you are looking for an “edge” does it make more sense to look, a) where most people are looking, or b) not.

-The particular “raw” system that I detailed here may be a good starting point for some further tinkering.

Of course, I’ll have to wait until the end of the month.  My “No Tinkering Today” sign is up.

Jay Kaeppel

Staff Writer and Trading Strategist

Optionetics.com ~ Your Options Education Site
Testem lá...
Que raio de ideia!!
E adaptar para outros...
parece-me algo terrivelmente exposto a slippage e o slippage é algo que embora incontornável eu fugirei sempre como o diabo da cruz porque muito dificilmente o consegues quantificar para o incorporares nas contas dum sistema. o slippage é um dos motivos porque muito dificilmente eu algum dia terei um sistema que me dê como resultado muitos trades pois é em sistemas de daytrading ou de time frames muito curtos que estás mais exposto a slippage
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2013-09-15 14:39:01
Tens razão no slippage , mas mais para Daytrading. A minha abordagem não é  Daytrading.
E talvez mais no Forex, não?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-09-15 18:58:26
alguem experimentou o quantshare? o que acharam ?
Título: Re:Sugestões para Sistemas
Enviado por: Lucky Luke em 2013-09-15 20:39:17
alguem experimentou o quantshare? o que acharam ?
ainda não tive tempo para me debruçar sobre isso
e tu, continuas adepto ?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-09-16 11:43:16
sim, a linguagem tem la coisas mais poderosas que o amibroker
Título: Re:Sugestões para Sistemas
Enviado por: Guloso em 2013-09-16 12:11:25
alguem experimentou o quantshare? o que acharam ?

Fiz o trial. Fiquei bem impressionado. Mas ainda não mudei. Requer um consideravel investimento de tempo, que de momento não tenho.
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-09-16 13:04:11
alguem experimentou o quantshare? o que acharam ?

Fiz o trial. Fiquei bem impressionado. Mas ainda não mudei. Requer um consideravel investimento de tempo, que de momento não tenho.

qual eh o que usas agora?
Título: Re:Sugestões para Sistemas
Enviado por: Guloso em 2013-09-17 09:15:54
alguem experimentou o quantshare? o que acharam ?

Fiz o trial. Fiquei bem impressionado. Mas ainda não mudei. Requer um consideravel investimento de tempo, que de momento não tenho.

qual eh o que usas agora?

Por incrível que pareça, desde que larguei o Meta, só uso Excel.  ;D

Conheces algum site, para testar sistemas com opções (histórico)?
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2013-09-19 22:40:13
Ola Rui,

em que consiste o teu sistema do GDX para eu testar? comprar no close e vender no open ? todos os dias ou so alguns?
Título: Re:Sugestões para Sistemas
Enviado por: Mystery em 2013-09-20 12:18:07
Citar
Sempre longo no overnight e sempre curto no intraday.

Isso não é uma estratégia, é um prémio de risco. Estás a receber um prémio para assumir risco overnight.

o skewness é bem negativo

tipo saltitar em frente a um rolo compressor para apanhar moedas de 1 cêntimo...
Título: Re:Sugestões para Sistemas
Enviado por: Incognitus em 2013-09-20 12:44:03
Sempre que entras no mercado estás a assumir um risco. O mercado a longo prazo sobe e remunera esse risco. Aparentemente a piada está em que o mercado faz TODA a subida na sessão overnight, ou seja, estar longo durante o dia não paga - só estar longo à noite o faz.
Título: Re:Sugestões para Sistemas
Enviado por: Mystery em 2013-09-20 15:47:32
não é a questão de assumir o risco que está em questão. o que está em questão é se o risco que se está a assumir tem skewness positivo/negativo e qual a correlação com o mercado em momentos de queda.
Título: Re:Sugestões para Sistemas
Enviado por: soaked em 2013-09-23 18:57:13
Rui Vaz antes de mais muito obrigado pelos testes aos ETF e descrição detalhada.

Uma vez que se disponibilizou para fazer o mesmo "backtest" a outros instrumentos, posso-lhe pedir que faça
a mesma simulação aos ETF's:
NUGT e DUST.


Muito agradecido.
Um abraço.




Título: Re:Sugestões para Sistemas
Enviado por: soaked em 2013-09-25 19:51:16
Rui Vaz, um Muito Obrigado pelas analises.

Bem sei que os dados para "backtest" são pequenos de qualquer maneira dá para ir tendo uma ideia da evolução do modelo nestes ETF's e a ver vamos se no futuro se mantem viável este método de negociação nos mesmos.

Um abraço.
Título: Re:Sugestões para Sistemas
Enviado por: JoaoAP em 2014-02-09 16:16:12
Citar
Here is a capsule of How to design a Profitable Trading System:

·  observe market inefficiency to exploit (lots of reading, research and watching markets/charts)

·  quantify how to exploit the inefficiency

·  create exact rules for entries and exits

·  determine inputs needed and whether they will be fixed, adjust to market, or be re-optimized on a periodic walk-forward basis.

·  write the strategy code (and/or indicator for visualization) and apply to a chart of out of sample data. this data could be from a symbol you never plan to trade, or from 15 years ago on the symbol you do want to trade, or for the past 30 days knowing this period will never be valid for testing results (I many times use this period when I'm testing something I've noticed in the charts). All of this is to ensure you have the strategy coded correctly, AND you are not using data you are going to test on.

·  determine measure(s) of strategy being successful (net profit, profit/drawdown ratio, expectancy, sharpe ratio, average trade net profit, etc.)

·  determine commission and slippage needed for accurate results and be conservative. For example, say your round-turn commission is $4.70 and you expect less than a tick slippage each side (entry and exit), I would use $5 for commission and 1 tick slippage each side).

·  test on in-sample data and DO NOT test on out-of-sample data. For example, say you are testing a strategy on the ES (S&P 500 emini futures), you could use 1998-2003 for in-sample. If the strategy fails here YOU ARE DONE with this strategy - move on to the next one. Or maybe adjust the strategy rules a little bit and determine the method for re-optimizing some of the parameters going forward.

·  walk-forward test the strategy on a portion of the next data (2004-2006 in our example). If the strategy fails here YOU ARE DONE with this strategy - move on to the next one. Seriously! If you keep tweaking you are just over-fitting and you will not get real-time results that are similar to the backtest.

·  if the strategy has passed all measures to this point then you might have something (yes I'm saying there is a chance ;-) the odds are still against us) AND everything about the strategy is finalized (no more tweaks!), then you can walk-forward on your pure out-of-sample data. This is it, the last straw, if it works it works, if it doesn't it doesn't. You can't go back! Put your seat belt on, hope for the best, and be ready to be completely disappointed.

·  if this is the 1 of 100 (or 1000) that passes all the testing, then test it live (in simulation or small amount of real money) to make sure code is correct for live (real!) trading.

·  once satisfied it is working correctly then determine your position sizing based on your risk control (topic for another day) and start trading with real money.

·  monitor your trading based on the measures you originally created and STOP trading the system when it fails to pass these measures.

·  now start over with your next strategy....
Título: Re:Sugestões para Sistemas
Enviado por: Mancha em 2014-09-21 11:18:31
Bom dia, alguém disponível para testar um sistema para o S&P 500 com dois indicadores e para entrar apenas longo, coisa muito simples, mas com bom aspecto, ou no mínimo fazer um backteste?

 
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2014-09-21 12:23:38
Bom dia, alguém disponível para testar um sistema para o S&P 500 com dois indicadores e para entrar apenas longo, coisa muito simples, mas com bom aspecto, ou no mínimo fazer um backteste?

barras diarias? posso fazer isso, manda pm ou coloca aqui as regras
Título: Re:Sugestões para Sistemas
Enviado por: Mancha em 2014-09-21 12:43:32
Bom dia, alguém disponível para testar um sistema para o S&P 500 com dois indicadores e para entrar apenas longo, coisa muito simples, mas com bom aspecto, ou no mínimo fazer um backteste?

barras diarias? posso fazer isso, manda pm ou coloca aqui as regras

Estou bloqueado, não aceitas a minha msg privada  8)
Título: Re:Sugestões para Sistemas
Enviado por: Zel em 2014-09-21 12:55:08
Bom dia, alguém disponível para testar um sistema para o S&P 500 com dois indicadores e para entrar apenas longo, coisa muito simples, mas com bom aspecto, ou no mínimo fazer um backteste?

barras diarias? posso fazer isso, manda pm ou coloca aqui as regras

Estou bloqueado, não aceitas a minha msg privada  8)

ja deve funcionar
Título: Re:Sugestões para Sistemas
Enviado por: Mancha em 2014-09-21 13:36:16
Bom dia, alguém disponível para testar um sistema para o S&P 500 com dois indicadores e para entrar apenas longo, coisa muito simples, mas com bom aspecto, ou no mínimo fazer um backteste?

barras diarias? posso fazer isso, manda pm ou coloca aqui as regras

Estou bloqueado, não aceitas a minha msg privada  8)

ja deve funcionar

Já enviei ...