среда, 2 мая 2018 г.

Trading system spreadsheet


Excel Spreadsheets Abaixo estão os arquivos de planilha que devem ser compatíveis com Excel 97 e versões superiores. O cenário pára a maneira Bayesiana, junho de 2013 Folha de cálculo usada para demonstrar como os níveis de parada funcionam e quanto o risco de várias regras de decisão o deixa levar como referenciado na história de junho de 2013 por Burton Rothberg. A zona de conforto de put e call, maio de 2009 Estas planilhas incluem os modelos de preços LLP referenciados na história de Techniques de negociação de maio de 2009 por Paul Cretien. Construindo um melhor estrangulamento, março de 2009 Estas planilhas incluem os modelos referenciados na história de Techniques de Negociação de março de 2009 por Paul Cretien. Eles também devem ser usados ​​no lugar das planilhas de trabalho anteriormente associadas às histórias da Creusta Trading Techniques. Calibração de estratégias de lucros e perdas, fevereiro de 2009 Esta planilha inclui os modelos referenciados na história de técnicas de negociação de novembro de 2009 por Michael Gutmann. Comparando modelos de preços de opções Essas planilhas incluem os modelos referenciados na história de Techniques de negociação de junho de 2008 por Paul Cretien. Eles também devem ser usados ​​no lugar das folhas de trabalho anteriormente associadas à história do Cretiens September 2006 Trading Techniques. Comparando modelos de preços de opções Essas planilhas incluem os modelos referenciados na história de técnicas de negociação de setembro de 2006 por Paul Cretien. Estatísticas de desempenho de padrões Essas planilhas incluem mais das estatísticas de desempenho referenciadas neste artigo sobre o comércio sistemático baseado em padrões. Artigo de referência: padrões de negociação na areia, novembro de 2004. Resumo do desempenho I Primeira planilha que mostra o resumo de desempenho completo discutido no artigo. Artigo de referência: Reversões de lucros em ações e títulos, fevereiro de 2004. Resumo de desempenho II Segunda planilha mostrando o resumo de desempenho completo discutido no artigo. Artigo de referência: Reversões de lucros em ações e títulos, fevereiro de 2004. Planilha de preços de opções Esta planilha incluiu folhas de cálculo para cada uma das opções nulas e a chamada coberta. Artigo de referência: Abrangendo opções, março de 2003. Planilha de preços de opções Esta planilha usa o modelo Black-Scholes para fornecer preços teóricos para opções de colocação e chamada. Artigo de referência: Novas opções no aumento do seu patrimônio líquido, outubro de 2002. Tabela de correspondência A matriz de correlação completa que retrata as relações de retorno entre as ações do mesmo e do setor cruzado. Artigo de referência: dois podem ser melhores do que um, em setembro de 2002. Calculadora de vantagens matemáticas Folha de cálculo para calcular os resultados esperados, vantagem matemática e retorno anual para um comércio de opções, considerando os pressupostos de entrada. Artigo de referência: Determinando os resultados esperados de um comércio de opções, agosto de 2002. Calculadora de estado do mercado Folha de cálculo para determinar o estado do mercado, conforme definido em Ouvir os mercados, nota por nota, julho de 2002. Calculadora de Raias Folha de cálculo para analisar as tendências dos preços, como Explicado em Streaking os preços podem ser reveladores, em abril de 2002. Calculadora Fibonacci Uma ferramenta para a aplicação da análise Fibonacci tanto para futuros quanto para ações. Artigo de referência: negociação com retracões Fibonacci, fevereiro de 2002. Ferramenta de retração Esta planilha executa automaticamente os cálculos de retração descritos na conexão Elliott-Fibonacci, outubro de 2001. Aplicação de gerenciamento de dinheiro Esta planilha implementa a técnica de gerenciamento de dinheiro discutida em 3x1Mais do que você pensa, dezembro de 1999 Tabela de classificação de software Uma planilha que permite aos usuários criar classificações personalizadas do software de negociação revisado no lançamento do software Day-trading, Special Issue 1999. Calculadora de força de mercado Folha de cálculo mostrando técnicas para jogar tanto a longo prazo quanto a curto prazo. Artigo de referência: Skimming the trend, fevereiro de 1999. Ferramenta de medidas repetidas Folha de cálculo aplicando análises de medidas repetidas detalhadas em Out of sample, fora de contato, janeiro de 1999. Dados ajustados por proporção, gráficos Essas planilhas incluem os gráficos e dados usados ​​para este artigo na avaliação Sistemas que utilizam dados ajustados em razão. Artigo de referência: Verdade seja dita, janeiro de 1999. Exemplo de Datamining Esta planilha inclui os gráficos e dados utilizados para Trabalhar em uma mina de carvão, em janeiro de 1999, bem como dados adicionais fora da amostra não mostrados no artigo. Calculadoras de tamanho de negociação Cálculos para o escore z, correlação e métodos f ótimos de gerenciamento de dinheiro, conforme descrito em Pontuação alta e baixa, abril de 1998. Folha de cálculo da banda Bollinger Folha de cálculo que calcula as faixas de Bollinger. Artigo de referência: as bandas de Bollinger são mais do que conhecem os olhos, novembro de 1997. Folha de cálculo do MACD crossover, que calcula o preço do amanhã, que levaria o MACD a atravessar amanhã. Artigo de referência: Sinal do crossover, outubro de 1997. Cálculo da planilha de previsão do cronômetro EMA que calcula o preço para o futuro que causaria uma média móvel exponencial de nove períodos e uma EMA de 18 períodos para atravessar amanhã. Artigo de referência: Operador suave, setembro de 1997. Calculadora RSI Folha de cálculo que calcula o oscilador de força relativa. Artigo de referência: Construindo uma melhor armadilha de velocidade, maio de 1997. Calculadora estocástica Folha de cálculo que calcula o oscilador estocástico. Artigo de referência: Construindo uma melhor armadilha de velocidade, maio de 1997. Calculadora Williams R Calculadora que calcula o oscilador Williams R. Artigo de referência: Construindo uma melhor armadilha de velocidade, maio de 1997. Calculadora Momentum Folha de cálculo que calcula o oscilador momentum. Artigo de referência: Uma arma de radar no preço, abril de 1997. Calculadora da taxa de mudança Folha de cálculo que calcula o oscilador da taxa de troca. Artigo de referência: Uma arma de radar no preço, abril de 1997. Calculadora MACD Folha de cálculo que calcula o oscilador de convergência-divergência em média móvel. Artigo de referência: uma arma de radar no preço, abril de 1997. Sistemas de atualização, alertas e negociação automatizada nesta página Nas versões recentes do Sierra Chart, renomeamos o livro de trabalho e a planilha para a planilha. Os 3 estudos da planilha já foram renomeados e começam com o nome Folha de cálculo. O Estudo da Planilha foi renomeado para Estudo de Folha de Cálculo. Esta documentação usa o termo Folha de Cálculo. Na versão do Sierra Chart que você está executando, você pode se referir aos nomes do estudo começando com a planilha de nome antigo. Informações gerais O estudo Spreadsheet System / Alert e o estudo Spreadsheet System for Trading podem ser usados ​​para criar um Sistema de Negociação ou um Alerta para o seu gráfico. Um sistema comercial ou um alerta significa regras que você define, o que fornecerá sinais de compra ou venda quando as regras forem verdadeiras para uma barra particular no gráfico. Esses sinais serão exibidos como indicações gráficas no gráfico, exibir linhas de alerta de texto e alertas sonoros. No caso do estudo Spreadsheet System for Trading, também serão fornecidas ordens comerciais reais. Um alerta refere-se ao sinal dado quando suas regras de Sistema / Alerta são verdadeiras na última barra. Tudo isso é descrito com mais detalhes abaixo. Se você está apenas interessado em obter um alerta quando sua condição for verdadeira no final do gráfico e você não precisa ver indicações gráficas históricas no gráfico, então, na maioria dos casos, você simplesmente pode usar o recurso Alerta simples. E não se preocupe em usar os estudos de planilha mais avançados. A diferença entre o estudo do Spreadsheet System for Trading em comparação com o estudo Spreadsheet System / Alert, é que o estudo Spreadsheet System for Trading possui uma lógica muito mais avançada para a criação de um sistema de negociação. Com o estudo do Spreadsheet System for Trading, você pode realizar testes de volta e gerar sinais comerciais reais que serão simulados ou podem ser enviados para o seu serviço de negociação. Por padrão, eles sempre serão simulados. Mesmo se você realmente não quiser colocar pedidos ao vivo com o estudo do Spreadsheet System for Trading, e você quer apenas criar um sistema e testá-lo novamente, ou simplesmente deseja colocar trocas manualmente a partir dele, você ainda quer usar a Folha de Cálculo System for Trading study, em vez do estudo Spreadsheet System / Alert. Se você simplesmente quiser criar um Sistema simples ou um Alerta Avançado para dar uma indicação quando suas regras retornarem TRUE, então você quer usar o estudo Spreadsheet System / Alert. Criar um Sistema / Alerta é realizado digitando uma Fórmula de Condição nas colunas de fórmulas na Folha de Cálculo. Esta Fórmula de Condição pode acessar o preço e os dados de estudo (Os dados do Estudo são emitidos começando na coluna AA por padrão e dependem do Número de Entrada de Colunas de Fórmula). Esta fórmula de condição será aplicada em todo o gráfico de preços. Ele será monitorado continuamente e também pode ser escaneado (você não deve fazer negociação automatizada a partir de uma varredura). Esta fórmula de condição é usada para fornecer uma indicação de quando uma determinada condição é TRUE para qualquer coluna / barra de gráfico. Essas indicações são usadas para criar um sistema comercial ou um alerta. Não há diferença entre o modo como Sierra Chart faz sistemas e alertas. Ambos fornecem indicações gráficas, de texto e audíveis quando a sua Fórmula de condição é VERDADEIRA. Apesar disso, uma mensagem de texto, som audível e um sinal de comércio, no caso do estudo do Spreadsheet System for Trading, somente são fornecidos quando uma fórmula de condição retorna TRUE na última coluna no gráfico. Além disso, quando uma Fórmula de condição é VERDADEIRA na última coluna do gráfico, uma marca será exibida na frente do nome do estudo e o nome do estudo será destacado em vermelho. O texto da mensagem de alerta e o som de alerta sonoro são o que constitui uma indicação de alerta. No caso do estudo Spreadsheet System for Trading, um sinal comercial e um alerta não são necessariamente fornecidos quando a Fórmula de condição em uma das colunas de fórmula Comprar / Vender Entrada / Saída retorna TRUE na última coluna no gráfico. Existe outra lógica que é aplicada e outras condições devem ser atendidas. Tudo isso é explicado nesta página. Além disso, no caso do estudo do Spreadsheet System for Trading, se sua fórmula de condição retornar TRUE na última coluna no gráfico, ela será ignorada se os dados estiverem sendo baixados no gráfico ou quando o gráfico for totalmente recalculado. Estes são métodos de segurança para evitar que trocas sejam dadas involuntariamente, no caso em que o Sierra Chart não está no Modo de Simulação Comercial. O Sierra Chart fornece um alerta de texto para sua Fórmula de Condição quando se torna VERDADEIRO adicionando uma mensagem detalhada ao Registro de Alertas. Para abrir o Registro de alertas, selecione Janela gtgt Alerts Manager gtgt Alerts Faça logon no menu. Se a condição for TRUE em uma coluna / barra de gráfico diferente da última coluna do gráfico, então apenas uma indicação gráfica é fornecida. Criando um Sistema ou Alerta Esta seção aplica-se ao estudo Spreadsheet System / Alert. Siga as instruções passo a passo do Estudo da Planilha. Ao seguir essas instruções e chegar ao passo para adicionar o estudo ao gráfico, certifique-se de adicionar, em vez disso, o estudo Spreadsheet System / Alert. Quando você chegar ao passo onde você inseriu uma fórmula, insira sua Fórmula de condição de sistema / alerta. Consulte a seção de Exemplos abaixo, por exemplo, Spreadsheet System / Alert Condition Formulas. No caso do estudo Spreadsheet System / Alert, os resultados da fórmula da planilha serão exibidos na principal área do gráfico de preços (Gráfico Região 1) do gráfico e desenhados com os estilos de seta para cima / para baixo por padrão. O Estilo de desenho pode ser alterado através das configurações de Subgrafias na guia Subgrafias da janela Configurações de Estudo para o Estudo do Sistema de Planilhas / Alertas. Para obter instruções, consulte Adição / Modificação de estudos. As fórmulas na planilha devem retornar um valor 1 (TRUE) ou 0 (FALSE). Um valor de 1 ou VERDADEIRO indica que a condição da fórmula Sistema / Alerta foi atendida. Por exemplo: Digite ID0.SG43 lt 100 na linha 3 da coluna de fórmula K para configurar um alerta de Entrada Long quando o preço de fechamento for inferior a 100. Coluna de Entrada Longa A coluna K é a coluna de Entrada Longa. Se uma célula nesta coluna for VERDADEIRA (1), então, uma seta para cima (depende do estilo de desenho do subgrupo) será desenhada no gráfico no valor baixo da barra correspondente para indicar uma entrada longa para essa barra. Coluna de saída longa A coluna L é a coluna de saída longa. Se uma célula nesta coluna for VERDADEIRA (1), então uma seta para a esquerda (dependendo do estilo do desenho do subgrupo) será desenhada no gráfico no alto valor da barra correspondente para indicar uma saída longa para essa barra. Coluna de entrada curta A coluna M é a coluna Entrada curta. Se uma célula nesta coluna for VERDADEIRA (1), então, uma seta para baixo (depende do estilo de desenho do subgrupo) será desenhada no gráfico no alto valor da barra correspondente para indicar uma entrada curta. Coluna de saída curta A coluna N é a coluna de saída curta. Se uma célula nesta coluna for VERDADEIRA (1), então uma Seta Direita (depende do Estilo de Desenho Subgráfico) será desenhada no gráfico no valor baixo da barra para indicar uma Saída Curta. Outras colunas Quando graficar colunas que não sejam K. EU . M. Ou N com um Estilo de Draw visível, o valor de retorno da Fórmula de Condição deve estar dentro do intervalo de valores do gráfico de preço principal em que seu estudo está sobreposto. Caso contrário, a exibição do subgrupo afetará negativamente a exibição do gráfico. Não há tradução automática de TRUE (1) ou FALSE (0) para valores de barra alta e baixa, a partir das colunas de fórmula O e superior. Uma fórmula de exemplo que você pode usar para colunas de fórmula O e superior é IF (ID0.SG43 gt 100, C3, 0). Alterando nomes de colunas acima são os nomes de coluna de fórmula de sistema / alerta padrão. Você pode renomear as colunas na linha 2 na Folha e usá-las para qualquer tipo de condição. Para renomear uma coluna, clique duas vezes na célula com o nome na linha 2 e digite um novo nome. Controlando a localização das setas ou valores de subgrupo Você também pode retornar valores diferentes de TRUE (1) ou FALSE (0) em suas fórmulas de condição de sistema / alerta. Se o valor retornado pela fórmula não for TRUE (1) ou FALSE (0), a seta será desenhada no valor que a fórmula retornará ao usar as colunas K. EU . M. Ou N ao usar o estudo Spreadsheet System / Alert. Para as colunas de fórmula O e mais altas, as setas do Subgrafo ou qualquer que seja o estilo do Draw, serão sempre desenhadas pelo valor retornado da fórmula. Quando você está usando o estudo Spreadsheet System / Alert, você pode verificar os resultados VERDADEIROS das fórmulas de condição do Sistema ou Alerta entre uma lista de símbolos. Para obter mais informações, consulte a documentação dos comandos do Menu Digitalizar. Criando um sistema de negociação para negociação automatizada interrompendo a entrada na ordem Se você estiver usando o estudo do Spreadsheet System for Trading em uma conta Live e enviando pedidos para o serviço comercial negociado, e você deseja interromper a entrada da ordem por qualquer motivo, você pode fazer qualquer uma das Seguindo: Habilite o Modo de Simulação Comercial, certificando-se de que exista uma marca de seleção pelo Modo de Simulação Comercial do comércio. Defina o envio de Encomendas de Pedidos ao Serviço de Comércio, com o Estudo do Plano de Cálculo para Negociação, para NO. Defina a célula Disable Auto Trading na folha na planilha usada pelo estudo Spreadsheet System for Trading, para TRUE. Desative o comando Trade gtgt Auto Trading Enabled. Passos para criar um sistema de negociação para negociação automatizada Primeiro certifique-se de que a negociação automática está habilitada. Certifique-se de que há uma marca de seleção pela Trade gtgt Auto Trading habilitada no menu. Certifique-se de que exista uma marca de seleção no Modo de simulação de comércio comercial no menu. Isto é para que as encomendas não sejam enviadas para o seu serviço comercial. Em vez disso, todos os negócios serão simulados. Além disso, o envio de Encomendas de Envio ao Serviço de Comércio com o Estudo do Plano de Cálculo para Negociação deve ser definido como Não. Isso também impede que os pedidos sejam enviados para o serviço de comércio conectado. Com estas duas configurações, existem duas camadas de proteção contra o envio de pedidos reais. Para detalhes completos, consulte SendOrdersToTradeService. Vá para um gráfico aberto ou abra um gráfico com File Gtgt Find Symbol. Habilite o Modo de Comércio de Gráficos de Trade gtgt. Selecione Trade gtgt Anexe Trade Window to Chart. Quando o modo de negociação de gráfico é ativado em um gráfico, você verá as Ordens e a posição do seu sistema de negociação automatizado exibido no gráfico. Ao anexar a janela de comércio ao gráfico, você terá um painel de controle de negociação completo disponível para tomar as ações manuais que você precisa e para definir as Ordens anexadas. Mais detalhes podem ser encontrados na documentação da Trading Chart. Selecione Analysis gtgt Studies no menu. Selecione Spreadsheet System for Trading na lista de estudos disponíveis à esquerda. Não confunda este estudo com o Estudo de Folha de Cálculo ou os estudos do Sistema de Planilhas / Alertas. Pressione o botão Adicionar para adicionar o Estudo de planilha para o estudo de comércio na lista Estudos para gráficos. Para este exemplo, adicione também o estudo chamado Moving Average-Simple. Você não precisa mudar as configurações para este estudo, os padrões são aceitáveis. Criaremos um sistema que irá Comprar quando o preço atual se mover acima de uma média móvel e Vender quando o preço atual se mover abaixo de uma média móvel. Isso é apenas um exemplo dessas instruções. Este não é necessariamente um sistema de negociação prático para uso real. Se desejar criar um sistema diferente desse exemplo usando outros estudos, adicione-os ao gráfico agora se você ainda não os adicionou. Ajuste as configurações conforme você exige para cada estudo. Destaque o sistema de planilha para estudos de comércio na caixa de listagem Estudos para gráficos. Pressione o botão Configurações. Na janela Configurações Específicas do Estudo na guia Configurações e Entradas, há uma caixa de texto para o Nome da Planilha (inferior esquerda). Digite um nome na caixa de texto sem uma extensão de arquivo. Este é o nome da planilha que será aberta ou criada para conter os dados e as fórmulas. O nome deve estar relacionado ao que seu sistema personalizado fará. Para receber as ordens enviadas para o sistema de Simulação comercial interno da Sierra Chart, a entrada Enviar Encomendas ao Comércio deve ser definida como Não. Para enviar sinais de ordem para o serviço de comércio conectado, a entrada Enviar Encomendas para Serviço de Comércio precisa ser definida como Sim e você também precisa desativar o Modo de Simulação de comércio comercial no menu. Para detalhes completos, consulte SendOrdersToTradeService. Na lista de entrada, você encontrará na entrada denominada Posição máxima permitida na mesma direção. Configure essa entrada conforme você precisar. É a posição máxima em ações ou contratos que é permitido. As outras entradas são corretas como são para este exemplo. Para obter mais informações sobre todas as entradas, consulte Entradas que são específicas para sistemas, alertas e negociação automatizada. Na lista de entradas de estudo disponíveis, você verá entradas denominadas Alerta da Coluna K-Z. Defina estes para o Número de som de alerta que deseja ouvir quando a Fórmula de condição de sistema / alerta na coluna correspondente for VERDADEIRA na última barra. Para obter mais informações, consulte Som para alertas sonoras e notificações de mensagens de e-mail. Pressione o botão OK na janela Configurações técnicas do estudo. Pressione o botão OK na janela Estudos do gráfico. A planilha será aberta em segundo plano. Acesse ele selecionando CW no menu. O nome da planilha será listado e pode ser selecionado. O nome será o que você especificou na janela Configurações do Estudo para o estudo. Uma planilha contém várias folhas. O número da folha em que os dados são emitidos é o mesmo número da folha que o número do gráfico. Por exemplo, o gráfico 2 será enviado para Folha2 na Folha de Cálculo. A Folha pode ser selecionada com a caixa de listagem na parte superior esquerda da Folha de Cálculo. Todos os estudos de gráficos individuais também são emitidos para a mesma folha começando na coluna AA (o padrão ao usar 16 colunas de fórmula). Selecione a Folha na caixa de listagem na parte superior esquerda da janela da Planilha que corresponde ao Número do gráfico que contém o estudo do Spreadsheet System for Trading. Defina a célula J26 (Quantidade de Pedido) para o número de ações ou contratos que deseja trocar quando um pedido for enviado. Isso também pode ser definido como 0 e a quantidade da ordem será determinada a partir da janela de comércio do gráfico. Todas as novas ordens usam as configurações da janela de comércio para o gráfico. Vá para o gráfico que contém o estudo Spreadsheet System for Trading. Selecione Trade Gtgt Open Trade Window para Chart para ver quais são as configurações definidas. Por exemplo, se o Time in Force estiver configurado para Day. Todas as novas encomendas enviadas a partir da Planilha terão automaticamente um Tempo em Força de Dia. As configurações que você pode configurar na Janela de Comércio também incluem Ordens Anexas. Para obter instruções completas para encomendas anexadas, consulte a página Encomendas anexadas. As etapas a seguir fornecem um exemplo de um sistema de negociação usando fórmulas de planilha. As inscrições de entrada e venda são fornecidas. Para comprar quando o último preço cruza abaixo da média móvel, digite a célula K3 (rotulada: Entrada de compra): CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14) Onde ID0.SG43: ID0.SG44 Refere-se aos últimos preços de câmbio atuais e anteriores das barras de gráfico e ID2.SG13: ID2.SG14 refere-se à Média de Movimento atual e anterior - Valores de estudo simples que estão localizados na coluna AA. Em todos os lugares nas fórmulas de exemplo nesta página, o ID2 pode precisar ser alterado para o número de identificação real usado pelo estudo da Média em Movimento. Você pode ver o número de identificação real na linha 1 na coluna à qual o estudo é emitido. Consulte a imagem abaixo: Você também pode opcionalmente usar: AND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), J80) J8 é a quantidade de posição comercial atual. Isso pode ser usado para verificar se a posição está plana antes de entrar no mercado. A lógica de negociação automática subjacente verifica isso, mas pode ser verificada na sua fórmula para evitar mensagens desnecessárias para o Trade Trade Log Log Log. A desvantagem é que você não pode ver no gráfico seu histórico comprar e vender setas de sinal sem executar um teste de volta. Para uma compreensão de referências como ID2.SG43. Consulte Referências para estudar as colunas do subgrupo ao usar o Estudo da planilha. Para vender quando o último preço cruza da média móvel acima, digite a célula M3 (rotulada: Entrada de venda): CROSSFROMABOVE (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14) Onde ID0.SG43: ID0.SG44 Refere-se aos últimos preços de câmbio atuais e anteriores das barras de gráfico e ID2.SG13: ID2.SG14 refere-se à média móvel atual e anterior - valores simples que estão localizados na coluna AA. Você também pode usar opcionalmente: AND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), J80) J8 é a quantidade de posição comercial atual. Isso pode ser usado para verificar se a posição está plana antes de entrar no mercado. A lógica de negociação automática subjacente verifica isso, mas pode ser verificada na sua fórmula para evitar mensagens desnecessárias para o Trade Trade Log Log Log. A desvantagem é que você não pode ver no gráfico seu histórico comprar e vender setas de sinal sem executar um teste de volta. Usando essas fórmulas, quando o último preço cruza abaixo da média móvel, o K3 (Entrada de Compra) desencadeará uma ordem Comprar, e quando o último preço atravessar acima da média móvel, o M3 (Entrada de Vendas) desencadeará uma ordem de venda. Padrão, apenas uma ordem pode ser enviada até que um sinal de saída correspondente seja fornecido. Portanto, se já houve uma Entrada de Compra, todos os outros sinais de Entrada de Compra serão ignorados até que a fórmula de Sair de Compra se torne VERDADEIRA e desencadeia uma Vender ou a Posição é achatada por outro método. Se já tiver havido uma Entrada de Venda, todos os outros sinais de Entrada de Vendas serão ignorados até que a fórmula Vender Sair se torne VERDADEIRA e desencadeia uma Compra ou a Posição Curta seja achatada por outro método. Este comportamento é controlado com a opção Permitir várias entradas na mesma entrada de direção. Se a opção Permitir Entrada Oposta com Posição Oponente ou Entrada de Pedidos estiver definida como Sim. Qual é o padrão, então, se houver uma posição longa, então uma entrada de venda pode sair dessa posição. O mesmo com uma Posição Curta e Entrada de Compra. Se você tem várias condições para o seu sistema de negociação, então você precisará usar a função AND (). Por exemplo, se você tiver um estudo RSI (Índice de Força Relativa) no gráfico e os dados são enviados para a coluna AC na Folha e você deseja combinar isso com o estudo da Média Mover, use uma fórmula semelhante à da Compra Entrada: AND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), ID3.SG13 lt 40). ID3.SG13 faz referência ao estudo RSI assumindo que ele possui um ID de estudo de 3. Para obter mais informações, consulte Referências para Estudar Subgrupo Colunas ao usar o Estudo de Planilha. Neste exemplo, criaremos uma saída de compra (Vender) que sai de uma posição quando um valor Stop ou Target for atingido. A Buy Exit é opcional. Uma entrada de venda pode fechar uma posição criada por uma entrada de compra. Ou, a posição pode ser fechada manualmente ou com uma ordem anexada. Neste exemplo, estamos usando uma fórmula de saída de compra para mostrar uma estratégia de saída gerenciada completamente pelo estudo do Spreadsheet System for Trading. Na célula L3 (rotulada: Buy Exit), digite OR (AND (J8 gt 0, ID0.SG43 lt J9-1), E (J8 gt 0, ID0.SG43 gt J92)). ID0.SG43 refere-se ao último preço da barra de gráfico mais recente, J8 refere-se à quantidade de posição atual e J9 refere-se ao preço médio da posição atual. Quando esta fórmula na célula L3 retorna TRUE, ele irá disparar uma ordem de venda. O que esta fórmula significa é que, quando há uma Posição Longa e o último preço é menor que o preço, a Entrada de Compra foi preenchida em menos 1 ponto completo (Parada), OU há uma Posição Longa E o último preço é maior do que o preço A Entrada de Compra foi preenchida em mais 2 pontos completos (Limite), depois retorna VERDADEIRO. Isso fará com que uma ordem de venda seja colocada. Este é apenas um exemplo e você precisa usar o que é apropriado em seu caso específico. Nota . É essencial que a fórmula contenha uma verificação de que existe uma posição gt 0. Isso é explicado com mais detalhes na seção de saída de compra. Significa que uma referência celular refere-se a uma célula absoluta e a coluna e a linha não serão ajustadas quando a fórmula for automaticamente preenchida. Esta fórmula é relevante apenas para a linha superior na Folha de Cálculo (corresponde à última barra no gráfico), mesmo que seja aplicado também a barras históricas. Consulte a seção Special Saed Output Spreadsheet para obter mais informações sobre os dados na coluna J. Ao inserir números e fórmulas, lembre-se de usar os delimitadores apropriados nos números e fórmulas, de acordo com as configurações globais gtgt Definições da planilha gtgt Decimal e Delimitadores de função configuração. Para obter mais informações, consulte a seção Decimal e Delimitadores de Função. Neste exemplo, criaremos uma saída de venda (Buy) que sai de uma posição quando um Stop ou Target for atingido. A Sell Exit é opcional. Uma entrada de compra pode fechar uma posição criada por uma entrada de venda. Ou, a posição pode ser fechada manualmente ou com uma ordem anexada. Neste exemplo, estamos usando uma saída de venda para mostrar uma estratégia de saída gerenciada completamente pelo Estudo do sistema de planilhas para negociação. Na célula N3 (rotulada: Vender Sair), digite OR (E (J8 lt 0, ID0.SG43 gt J91 ), E (J8 lt 0, ID0.SG43 lt J9-2)). ID0.SG43 refere-se ao último preço da barra de gráfico mais recente, J8 refere-se à quantidade de posição e J9 refere-se ao preço médio da posição. Quando esta fórmula na célula N3 retorna TRUE, ela enviará uma ordem Comprar. O que esta fórmula significa é que, quando há uma posição curta e o último preço é maior do que o preço, a Entrada de Venda foi preenchida em mais 1 ponto completo (Parar), OU há uma posição curta e o último preço é inferior ao preço A Entrada de Vendas foi preenchida em menos 2 pontos completos (Limite), depois retorna VERDADEIRO. Isso fará com que uma ordem de compra seja colocada. Este é apenas um exemplo e você precisa usar o que é apropriado em seu caso específico. Nota . É essencial que a fórmula contenha uma verificação de que existe uma posição lt 0. Isso é explicado com mais detalhes na seção Vender Sair. Significa que uma referência celular refere-se a uma célula absoluta e a coluna e a linha não serão ajustadas quando a fórmula for preenchida. Esta fórmula é relevante apenas para a linha superior na Folha de Cálculo (corresponde à última barra no gráfico), mesmo que seja aplicado também a barras históricas. Consulte a seção Special Saed Output Spreadsheet para obter mais informações sobre os dados na coluna J. NOTA: No caso de negociação ao vivo real, estas paradas e metas são enviadas pela Sierra Chart para o serviço comercial conectado quando as condições forem atendidas. Isso é necessário para realizar estratégias de saída avançadas. Embora estas não sejam estratégias de saída avançadas, demonstramos como você pode fazer estratégias de saída avançadas. Para que uma ordem seja colocada o mais rápido possível, é uma boa idéia garantir o intervalo de atualização do gráfico. Que é configurado através das Configurações Globais gtgt Configurações Gerais no menu, é definido como 1000 milissegundos ou menos. No entanto, evite tornar muito pequeno, a menos que seu computador seja muito rápido. Você também pode usar Ordens anexadas para sair de uma posição. Consulte Iniciando Negociações com Auto-Trading e Usando Exceções de Ordens Manuais ou Anexadas. Agora que inserimos as fórmulas de planilha na planilha, é necessário voltar ao gráfico. Selecione Janela no menu e selecione o gráfico em que você aplicou o Estudo do Sistema de Cálculo para Negociação ou selecione-o nas guias da janela do gráfico que estão localizadas na parte superior ou inferior da janela principal. Para garantir que as fórmulas que foram inseridas sejam totalmente copiadas pelas colunas da fórmula na planilha, selecione Chart gtgt Recalcular no menu. Consulte as setas de compra e venda no gráfico. Essas setas representam os valores VERDADEIROS retornados das Fórmulas de Entrada de Compra e de Entrada de Entrada nas colunas da fórmula. Por padrão, o Estilo de desenho de subgrupo para as colunas de saída (L e N) está definido como Oculto. Então eles não aparecem. Neste exemplo, usamos saídas baseadas em dados de posição que são conhecidos somente para a posição atual. Então as setas Buy / Sell não são relevantes historicamente. Se suas saídas se baseassem no preço e / ou nos dados de estudo, você poderia configurar as colunas de saída correspondentes para um Estilo de Draw visível. Certifique-se de que exista uma marca de seleção pelo Trade gtgt Auto Trading Enabled, portanto os resultados TRUE que suas Formas de Condição fornecem serão processados ​​como trades. À medida que o gráfico é atualizado, com dados de transmissão em tempo real recebidos do feed de dados conectado ou durante uma repetição, os sinais de Entrada e Entrada de Compra e Venda farão que as ordens Comerciais sejam geradas e processadas. Esses sinais também produzem mensagens de alerta e podem ser vistos selecionando Janela gtgt Mostrar / Ocultar Gerente de Alertas gtgt Alertas Fazer logon no menu. Para ver suas ordens Comerciais, selecione Registro comercial de atividades comerciais no menu. Para ver o Registo do Serviço de Comércio, selecione Trade Gtgt Trade Service Log no menu. O Trade Service Log exibe sinais ignorados de suas Fórmulas de Condição. O próximo passo é simplesmente assistir o seu sistema em tempo real à medida que seu gráfico é atualizado ou reproduz seu gráfico para executar Testes de volta. Voltar testes através de repetições é uma ótima maneira de testar seu sistema em dados históricos e obter uma boa sensação para ele. Para passar da negociação simulada para negociação não-simulada (ao vivo), siga as instruções em Ir de negociação simulada para negociação não-simulada (ao vivo). Passando da negociação simulada para negociação não-simulada (ao vivo) Se e quando estiver pronto para que seu sistema comercial envie ordens reais, você precisará ir ao modo não simulado, certificando-se de que não há marca de seleção pela Trade Gtgt Trade Simulation Ligado . Em seguida, vá para as configurações de Estudo para o Estudo de Cálculo do Plano de Cálculo no seu gráfico e defina a entrada Enviar Encomendas para Serviço de Comércio para Sim. Neste momento, todos os sinais de negociação fornecidos serão enviados como pedidos para o seu serviço de negociação, assumindo que você está conectado a um serviço comercial comercial válido e você está conectado ao servidor Data and Trade (File gtgt Connect to Data Feed). Tenha em mente que, se você estiver usando uma conta simulada com o seu serviço de comércio, então, mesmo que não esteja no Modo de simulação comercial da Sierra Chart e envie ordens para o serviço de comércio, esteja definido como Sim, as ordens ainda serão simuladas. Som para alertas audíveis e notificações de mensagens de e-mail Você pode especificar um som de alerta a ser reproduzido quando a condição de sistema ou alerta nas células K3 a Z3 se tornar VERDADEIRA. Para as fórmulas na Folha para ativar alertas de som, é necessário habilitá-las. Vá para a janela Configurações do Estudo para o seu Estudo de planilha. Para obter instruções, consulte Modificação de estudos. Tenha em mente que após um Estudo de Planilha é aplicado a um gráfico, ele muda seu nome na lista Estudos para Gráficos na janela Estudos de Gráfico para o nome do arquivo de planilha que ele faz referência. Na guia Configurações e Entradas da janela Configurações do Estudo, você verá uma lista de todas as Entradas de estudo disponíveis. Você verá várias entradas chamadas Coluna K, L, M, N, O, P, Q, R, S, T, U, Alerta V-Z que permitirá selecionar o número de som de alerta para cada coluna. Selecione o número de som de alerta que deseja usar ou selecione Sem alerta para não reproduzir um som de alerta quando uma fórmula for VERDADEIRA nas células K3 a Z3. As colunas de folha W a Z usam o mesmo número de som de alerta que a coluna V. Para configurar o arquivo de som que reproduz para cada número de alerta, selecione Configurações globais gtgt Configurações gerais no menu. Você também pode configurar uma mensagem de e-mail para ser enviada quando um som de alerta é acionado. Se a coluna Draw Style for a Sheet for configurada para Ignorar. Então, nenhum sinal de Sistema ou Alerta pode ser acionado pelas fórmulas da Folha. No entanto, isto não se aplica à coluna K a N quando se utiliza o estudo do Spreadsheet System for Trading. Com esse estudo, os sinais comerciais podem sempre ser desencadeados pelas fórmulas da folha, independentemente da configuração do Draw Style. Iniciando Negociações com Auto-Negociação e Usando Exceções de Ordens Manuais ou Anexadas Não é necessário usar as células de Fórmula de Compra Exit ou Sell Exit Order Action no Estudo de Cálculo de Folha de Cálculo para sair de uma Posição atual. As saídas podem ser feitas digitando manualmente um pedido através da janela de comércio. Através do Chart Trading. Ou pode ser executado usando o recurso de Pedidos Anexas (Alvos e Paradas). Em qualquer desses casos, você pode, em seguida, deixar as células da fórmula de compra ou sair da ordem de saída de venda em branco. Alvos e Paradas são configurados através da Janela de Comércio na guia Destinos. Para obter a documentação completa, consulte a página Encomendas anexas. Ao usar Pedidos Anexados, verifique se o Uso de Ordens Anexadas está ativado na Janela de Comércio para o gráfico que contém o Estudo do Plano de Cálculo para Negociação. Consulte Janela de abertura de comércio para gráfico para abrir a janela de comércio. O conjunto de pedidos anexados que é inserido na janela de comércio para um gráfico é salvo quando um Chartbook é salvo. As ordens que são fornecidas pelas células de fórmula Comprar Exit ou Sell Exit Order Action não usarão as Ordens Anexadas configuradas na Janela Comercial. Somente a entrada de compra e a entrada de venda os usarão quando usar Atendimentos anexados estiver habilitado na janela de comércio. Quando você está usando a funcionalidade de negociação automatizada no Sierra Chart, recomenda-se que você sempre entre e cancele quaisquer ordens manuais dentro do Sierra Chart para evitar problemas inesperados de comércio automotivo devido ao fato de a Sierra Chart não estar ciente da Ordem e da Posição Comercial que você o muda De outros programas comerciais. Para obter informações adicionais sobre o uso de pedidos anexados com um sistema de negociação automatizado, consulte SupportAttachedOrdersForTrading. Usando as ordens anexas e a saída de compra e a saída de venda ao mesmo tempo É possível definir um conjunto de ordens anexadas para usar com o seu Estudo de planilha para o comércio e também usar as colunas Comprar / Vender Sair ao mesmo tempo. Para que isso funcione corretamente, você precisa configurar a opção Cancelar todas as ordens de trabalho na saída para Sim. Quantidade da ordem da janela de comércio com encomendas anexas Quando você está usando encomendas anexadas com um sistema de planilha para o estudo de comércio, a quantidade de pedido na janela de comércio mudará para a quantidade de pedido atual especificada na planilha. Isso ocorre porque as Ordens Anexadas são definidas através da guia Destinos da Rede de Comércio e é necessário atualizar a quantidade da Janela Comercial para combinar a quantidade da ordem do sistema de negociação para que as Ordens Anexadas tenham uma quantidade correspondente. Para obter mais informações sobre como configurar a quantidade de pedidos para o estudo do Spreadsheet System for Trading, consulte Cell J26 (Order Quantity). Estratégias de saída avançadas automatizadas Você pode querer inserir uma posição manualmente e, em seguida, ter uma saída de posição automatizada com base em certas condições técnicas que podem basear-se no preço e nos dados de estudo. Isso é realizado usando o estudo do Spreadsheet System for Trading. Consulte as instruções Criando um Sistema de Negociação para Negociação Automatizada nesta página para usar este estudo e definir suas condições de saída. O estudo precisará ser aplicado a um gráfico do mesmo símbolo que você está negociando. When you use the Spreadsheet System for Trading study for this purpose, you will not use the Buy Entry and Sell Entry Order Action columns. These columns need to be left blank. Any steps in the instructions associated with them can be skipped. You will only use the Buy Exit and Sell Exit Order Action columns. Spreadsheet System for Trading study Inputs related to Buy Entry and Sell Entry will not apply for your automated exit strategy. When either the Buy Exit or Sell Exit Order Action columns become TRUE, an order will be submitted at that time. This can be any of the order types supported by the Spreadsheet System for Trading study. Only when your Exit condition is met, will the order be submitted, not before. Therefore, it is not possible to submit a Stop or Limit order ahead of time and modify it. Therefore, Sierra Chart needs to be running to monitor your current Position and submit the orders. It is possible to use the ACSIL Trading functions and modify an order that has been submitted. Spreadsheet Study Inputs that are Specific to Systems, Alerts, and Automated Trading This section lists Inputs for the Spreadsheet Studies which are specific to the Spreadsheet System for Trading and the Spreadsheet System/Alert studies. These inputs can only be set through the Study Settings window for the Spreadsheet studies. For the other available Spreadsheet Study Inputs which are set through the Study Settings window, refer to the Spreadsheet Study Inputs page. A Read-only display of these Study Inputs is displayed on the Spreadsheet Sheet that the chart data is outputted to, in cell columns I and J . It is not possible to modify the value of these Inputs through the Sheet cells. They can only be set through the Study Settings window for the Spreadsheet study. Reset Condition On New Bar If this option is set to Yes . then a system or alert signal will be given when a new bar is added to the chart and the System/Alert condition is TRUE at row 3 even though the System/Alert condition was previously TRUE on the prior bar/row. Normally, when a formula returns TRUE or a nonzero value in one of the Spreadsheet columns used for systems or alerts and a new bar is added, a new signal will not be given even if it still TRUE. It will have to go back to FALSE and then back to TRUE again, unless this input is set to Yes. Alert/Signal Only Once per Bar If the Alert/Signal Only Once Per Bar option is set to Yes . then an alert or trading signal will be given only once per Formula Column per bar in the chart. When an alert or trading is given once for a specific Spreadsheet Formula Column, then another will not be given until there is a new bar in the chart and the System/Alert Condition Formula goes back to FALSE and then to TRUE. This applies to each formula column independently. For example, in the case of the Spreadsheet System for Trading study, if there is a Buy Entry at a particular bar, there can still be a Buy Exit given at the same bar. However, there cannot be 2 Buy Entries on the same bar when this option is enabled. It is recommended that if you have any trouble obtaining a trading signal when you normally would expect one, that you try setting this option to No . In the case of the Spreadsheet System for Trading study, when a signal is ignored because of this option, that ignored signal will be logged in the Trade gtgt Trade Service Log . This is very helpful for troubleshooting purposes. The message is: Signal ignored because Signal Only Once Per Bar is enabled and a signal was already given from formula column for bar. Allow Multiple Entries In Same Direction This input applies only to the Spreadsheet System for Trading study. Refer to the description on the Auto Trade Management page. Signal Only on Bar Close The Signal Only on Bar Close Inputs are specific to the Spreadsheet System for Trading study and the Spreadsheet System/Alert study. There are two versions of this input, one for Sheet columns K and M and the other for columns L . N-Z . When this input is set to Yes . Sheet formulas that return a non-zero (TRUE) value at row 3 in the corresponding formula columns are ignored until the last bar closes. The way this is accomplished is row 4 is monitored instead of row 3. When this input is set to Yes . then anywhere in the documentation row 3 is mentioned, it is row 4 instead. In the same way that row 3 is continuously monitored for TRUE results from formulas in the corresponding formula columns, row 4 will be continuously monitored when this input is set to Yes. You may want to set Strict Signal Only On Bar Close Evaluation to Yes, when you set one of these inputs to Yes. There is one scenario that you should keep in mind about when using Signal Only on Bar Close . Consider you have a formula and one of the Sheet formula columns and it returns TRUE at row 3 (the last bar of the chart) in the column. You refer to the arrow on the chart. A new bar is added, the bar therefore is considered closed, the formula moves down to row 4, it is no longer TRUE and the arrow disappears. In this case when you are using Signal Only on Bar Close. you will not get a signal. Strict Signal Only On Bar Close Evaluation The Strict Signal Only On Bar Close Evaluation input applies a stricter method of evaluation when you have either of the Signal Only on Bar Close inputs set to Yes. When this input is set to Yes, then only at the moment when a bar closes when one or more new bars are added to the chart, will an evaluation of your Spreadsheet formulas from the corresponding Spreadsheet columns ( K . M . L . N-Z ) be evaluated for TRUE conditions. When this input is set to Yes, row 4 will not be continuously monitored as usual, only exactly at the moment when a bar closes and the chart is updated. Use Chase Orders This input only applies to the Spreadsheet System for Trading study. When this input is set to Yes and you have enabled limit orders for a particular Buy/Sell column, then the limit order will be submitted as a Limit Chase Order. The chase amount is set through the J46 cell labelled Maximum Chase Amount for Limit Chase Orders . Enhanced Auto Trade Signal Related Logging This Input when set to Yes . will log additional messages indicating the reason why an order signal is ignored from formula columns K, L, M, N at rows 3 and 4 when using the Spreadsheet System for Trading study. This is helpful to troubleshoot problems with ignored signals. Set this Input to Yes only for a short period of time and only when necessary because it generates a large amount of messages and can create a very heavy and unnecessary CPU load when doing back testing to the point where a tick by tick back test becomes next to impossible to complete and extremely burdensome. BuyEntry (K), BuyExit (L), SellEntry (M), SellExit (N) Spreadsheet Order Action Columns The following Spreadsheet Order Action Columns only apply to the Spreadsheet System for Trading study. Note: For all of the below Order Actions: When an order is submitted, an Alert Sound will also be played if you selected an Alert Sound for the corresponding Spreadsheet column in the Input Settings in the Study Settings window. An alert message will also be added to the Window gtgt Alerts Manager gtgt Alerts Log . Buy Entry (column K) When your Condition Formula in row 3 of column K on the Spreadsheet returns a nonzero value or TRUE, then a Buy order will be given if certain conditions are met. For complete details, refer to the Auto Trade Management page. Buy Exit (column L) When your Condition Formula in row 3 of column L on the Spreadsheet returns a nonzero value or TRUE, then a Sell order will be given if certain conditions are met. For complete details, refer to the Auto Trade Management page. You need to code into your Exit formulas by using the AND() Spreadsheet function, a check that there is a Trade Position Quantity. An example would be: OR(AND(J8 gt 0, ID0.SG43 lt J9-1), AND(J8 gt 0, ID0.SG43 gt J92)). The reference to cell J8 refers to the current Trade Position Quantity . The dollar signs in J8 mean it is an absolute Spreadsheet reference. In the case of a Buy Exit formula, you must to check to make certain there is a long Trade Position by making certain that J8 is gt than 0. The purpose of this is so that the formula remains FALSE until such time that a Trade Position can be exited. Otherwise, the formula could become TRUE on a bar and give a signal even before there is a Trade Position. In this case it will be ignored as it should be. However, if it remains TRUE and then later on that very same bar or a different bar, when there finally is a Trade Position, there will no longer be an Exit signal because the prior TRUE state was already ignored and the formula remains TRUE and not giving a new signal. Sell Entry (column M) When your Condition Formula in row 3 of column M on the Spreadsheet returns a nonzero value or TRUE, then a Sell order will be given if certain conditions are met. For complete details, refer to the Auto Trade Management page. Sell Exit (column N) When your Condition Formula in row 3 of column N on the Spreadsheet returns a nonzero value or TRUE, then a Buy order will be given if certain conditions are met. For complete details, refer to the Auto Trade Management page. You need to code into your Exit formulas by using the AND() Spreadsheet function, a check that there is a Trade Position Quantity. An example would be: OR(AND(J8 lt 0, ID0.SG43 gt J91), AND(J8 lt 0, ID0.SG43 lt J9-2)). The reference to cell J8 refers to the current Trade Position Quantity . The dollar signs in J8 mean it is an absolute Spreadsheet reference. In the case of a Sell Exit formula, you must to check to make certain there is a short Trade Position by making certain that J8 is lt than 0. The purpose of this is so that the formula remains FALSE until such time that a Trade Position can be exited. Otherwise, the formula could become TRUE on a bar and give a signal even before there is a Trade Position. In this case it will be ignored as it should be. However, if it remains TRUE and then later on that very same bar or a different bar, when there finally is a Trade Position, there will no longer be an Exit signal because the prior TRUE state was already ignored and the formula remains TRUE and not giving a new signal. Ignored Signals With Spreadsheet Systems or Alerts Introduction There are many cases in which a Buy or Sell signal from the Entry and Exit formula columns (K, L, M, N) will be ignored. When a signal is ignored from a formula that returns a nonzero number or TRUE, then there will be no Alert Sound played, Alert Message logged, or a Trade Order sent . This section explains all of this. Enabling Auto Trading If Trade gtgt Auto Trading Enabled is unchecked, then Buy and Sell trade order signals from the Spreadsheet System for Trading study will be ignored. In this case you will see messages added to the Trade gtgt Trade Service Log indicating this. The Send Orders to Trade Service study Input setting needs to be set consistently with the Trade gtgt Trade Simulation Mode On setting on the menu. If it is not, then Buy and Sell trade order signals from the Spreadsheet System for Trading study will be ignored. In this case you will see messages added to the Trade gtgt Trade Service Log indicating this. For complete details, refer to SendOrdersToTradeService. Ignored Signals During Historical Data Downloading With the Spreadsheet System for Trading study and the Spreadsheet System/Alert study, System and Alert signals from the Sheet formula columns are ignored on historical data and when historical data is being downloaded. They are monitored for when the chart is actually updating with new data. A chart will be updating with new data during real-time chart updating with live data, during replays, or during a Back Test. If you want to see the Back Test results from historical Buy and Sell signals from the Buy/Sell formula columns in the case of when using the Spreadsheet System for Trading study, then refer to the Back Testing section. Buy/Sell Arrows Do Not Mean Trade Signals When using the Spreadsheet System for Trading study and a formula returns TRUE in the Buy Entry (K3), Buy Exit (L3), Sell Entry (M3), or Sell Exit (N3) cell, a trade signal is not necessarily going to be given. You will see an arrow on the chart indicating a buy or sell signal, assuming the corresponding Subgraph Draw Style is set to a visible style. However, this does not necessarily mean that the formula TRUE result will be followed and a trade signal will be given. The BuyEntry (K), BuyExit (L), SellEntry (M), SellExit (N) Spreadsheet Order Action Columns rules must be met and the additional conditions imposed by the related study Input Settings must be met, for a trade signal to be actually given. If one is ignored, then a message will be added to the Trade gtgt Trade Service Log indicating the reason. Review the Trade Service Log for the reason. To see on the chart the actual filled orders from trades made, refer to Displaying Filled Orders. Reset Condition on New Bar When using either the Spreadsheet System for Trading or Spreadsheet System/Alert studies, the TRUE signals given from cells K3 through Z3 may not always be followed and give an alert or trade signal, even though they still return TRUE or a non zero value and an arrow shows on the chart. If a cell is TRUE and there is a new bar added to the chart and the cell continues to be TRUE, because the state is already TRUE, you will not get a new signal unless the input Reset Condition on New Bar is set to Yes. Signal Only Once per Bar If a TRUE signal has been given by the formula in a particular cell and then it goes back to FALSE and back to TRUE on the same bar, you will not get a signal if the study Input Signal Only Once Per Bar is set to Yes . Signal Only on Bar Close If you have the Signal Only On Bar Close (Column K, M) input set to Yes, then a TRUE signal will be ignored on cells K3 and M3, and only the cells K4 and M4 will be monitored for signals. Likewise with the Signal Only On Bar Close (Column L, N-Z) input. In the case of when either Signal Only Once per Bar and Signal Only on Bar Close study Inputs have been set to Yes . when a signal is ignored by these restrictions, there is no message added to the Trade Service Log or the Alerts Log . except in the case of the Spreadsheet System for Trading study when the signal has been ignored as the result of Signal Only Once Per Bar being set to Yes . Troubleshooting In order to troubleshoot a problem with ignored signals, we recommend setting both of the Signal Only On Bar Close Inputs to No . Detailed logging can also be enabled which will add reasons for ignored signals in all cases . to the Trade gtgt Trade Service Log . When using the Spreadsheet System for Trading study, set the Enhanced Auto Trade Signal Related Logging Input to Yes . When using the Spreadsheet System/Alert study, set the Enhanced System Signal Related Logging Input to Yes . Only set these Inputs to Yes when absolutely necessary because they will add a very large number of messages to the Trade Service Log and can cause Sierra Chart to be nonresponsive at times. System/Alerts and Draw Style In the case of the Spreadsheet System/Alert study, if the Draw Style for a Spreadsheet column is set to Ignore . then System or Alert signals in that column will be ignored. Nonzero Trade Position Quantity In the case of the Buy Exit or Sell Exit Order Action columns when using the Spreadsheet System for Trading study, if a Buy/Sell Exit formula is TRUE and remains TRUE before there is a nonzero Trade Position Quantity and then a nonzero Trade Position Quantity later exists, then the Exit will be ignored it until it goes back to FALSE and then to TRUE. Therefore, you need to program the formula to remain FALSE until there is a Trade Position Quantity. This can be done by using the AND function and checking that cell J5 is nonzero. Delayed TRUE Result from Formulas Another thing to also consider is that you may see an arrow on the chart from one of the Order Action formula column cells indicating TRUE, but it is on the bar prior to the last bar in the chart and it appeared after a new bar was added to the chart. Therefore, unless the corresponding Signal Only On Bar Close Input is set to Yes, then that TRUE result going to be ignored as well. You cannot make an assumption that when you see a 1/TRUE in a cell, that at the moment the cell is evaluated for an order/alert signal that the 1/TRUE was present at that time. It may have been 0 and could have went to 1 quickly after. Spreadsheet System for Trading Test Procedure To get an understanding of how the TRUE signals in K3, L3, M3, N3 are processed follow the test procedures on the Spreadsheet System for Trading Test Procedure page. After you go through this test procedure, and you are still having difficulty troubleshooting your Spreadsheet System for Trading study implementation, we recommend changing the formulas to simple TRUE/1 values temporarily during a replay just like explained in the test procedure, and then gradually add to the complexity of them until you can determine the source of the problem. Disappearing Arrows or Signals When using either the Spreadsheet System for Trading study or the Spreadsheet System/Alert study, when a formula in a cell in one of the Spreadsheet columns that is graphed on the chart, typically this is going to be Spreadsheet columns K, L, M, N, returns a nonzero or TRUE value, you will see an arrow on the corresponding bar on the chart representing the TRUE condition. You also need to make certain that the Draw Style for the particular Spreadsheet formula column you want to see arrows for, is set to one of the Arrow Up/Down/Left/Right Draw Styles or other similar style. These TRUE formula signals can trigger an Alert Sound as well and also a Trade signal (in the case of the Spreadsheet System for Trading study) if these signals are given in row 3, or row 4 if have set the study Input Signal Only On Bar Close (Columns K, M)/(Columns L, N-Z) to Yes . If the formula no longer is returning a nonzero or TRUE value and instead returning FALSE (0), then the arrow will disappear even though the Alert and the Trade signal was previously given. So it is important to understand that your formula could go to TRUE momentarily and then FALSE. In summary, the standard Up and Down arrows on a chart displayed by these Spreadsheet studies, indicate the present state of the formulas. During the formation of a bar or after new bars are added to the chart, a formula could go from TRUE to FALSE based upon the logic of the formula and changing data in the cells that it references. It is up to you to determine specifically what is happening and why. To actually see where the trades were made, you need to display Order Fills on the chart. If you are using the Spreadsheet System for Trading study and you wish to visibly see where trades have been made on the chart in the case of when the arrows on the chart disappear, then enable Trade gtgt Show Order Fills . Various options affecting the display of order fills can be set by enabling Trade gtgt Chart Trade Settings on the menu. When a cell that can trigger an Alert Sound or Trade signal becomes TRUE and an Alert Sound and/or a Trade signal is actually given, then an alert message will be added to the Window gtgt Show/Hide Alerts Manager gtgt Alerts Log . All of these events are logged in the Alerts Log tab. Not only can you experience the condition where the arrows disappear, you could also have the condition where the state of your formulas change, based upon how they are programmed and the data they are referencing, and you see an arrow later appear on a bar where a signal was not previously given when it was evaluated for an alert or trade signal. You may also see that the arrow direction does not correspond to an order fill displayed on a bar due to changes with the formula results during processing of a bar. For example, initially a bar may have given a Buy signal, a Buy fill is displayed on the chart for the bar, but then later the bar gives a Sell signal which is ignored based upon the auto trade logic. So at the present moment you see a Down Arrow, but a Buy fill for the bar. In order to create more stability when it comes to generating orders when using the Spreadsheet System for Trading study, you may want to set the Signal Only On Bar Close (Columns K, M) / (Columns L, N-Z) input to Yes. All of what is described in this section is something that you need to be aware of when you are looking at the final results of your trading system and comparing them to the current FALSE/TRUE state of the Spreadsheet formulas that you visually see at the present moment. The Effect of the Number of Rows Input The Number of Rows input with the Spreadsheet studies, affects the standard Up and Down arrows displayed on a chart by the Spreadsheet studies. You will need to increase this input value to see arrows going back more bars. Arrows that were placed on bars further back than the Number of Rows input during real-time updating and chart replays, can disappear, or if they have not been removed because there has not been a full recalculation of the study, they may no longer be valid. Special Spreadsheet Outputted Values The Spreadsheet studies will output additional values in the I and J Spreadsheet columns for information and calculation purposes. This is in addition to the main price graph data outputted to columns A through G and the study data outputted beginning at column AA. The following is a list of all the additional values that are outputted. Special Spreadsheet System for Trading Values These values are outputted for the Spreadsheet System for Trading study only. These values can be used in Spreadsheet formulas. Below is a description of what each Row means. Working Orders Quantity Cell J3 This is the combined quantity for all the Working orders for the chart symbol. This is positive for Buy orders and negative for Sell orders. If there is one Buy working order with a quantity of 5, it will be 5. If there is one Buy order and one Sell order, each with the same quantity, it will be 0. Position with Working Orders Quantity Cell J4 This is the Position quantity combined with the quantities from Working orders. BuyEntry and SellEntry depend on this number to determine whether or not another entry should be allowed. For more information, refer to Trade Positions. Position Quantity Cell J5 or J8 Cells J5 and J8 contain the Quantity of the current Trade Position for the chart symbol. This Quantity can either be a quantity from the Trade Simulation Mode system or the quantity from the external trading service. This depends upon whether the Spreadsheet System for Trading study is in Simulation Mode or not. For instructions to control this, refer to Going From Simulated Trading to Non-Simulated (Live) Trading . This value can be negative (a Short quantity) or positive (a Long quantity). Both of these cells, J5 or J8, contain the same Position data and either one can be used. In the case of a Trade Position Quantity when in Trade Simulation Mode, for information about how that is determined, refer to Simulated Trade Positions. For information about non-simulated Trade Positions, refer to Trade Positions Tab. Position with Working Exit Orders Quantity Cell J6 This is the Position quantity for the symbol combined with the quantity of working orders that can potentially exit the current Position. Therefore, if the Position quantity is 5 and there is a Sell order with a quantity of 4, this will be 1. For more information, refer to Trade Positions . Prior Position Quantity Cell J7 The Prior Position Quantity cell indicates the Position Quantity right before a new order fill is processed. If a trade order fills with multiple fills, then this field will be updated for each of those fills. Prior Position Quantity is calculated using the available order fill data in the Trade gtgt Trade Activity Log gtgt Trade Activity tab for the symbol. The Global Settings gtgt General Trade Settings gtgt Number of Days to Save in Trade Activity Log controls how many days of data are saved in the log. You may need to adjust that to meet your requirements. Position Average Price Cell J9 This is the average of the fill prices of the currently open Trade Position for the Symbol and Trade Account the chart is set to. For more information, refer to Trade Positions . Open Profit/Loss Cell J10 This is the profit or loss of the currently open Trade Position for the Symbol and Trade Account the chart is set to. For more information, refer to Trade Positions . This value is outputted as a Currency Value. Refer to Position Profit/Loss for the calculation method for Currency Value . Cumulative Closed Profit/Loss Cell J11 This is the profit or loss of the closed out trades for the Symbol and Trade Account the chart is set to and is based upon the available order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . This value is outputted as a Currency Value. Refer to Position Profit/Loss for the calculation method for Currency Value . If the order fills from Trades made, are not available in the Trade Activity Log, then the Cumulative Closed Profit/Loss value will not consider those trades. The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . To reset this value, you will need to clear the order fill data from the Trade Activity Log for the Symbol and Trade Account. For instructions to do this, refer to Clearing Trade Activity Log. The order fill data for replays and back tests, when you initiate a replay or back test will be automatically cleared. At that time you will receive a prompt to clear this data. When you press Yes, the data will be automatically cleared and therefore the Cumulative Closed Profit/Loss will be reset back to 0. Maximum Open Position Profit Cell J31 The Maximum Open Position Profit is what the maximum profit of the current Position has been. This is reset whenever the Position Quantity changes. For more information, refer to Trade Positions . Maximum Open Position Loss Cell J32 The Maximum Open Position Loss is what the maximum loss of the current Position has been. This is reset whenever the Position Quantity changes. For more information, refer to Trade Positions . Win Trades Cell J33 The total number of winning trades based upon the available fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . A winning trade is defined as a trade that reduces or closes out a Position while the Open Profit/Loss is positive or flat. The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . Lose Trades Cell J34 The total number of losing trades based upon the available fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . A losing trade is defined as a trade that reduces or closes out a Position while the Open Profit/Loss is negative. The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . Total Trades Cell J35 The total number of closed trades based upon the available fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . A trade is defined as a trade that reduces or closes out a Position. This is going to be an individual fill. Not necessarily an entire order. The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . Seconds Per Bar - Intraday (read-only) Cell J36 This cell contains the number of seconds that the chart bars are set to ( Chartgtgt Chart Settings ). This will always be a nonzero number. Even when one of the Number of Trades Per Bar, Volume Per Bar, Range Per Bar cells are nonzero. Number of Trades Per Bar - Intraday (read-only) Cell J37 The cell contains the number of trades per bar setting in Chartgtgt Chart Settings . It will be zero if the chart bars are not set to be based upon a number of trades. Volume Per Bar - Intraday (read-only) Cell J38 The cell contains the volume per bar setting in Chartgtgt Chart Settings . It will be zero if the chart bars are not set to be based upon a specified volume. Range Per Bar (in ticks) - Intraday (read-only) Cell J39 The cell contains the range per bar setting in Chartgtgt Chart Settings . It will be zero if the chart bars are not set to be based upon a specified price range. Symbol Cell J40 The cell contains the symbol of the chart. In the case where a Trade and Current Quote Symbol is set on the chart, that symbol will be returned. Last Bar End DateTime Cell J41 This cell contains the latest date and time of the last bar in the chart in a Serial DateTime format. This number can be used for various comparisons within formulas that are based on times. To ensure you see this value formatted as a Date-Time, right-click on the cell and select Number Format from the menu or Spreadsheet gtgt Number Format . Change the Number Format to Date-Time . This cell data is outputted with all of the Spreadsheet studies. Last Entry Trade Date-Time Cell J42 This cell displays a number that represents the Date and Time of the bar at which the last Entry trade was triggered and processed. This number can be used for various comparisons within formulas that are based on times. This data is maintained by the internal Trades list in the chart. Last Exit Trade Date-Time Cell J43 This cell displays a number that represents the Date and Time of the bar at which the last Exit trade was triggered and processed. This number can be used for various comparisons within formulas that are based on times. This data is maintained by the internal Trades list in the chart. Last Trade Profit/Loss Cell J44 This is the Profit or Loss of the last completed trade for the symbol. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . Closed Daily Profit/Loss Cell J45 This is the Profit or Loss of Trades made that have been closed during the day for the symbol. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default it resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Trade Service Account Balance Cell J47 This is the current cash balance for the selected Trade Account on the Trade Window for the chart when not in Trade Simulation Mode. This data is from the external connected Trading service. Not all Trading services provide this data. This is not a simulated account balance. To select the Trade Account on the Trade Window for the chart, refer to Selecting Trade Account . Last Entry Fill Price Cell J48 This cell displays the fill price of the order for the last Entry trade. If your trading system is in simulation mode, then this data is from a simulated order. Otherwise, it is from a non-simulated order. This data is maintained by the internal Trades list in the chart. Last Exit Fill Price Cell J49 This cell displays the fill price of the order for the last Exit trade. If your trading system is in simulation mode, then this data is from a simulated order. Otherwise, it is from a non-simulated order. This data is maintained by the internal Trades list in the chart. Daily Win Trades Cell J50 This the number of trades that have completed and had a profit or were breakeven during the trading day. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field reset at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Daily Lose Trades Cell J51 This the number of trades that have completed and had a loss during the trading day. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Daily Total Trades Cell J52 This the number of Trades that have completed during the trading day. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . This field can be used to limit the number of automated trades during the trading day. For example, in the Disable Auto Trading (J28) cell, enter the following: J52 1. This will limit your automated trading to 1 trade per day. Daily Total Quantity Filled Cell J53 This is the total quantity of the order fill quantities for the trading day. For example, if you have a buy order fill during the trading day of quantity 5 and a sell order fill of quantity 5, then this will be 10, assuming these are the only 2 fills during the trading day. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Daily Number of Long Trades Cell J54 This the number of Long Trades that have completed during the trading day. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Daily Number of Short Trades Cell J55 This the number of Short Trades that have completed during the trading day. This uses a Fill to Fill order fill grouping method for Trades. This is calculated from the order fill data in Trade gtgt Trade Activity Log gtgt Trade Activity . The number of days saved in the Trade Activity Log is set through Global Settings gtgt General Trade Settings . By default this field resets at midnight according to the Time Zone setting in Sierra Chart. The reset time can be changed through Global Settings gtgt General Trade Settings gtgt Daily Stats Reset Time . Current Quote Values Cells J12 through J20 Cells J12 through J20 display the Current Quote Values for the chart symbol. These are always displayed on the Spreadsheet used by the Spreadsheet System for Trading study, and will only be displayed if the Output Current Quote Data input is set to Yes for the other Spreadsheet studies. The Daily Open, Daily High, Daily Low, Daily Net (Daily Price Change), and Daily Volume are only going to be set when connected to the data feed ( File gtgt Connect to Data Feed ) and the associated chart is not replaying. Otherwise, they will be 0. The data that you see is the same data displayed in Window gtgt Current Quote Window . The Current Quote Window contains the daily quote data for the symbol of the active chart. Tick Size Cell J21 This cell contains the Tick Size of the symbol. This is the minimum increment that the symbol trades in. This data is outputted for all of the Spreadsheet studies. Special Spreadsheet Trading Inputs on the Spreadsheet The following is a list of special Spreadsheet inputs in columns I and J used by the Spreadsheet System for Trading study. These are actual inputs that will use the values you type into the corresponding row in the J column. Limit or Stop Prices J22, J23, J24, J25 Cells J22 through J25 allow you to set the Limit or Stop order prices for each of the 4 different Spreadsheet Order Actions. These apply when you have set to use a Limit or Stop order for a particular Order Action in cells J71 through J74. Refer to Buy Entry: Order Type J71. You are able to set a Limit or Stop price to either the Bid or Ask prices by using these formulas: J12 (Bid price) or J14 (Ask Price). This allows you to buy at the Bid or sell at the Ask respectively. Order Quantity J26 Cell J26 controls the Order Quantity for orders that are submitted from the Spreadsheet System for Trading study. This quantity can be dynamically controlled by a formula. If the cell is empty or 0, the Order Quantity will be set to 1 for Buy Entry and Sell Entry . If the cell is empty or 0 during a Buy Exit or Sell Exit . then the quantity is determined by the automated trading logic and the end result will be that the Trade Position for the Symbol and Trade Account is flattened. Negative order quantities are converted to positive numbers. Use Separate Exit Order Quantity J82 When this cell is set to TRUE or a nonzero value, then a Buy Exit or Sell Exit Order Action will use the quantity specified by the Exit Order Quantity J83 cell. Exit Order Quantity J83 This cell is only used when Use Separate Exit Order Quantity J82 is set to TRUE or a nonzero value. This cell controls the Order Quantity for Buy Exit or Sell Exit Order Actions from the Spreadsheet System for Trading study. This quantity can be dynamically controlled by a formula. If the cell is empty or 0 during a Buy Exit or Sell Exit . then the quantity is determined by the automated trading logic and the end result is that the Trade Position for the Symbol and Trade Account the automated trading system is for will be flattened. Negative order quantities are converted to positive numbers. Maximum Chase Amount for Limit Chase Orders Cell J46 This cell is used to specify the maximum chase amount for limit chase orders. For more information, refer to the Use Chase Orders input. Cancel Working Orders J27 Cell J27 allows you to cancel all working orders for the Symbol and Trade Account of the chart that the Spreadsheet System for Trading study is currently applied to. Setting this cell to TRUE or any non-zero number (such as 1 ) will trigger the canceling of orders. You can also input a formula into this cell to cancel all working orders when certain conditions are met. The canceling of orders occurs before any of the Entry and Exit signal cells are evaluated. However, these cancellations in the case of non-simulated trading do take time to occur and they will be pending during the evaluation of the Entry and Exit signal cells. When this cell is set to a nonzero or TRUE value, additional cancellations will not occur until it is set back to zero or FALSE and then back to a nonzero or TRUE value. If you wish to cancel working orders at a specific time, then you can use a formula like this: (J41-INT(J41)) gt TIMEVALUE(16:15:00). This example will return TRUE when the time is 16:15 or greater. Cell J41 is the latest time in the last bar in the chart. It is best to use that cell, since NOW() always refers to the current time, and that will not work during back testing. Cancel All Orders except working Attached Orders J78 Cell J78 allows you to cancel all working orders except for working Attached Orders for the Symbol and Trade Account of the chart that the Spreadsheet System for Trading study is currently applied to. Attached Orders that have a Pending Child - Client/Server status will still be canceled. Only Attached Orders that have an Open/Pending Open/Pending Modify status will not be canceled. Setting this cell to TRUE or any non-zero number (such as 1 ) will trigger the canceling of orders. You can also input a formula into this cell to cancel all working orders when certain conditions are met. The canceling of orders occurs before any of the Entry and Exit signal cells are evaluated. However, these cancellations in the case of non-simulated trading do take time to occur and they will be pending during the evaluation of the Entry and Exit signal cells. When this cell is set to a nonzero or TRUE value, additional cancellations will not occur until it is set back to zero or FALSE and then back to a nonzero or TRUE value. Flatten Position and Cancel Working Orders J29 Cell J29 flattens the existing Trade Position that the Spreadsheet System for Trading study is reporting on the Sheet. So this will be for the Symbol and Trade Account that the chart is set to. All Working orders will also be canceled for the symbol and Trade Account. Simply setting this cell to TRUE or any non-zero number (such as 1 ) will trigger the flattening of the Position and canceling of orders. You can also input a formula here to perform the action when certain conditions are met. The flattening of the Position and canceling of orders occurs before any of the Entry and Exit signal cells are evaluated. When this cell is set to a nonzero or TRUE value, additional flattening of the Position and canceling of orders will not occur until it is set back to zero or FALSE and then back to a nonzero or TRUE value. If you want to flatten the Trade Position and cancel working orders at a specific time, then you can use a formula like this: (J41-INT(J41)) gt TIMEVALUE(16:15:00). This example will return TRUE when the time is 16:15 or greater. Cell J41 is the latest time in the last bar in the chart. It is best to use that cell, since NOW() always refers to the current time, and that will not work during back testing. Disable Auto Trading J28 When Cell J28 is set to TRUE it disables all trading from the Spreadsheet. When this cell is set to TRUE . all Spreadsheet Buy/Sell entries and exits, flatten Position and cancel order commands are ignored . However, if this cell is set to TRUE at the same time that a cell like Flatten Position and Cancel Working Orders is set to TRUE, then the Flatten Position and Cancel Working Orders action will still occur and then automated trading will be disabled after that. This paragraph applies to versions 1463 and higher. You can enter a formula in this cell to disable trading when certain conditions are met or even when the latest Date-Time of the last bar in the chart meets some specified time condition. Manually setting this input to TRUE or any non-zero number will simply disable all auto trading until the cell is set back to FALSE . If you want to disable automated trading at a specific time, then you can use a formula like this: (J41-INT(J41)) gt TIMEVALUE(16:15:00). This example returns TRUE when the time is 16:15 or greater. Cell J41 is the latest time in the last bar in the chart. It is best to use that cell, since NOW() always refers to the current time, and that will not work during back testing. For documentation for the particular Spreadsheet functions used, refer to Spreadsheet Functions . To limit trading to the day session only, use this formula: OR(J41-INT(J41) lt TIMEVALUE(09:30:00), J41-INT(J41) gt TIMEVALUE(16:00:00) ). This formula assumes your time zone in Sierra Chart is set to New York, and the symbol of the chart is a stock or stock index. Buy Entry: Order Type J71 This Spreadsheet input is for specifying the order type for the Buy Entry Order Action column. The corresponding Limit or Stop price is set in cell J22 . If the Limit or Stop price cell is set to 0 or is blank, then the Limit or Stop price will be set to the current Ask price. If the Order Type is blank, it will be set to M (Market). The order type can be programmatically set with a formula. Here is an example: IF(J5 0, L, M). Buy Exit: Order Type J72 This Spreadsheet input is for specifying the order type for the Buy Exit Order Action column. The corresponding Limit or Stop price is set in cell J23 . If the Limit or Stop price cell is set to 0 or is blank, then the Limit or Stop price will be set to the current Bid price. If the Order Type is blank, it will be set to M (Market). The order type can be programmatically set with a formula. Here is an example: IF(J5 0, L, M). Sell Entry: Order Type J73 This Spreadsheet input is for specifying the order type for the Sell Entry Order Action column. The corresponding Limit or Stop price is set in cell J24 . If the Limit or Stop price cell is set to 0 or is blank, then the Limit or Stop price will be set to the current Bid price. If the Order Type is blank, it will be set to M (Market). The order type can be programmatically set with a formula. Here is an example: IF(J5 0, L, M). Sell Exit: Order Type J74 This Spreadsheet input is for specifying the order type for the Sell Exit Order Action column. The corresponding Limit or Stop price is set in cell J25 . If the Limit or Stop price cell is set to 0 or is blank, then the Limit or Stop price will be set to the current Ask price. If the Order Type is blank, it will be set to M (Market). The order type can be programmatically set with a formula. Here is an example: IF(J5 0, L, M). Attached Order Target Offset (write only) J80 When this is set to a nonzero value, this will replace any existing defined Attached Orders on the Trade Window for the chart with a Target Limit order with the Offset specified in this cell. The purpose of using a Spreadsheet cell to set the Target Attached Order Offset is so that it can be set according to a formula rather than hardcoded at a particular value on the Trade Window for the chart. The Offset is relative to the parent order price. This Offset needs to be specified as an actual price value . If a Stop order is also set through cell J81 . then this will be added to the Attached Orders at the same time as well. For more information, refer to Attached Orders . For the Attached Orders to actually be used when submitting a Buy/Sell Entry order, the Use Attached Orders option needs to be enabled on the Trade Window for the chart. Attached Order Stop Offset (write only) J81 When this is set to a nonzero value, this will replace any existing defined Attached Orders on the Trade Window for the chart with a Stop order with the Offset specified in this cell. The purpose of using a Spreadsheet cell to set the Stop Attached Order Offset is so that it can be set according to a formula rather than hardcoded at a particular value on the Trade Window for the chart. The Offset is relative to the parent order price. This Offset needs to be specified as an actual price value . If a Target order is also set through cell J80 . then this will be added to the Attached Orders at the same time as well. For more information, refer to Attached Orders . For the Attached Orders to actually be used when submitting a Buy/Sell Entry order, the Use Attached Orders option needs to be enabled on the Trade Window for the chart. Working Orders Exist (read-only) J84 This is set to TRUE when there are orders which currently have a Status indicating they are working and can be filled. This also includes Pending Child orders. Otherwise, this is set to FALSE. This cell is read-only. Allow Trading Only During Time Range (read/write) J85 This can be set to TRUE to only allow automated trading by the Spreadsheet System for Trading study during the time range specified in the Start Time For Allowed Time Range and End Time For Allowed Time Range cells. Start Time For Allowed Time Range (read/write) J86 When the Allow Trading Only During Time Range cell has been set to TRUE, then this cell specifies the starting time in the charts time zone that automated trading is allowed to begin at. End Time For Allowed Time Range (read/write) J87 When the Allow Trading Only During Time Range cell has been set to TRUE, then this cell specifies the ending time in the charts time zone that automated trading will no longer be allowed after. Flatten Positions And Cancel Orders At Set Time (read/write) J88 When this cell is set to TRUE, then the current Trade Position will be flattened and any working Orders will be canceled for the Symbol and Trade Account of the chart the Spreadsheet System for Trading study is applied to, at the time specified by the Time For Flatten Positions And Cancel Orders cell. Time For Flatten Positions And Cancel Orders (read/write) J89 When the Flatten Positions And Cancel Orders At Set Time cell is set to TRUE, then this cell specifies the time to flatten the Trade Position and cancel the Orders at. Last Entry/Exit Order Date-Time (read-only) J90 This is the Date-Time in the charts time zone, of the last entry or exit order which was submitted whether it has filled or not. This is useful to use in formulas to determine the amount of time elapsed since an order was submitted and it has not yet filled. Back Testing Spreadsheet Calculations and Spreadsheet Study Processing of Spreadsheet Data This section describes the calculations of formulas on a Sheet in a Spreadsheet window and the subsequent reading and processing of values and formula results from a particular Sheet being referenced by one of the Spreadsheet studies. There is a difference between these two operations and this needs to be understood. The general method by which a Spreadsheet study interacts with a particular Sheet in a Spreadsheet window (also known as a Sheet Collection), is that first the chart data and study values are outputted to the Sheet, the Sheet is calculated, and then the Spreadsheet study gets the results from the formula columns K through Z (last formula column by default) and processes those results and puts them into internal chart arrays for graphing on the chart. In the case of the Spreadsheet System for Trading study, if there is a full recalculation of the chart, the Sheet will be updated and calculated, however there will not be processing of any of the Sheet formula columns during that full recalculation, by the Spreadsheet System for Trading study. A full recalculation will occur when the chart is opened as part of its Chartbook opening, studies are modified through the Chart Studies window, or if the chart has been tagged for a full recalculation by a chart it is referencing. This last case is not a common case. After a full recalculation occurs, it is normal for the last bar in the chart to be calculated again. At this time it is normal for any of the Spreadsheet studies to process the formula columns for the last bar in the Sheet. In the case of the Spreadsheet System for Trading study, if 100 or more bars are added at once to the chart when the chart is updated, then there will not be processing of the Sheet formula columns. This kind of event will be indicated in the Trade gtgt Trade Service Log when it happens. The below sections explain how the K through Z formula columns that contain formula results are processed based on the Signal Only on Bar Close inputs. There are two of these inputs and this section applies to both of them. For example, if you use the Signal Only on Bar Close (Columns K, M) input, then this description would apply to columns K and M . The time at which formula results are processed by any of the Spreadsheet studies is after all the Sheets within the Spreadsheet have been calculated and all cells are reporting their current values. If Signal Only on Bar Close is set to No . then the following occurs: If there are no new bars added to the chart during a chart update, then only Sheet row 3 is checked for TRUE/FALSE values that are returned by formulas in the Spreadsheet signal columns (K-Z). If there are new bars added to the chart during a chart update, then the first row in the Sheet that is examined for TRUE/FALSE values that are returned by the formulas, is the previous topmost row during the prior update (the data previously at row 3). The reason the previous topmost row is examined, is because there could be changes with the price data and studies at that row during the chart update. In other words, the examination continues where it left off. Next, the Spreadsheet study processing function moves up the rows all the way up to 3, examining for TRUE/FALSE conditions row by row. For example, if there is one new bar added, then first row 4 is examined and then row 3 is examined for TRUE/FALSE conditions. One potential issue to be aware of with this processing logic is that if a formula in a particular column is TRUE at row 3 and then a new bar is added and it becomes FALSE at row 4, then the internal state maintained by Sierra Chart for the Spreadsheet column goes to FALSE and can then go back to TRUE if the formula is TRUE at row 3 during that update. The potential issue with this is an unexpected signal due to a state change. If Signal Only on Bar Close is set to Yes . then the following occurs: If there are no new bars added to the chart during a chart update, then only Sheet row 4 is checked for TRUE/FALSE values that are returned by formulas in the Spreadsheet signal columns (K-Z). If there are new bars added to the chart during a chart update, then the first row in the Sheet that is examined for TRUE/FALSE values that are returned by the formulas, is the previous second topmost row during the prior update (the data previously at row 4). The reason the previous second topmost row is examined, is because there could be changes with the price data and studies at that row during the chart update. Although, usually not in this case since the data was previously at row 4. In other words, the examination continues where it left off. Next, the Spreadsheet study processing function moves up the rows all the way up to 4, examining for TRUE/FALSE conditions row by row. For example, if there is one new bar added, then first row 5 is examined and then row 4 is examined for TRUE/FALSE conditions. One potential issue to be aware of with this processing logic is that if a formula in a particular column is TRUE at row 4 and then a new bar is added and it becomes FALSE at row 5, then the internal state maintained by Sierra Chart for the Spreadsheet column goes to FALSE and can then go back to TRUE if the formula is TRUE at row 4 during that update. The potential issue with this is an unexpected signal due to a state change. Although, this kind of scenario is highly unlikely with Signal Only on Bar Close set to Yes because data other than at the last bar in the chart is not likely to change. Order of Formula Column Processing and Internal Calculation Order When the formula results in columns K through Z (last formula column by default) are processed for Trade Order or Alert signals by the Spreadsheet System for Trading or Spreadsheet System/Alert studies, column K is evaluated first, then L, then M, and so on through and including the last formula column (by default column Z). The last formula column is set by the Number of Formula Columns Input. Therefore in the case of the Spreadsheet System for Trading study, the following columns are evaluated in the order in which they are listed left to right: Buy Entry, Buy Exit, Sell Entry, Sell Exit . The order of calculation for the formulas in cells within a Spreadsheet is based upon the dependency they have to each other. A cell dependent on another cell is always going to be calculated after the cell it is dependent on. In the case where 2 cells refer to each other, this is known as a circular reference. In the version of Sierra Chart with New Spreadsheets, there is no special handling of a circular reference, the result can be unpredictable, and an error may be given. Circular references are not supported as they simply make no mathematical sense and have an absolute impossibility to resolve accurately. Multiple Exit Automated Trading Example This is an example of an automated trading exit which utilizes two targets. This example applies to the Spreadsheet System for Trading study. A stop is not used in this example. There are three formulas involved in this strategy and they are used in the following cells: Buy Exit, Sell Exit, and Custom Order Quantity. In this example, these formulas set a price target of 3 points and 5 points away from the Position Average Price (Cell J9 ). It is assumed that there is a Position quantity of 5. For the first target, two contracts will be exited. For the second target, three contracts will be exited. Order Quantity Formula (Cell J26 ): IF( ABS(J8) 5, 2, IF( ABS(J8) 3, 3, 0)) . Buy Exit Formula (Cell L3): OR( AND( J8 5, ID0.SG43 - J9 gt 3), AND( J8 3, ID0.SG43 - J9 5)) Sell Exit Formula (Cell N3): OR( AND( J8 -5, J9 - ID0.SG43 gt 3), AND( J8 -3, J9-ID0.SG43 gt 5)) This is merely a simple example and this will need to be tested and modified to be certain it will work for you. Limiting Trading to Certain Time Ranges This section uses the GETTIMEFROMDATETIMEVALUE function which is going to be available in an upcoming release at the time of this writing. To restrict trading during only a certain time range, you can use the Disable Auto Trading cell. Here is an example formula to limit trading during a specific time range: AND((GETTIMEFROMDATETIMEVALUE(J41)) gt TIME(9,30,0), GETTIMEFROMDATETIMEVALUE(J41) lt TIME(16,15,0)). J41 contains the Last Bar End DateTime . Or this formula could be combined into a Buy Entry and Sell Entry formula by using the AND function. Last modified Wednesday, 14th December, 2016.

Комментариев нет:

Отправить комментарий