Thursday 12 January 2017

Trading System Arbeitsblatt

Excel Spreadsheets Im Folgenden sind Tabellenkalkulationsdateien enthalten, die mit Excel 97 und höheren Versionen kompatibel sein sollten. Einstellung stoppt die Bayesian Weg, Juni 2013 Spreadsheet verwendet, um zu zeigen, wie Stopp-Ebenen arbeiten und wie viel Risiko verschiedene Entscheidungsregeln lassen Sie nehmen, wie in der Juni 2013-Geschichte von Burton Rothberg referenziert. Die Put-and-Call-Komfortzone, Mai 2009 Diese Kalkulationstabellen umfassen die LLP Pricing Modelle, die in der Mai 2009 Trading Techniques Geschichte von Paul Cretien referenziert. Aufbau einer besseren Würge, März 2009 Diese Kalkulationstabellen beinhalten die Modelle, die im März 2009 Trading Techniques Geschichte von Paul Cretien referenziert. Sie sollten auch anstelle von Arbeitsblättern verwendet werden, die vorher mit Cretiens Trading Techniques Geschichten verbunden waren. Kalibrieren von Gewinn - und Verlust-Strategien, Februar 2009 Diese Kalkulationstabelle enthält die Modelle, auf die in der Februar-Trading-Technik-Geschichte von Michael Gutmann verwiesen wird. Vergleich der Optionspreismodelle Diese Kalkulationstabellen umfassen die Modelle, auf die in der Trading Techniques von Paul Cretien vom Juni 2008 verwiesen wird. Sie sollten auch anstelle von Arbeitsblättern verwendet werden, die zuvor mit Cretiens September 2006 Trading Techniques Geschichte verbunden waren. Vergleich der Optionspreismodelle Diese Tabellen enthalten die Modelle, auf die im September 2006 von Tracing Techniques von Paul Cretien verwiesen wird. Musterleistungsstats Diese Tabellen enthalten mehr der Leistungsstatistiken, auf die in diesem Artikel Bezug genommen wird, auf den systembasierten systematischen Handel. Referenzartikel: Trading-Muster im Sand, November 2004. Leistungsübersicht I Erste Tabelle mit vollständiger Leistungsübersicht des Systems in Artikel diskutiert. Referenzartikel: Umkehr der Gewinne in Aktien und Anleihen, Februar 2004. Leistungsübersicht II Zweites Kalkulationsblatt mit vollständiger Performance-Zusammenfassung des Systems in Artikel diskutiert. Referenzartikel: Umkehrungen der Gewinne in Aktien und Anleihen, Februar 2004. Optionspreistabelle Diese Tabelle enthält Berechnungsblätter für jede der nackten Optionen und den gedeckten Aufruf. Referenzartikel: Abdeckung mit Optionen, März 2003. Optionspreiskalkulationstabelle Diese Kalkulationstabelle verwendet das Black-Scholes-Modell, um theoretische Preise für Put - und Call-Optionen bereitzustellen. Referenzartikel: Neue Optionen zur Erhöhung Ihres Eigenkapitals, Oktober 2002. Entsprechungstabelle Die gesamte Korrelationsmatrix, die die Beziehungen der Renditen unter gleichen und branchenübergreifenden Aktien darstellt. Referenzartikel: Zwei können besser als ein, September 2002. Mathematische Vorteil Rechner Kalkulationstabelle für die Berechnung der erwarteten Ergebnisse, mathematische Vorteil und jährliche Rendite für einen Optionen-Handel, angesichts der Input-Annahmen. Referenzartikel: Ermittlung der erwarteten Ergebnisse eines Optionshandels, August 2002. Marktstatusrechner Spreadsheet zur Ermittlung des Marktzustands gemäß Definition in den Märkten, Note Note, Juli 2002. Streams calculator Spreadsheet zur Analyse von Preisströmen, as Erklärt in Streaking Preise kann aufschlussreich, April 2002. Fibonacci-Rechner Ein Werkzeug für die Anwendung von Fibonacci-Analyse für Futures und Aktien. Referenz-Artikel: Handel mit Fibonacci Retracements, Februar 2002. Retracement-Tool Diese Tabelle führt automatisch die Retracement-Berechnungen durch, die in der Elliott-Fibonacci-Verbindung im Oktober 2001 beschrieben sind. Money-Management-Anwendung Diese Kalkulationstabelle implementiert die in 3x1 diskutierte Money Managment-Technik Software-Ranking-Tabelle Eine Kalkulationstabelle, mit der Benutzer maßgeschneiderte Rankings der Handelssoftware erstellen können, die im Day-Trading-Software-Shootout, Special Issue 1999, überprüft wird. Marktstärkenrechner Kalkulationstabelle, die Techniken für das Spielen sowohl der langfristigen als auch der kurzfristigen Marktstärke zeigt. Referenzartikel: Skimming the trend, Februar 1999. Wiederholte Maßnahmen-Tool Kalkulationstabelle mit wiederholten Maßnahmen-Analyse detailliert in Out of sample, out of touch, Januar 1999. Verhältnis-angepassten Daten, Diagramme Diese Tabellen enthalten die Diagramme und Daten für diesen Artikel für die Bewertung verwendet Systeme mit verhältnismäßig angepassten Daten. Datamining-Beispiel Diese Tabelle enthält die Diagramme und Daten für die Arbeit in einem Kohlebergwerk, Januar 1999, sowie zusätzliche Out-of-Sample-Daten nicht im Artikel gezeigt. Trading Size Calculators Berechnungen für die z-Score, Korrelation und optimale f Methoden der Geld-Management, wie in Scoring hoch und niedrig, April 1998. Bollinger Band Spreadsheet Spreadsheet, dass Bollinger-Banden berechnet. Referenz-Artikel: Bollinger-Bands sind mehr als das Auge, November 1997. MACD Crossover-Prognostizier Spreadsheet, dass der Preis für morgen, dass die MACD würde überqueren morgen kalkuliert. Referenz-Artikel: Zeichen der Crossover, Oktober 1997. EMA Crossover-Prognosekalkulationstabelle, die den Preis für morgen berechnet, die einen neun-Periode exponentiellen gleitenden Durchschnitt und eine 18-Periode EMA zu überqueren morgen verursachen würde. Referenzartikel: Smooth-Bediener, September 1997. RSI Calculator Spreadsheet, dass die relative Stärke Oszillator berechnet. Referenzartikel: Aufbau einer besseren Geschwindigkeitsfalle, Mai 1997. Stochastik-Rechner Kalkulationstabelle, die den Stochastik-Oszillator berechnet. Referenzartikel: Aufbau einer besseren Geschwindigkeitsfalle, Mai 1997. Williams R Rechner Kalkulationstabelle, die den Williams R Oszillator berechnet. Referenzartikel: Aufbau einer besseren Geschwindigkeitsfalle, Mai 1997. Momentum Calculator Kalkulationstabelle, die den Impuls-Oszillator berechnet. Referenzartikel: Ein Radar-Pistole auf Preis, April 1997. Rate-of-change Taschenrechner Kalkulationstabelle, die die Rate-of-Change-Oszillator berechnet. Referenzartikel: Ein Radar-Pistole auf Preis, April 1997. MACD Taschenrechner Kalkulationstabelle, die die gleitende durchschnittliche Konvergenz-Divergenz Oszillator berechnet. Referenzartikel: Ein Radar-Pistole auf Preis, April 1997.Spreadsheet-Systeme, Alarme und automatisierte Handel auf dieser Seite In den letzten Versionen von Sierra Chart haben wir Arbeitsmappe und Arbeitsblatt in Spreadsheet umbenannt. Die 3 Arbeitsblattstudien wurden jetzt umbenannt und beginnen mit dem Namen Spreadsheet. Worksheet Study wurde in Spreadsheet Study umbenannt. In dieser Dokumentation wird der Begriff Spreadsheet verwendet. In der Version von Sierra Chart, die ausgeführt wird, können Sie sich auf die Studiennamen beziehen, die mit dem alten Namen Worksheet beginnen. Allgemeine Informationen Die Spreadsheet System / Alert-Studie und die Spreadsheet-System für Trading-Studie können verwendet werden, um ein Trading-System oder eine Alert für Ihr Diagramm zu erstellen. Ein Handelssystem oder ein Alert bedeutet Regeln, die Sie definieren, die kaufen oder verkaufen Signale, wenn die Regeln für einen bestimmten Balken in der Tabelle wahr sind. Diese Signale werden als grafische Anzeigen auf dem Diagramm angezeigt, zeigen Warnhinweise und geben akustische Warnungen. Im Falle der Spreadsheet-System für Trading-Studie, werden auch tatsächliche Aufträge gegeben werden. Eine Warnung bezieht sich auf das Signal, das angegeben wird, wenn Ihre System / Alert-Regeln auf dem letzten Balken wahr sind. All dies wird im folgenden genauer beschrieben. Wenn Sie nur daran interessiert sind, eine Warnung zu erhalten, wenn Ihre Bedingung am Ende des Diagramms zutrifft und Sie keine historischen grafischen Anzeigen auf dem Diagramm sehen müssen, dann können Sie in den meisten Fällen einfach die einfache Warnfunktion verwenden. Und nicht die Mühe mit den fortgeschrittenen Spreadsheet-Studien. Der Unterschied zwischen der Spreadsheet-System für Trading-Studie im Vergleich zu der Spreadsheet-System / Alert-Studie ist, dass die Spreadsheet-System für Trading-Studie hat viel erweiterte Logik für die Schaffung eines Handelssystems. Mit der Spreadsheet-System für Trading-Studie können Sie Back-Tests durchführen und generieren tatsächlichen Handel Signale, die entweder simuliert werden oder können an Ihren Handelsservice geschickt werden. Standardmäßig werden sie immer simuliert. Selbst wenn Sie nicht wirklich Live-Aufträge mit dem Spreadsheet-System für Trading-Studie platzieren möchten und nur ein System erstellen und es erneut testen möchten oder einfach nur Trades manuell von dort aus platzieren möchten, möchten Sie das Spreadsheet trotzdem verwenden System für Trading-Studie anstelle der Spreadsheet-System / Alert-Studie. Wenn Sie einfach nur ein einfaches System oder einen erweiterten Alert erstellen möchten, um Ihnen einen Hinweis zu geben, wenn Ihre Regeln TRUE zurückgeben, dann möchten Sie die Spreadsheet System / Alert-Studie verwenden. Das Erstellen eines System / Alert wird durch die Eingabe einer Konditionsformel in die Formelspalten in der Kalkulationstabelle erreicht. Diese Bedingungsformel kann auf die Kurs - und Studiendaten zugreifen. Die Studiendaten werden standardmäßig beginnend bei Spalte AA ausgegeben und hängen von der Anzahl der Spalten für die Formelspalten ab. Diese Bedingungsformel wird über die gesamte Preisgrafik angewendet. Es wird kontinuierlich überwacht und kann auch gescannt werden (Sie sollten nicht automatisierten Handel von einem Scan). Diese Bedingungsformel wird verwendet, um anzuzeigen, wann eine bestimmte Bedingung für jede Tabellenspalte / Balken TRUE ist. Diese Indikationen werden verwendet, um ein Handelssystem oder eine Warnung zu erstellen. Es gibt keinen Unterschied zwischen der Art, wie Sierra Chart Systeme und Alerts macht. Beide geben grafische, textliche und hörbare Hinweise, wenn Ihre Bedingungsformel TRUE ist. Obgleich eine Textnachricht, ein hörbarer Ton und ein Handelszeichen im Fall der Spreadsheet System for Trading-Studie nur dann gegeben werden, wenn eine Bedingungsformel in der letzten Spalte der Tabelle TRUE zurückgibt. Auch wenn eine Bedingungsformel in der letzten Spalte der Tabelle WAHR ist, wird eine Markierung vor dem Studiennamen angezeigt und der Studienname wird rot markiert. Der Alarmmeldungstext und der akustische Alarmton stellen eine Warnmeldung dar. Im Fall der Spreadsheet-System für Handelsstudie werden ein Handelssignal und eine Warnung nicht unbedingt gegeben, wenn Ihre Bedingungsformel in einer der Spalten "Kaufen / Verkaufen Eintrag / Beenden" in der letzten Spalte der Tabelle TRUE zurückgibt. Es gibt eine andere Logik, die angewandt wird und andere Bedingungen erfüllt werden müssen. All dies wird auf dieser Seite erklärt. Darüber hinaus wird in dem Fall der Tabelle Spreadsheet System for Trading, wenn Ihre Bedingungsformel in der letzten Spalte in dem Diagramm TRUE zurückgibt, ignoriert, wenn Daten in das Diagramm geladen werden oder wenn das Diagramm vollständig neu berechnet wird. Hierbei handelt es sich um Sicherheitsmethoden, die verhindern, dass Trades unbeabsichtigt gegeben wird, wenn Sierra Chart nicht im Handelssimulationsmodus ist. Sierra Chart bietet einen Textalarm für Ihre Bedingungsformel, wenn sie TRUE wird, indem Sie dem Alerts-Protokoll eine detaillierte Meldung hinzufügen. Um das Alarmprotokoll zu öffnen, wählen Sie Fenster gtgt Alerts Manager gtgt Alerts Anmelden im Menü. Wenn die Bedingung in einer anderen Tabellenspalte als der letzten Diagrammspalte TRUE ist, wird nur eine grafische Angabe gegeben. Erstellen eines Systems oder Alerts Dieser Abschnitt gilt für die Spreadsheet System / Alert-Studie. Befolgen Sie die Schritt-für-Schritt-Tabellenkalkulation. Wenn Sie diesen Anweisungen folgen und Sie den Schritt zum Hinzufügen der Studie zum Diagramm erhalten, stellen Sie sicher, dass Sie die Tabelle Spreadsheet System / Alert hinzufügen. Wenn Sie zu dem Schritt gelangen, in dem Sie eine Formel eingeben, geben Sie stattdessen Ihre System - / Alert-Bedingungsformel ein. Beziehen Sie sich auf die Beispiele unten, zum Beispiel Spreadsheet System / Alert Bedingung Formeln. Im Fall der Spreadsheet-System / Alert-Studie wird die Formel aus der Tabelle im Hauptpreisgrafikbereich (Diagrammbereich 1) des Diagramms angezeigt und standardmäßig mit Auf - / Ab-Pfeil-Stilen gezeichnet. Der Zeichnungsstil kann durch die Untergrapheneinstellungen auf der Registerkarte "Untergraphen" des Fensters "Studieneinstellungen" für die Tabelle "Kalkulationstabelle" geändert werden. Anweisungen hierzu finden Sie unter Hinzufügen / Ändern von Studien. Die Formeln auf dem Spreadsheet sollten entweder einen 1 (TRUE) oder 0 (FALSE) Wert zurückgeben. Ein Wert von 1 oder TRUE zeigt an, dass die Bedingungen für die System / Alert-Formel erfüllt sind. Beispiel: Geben Sie ID0.SG43 lt 100 in Zeile 3 der Spalte K Formel ein, um einen Long-Eintrag-Alarm einzugeben, wenn der Schlusskurs kleiner als 100 ist. Long-Eintragspalte Die Spalte K ist die Spalte Long Entry. Wenn eine Zelle in dieser Spalte TRUE (1) ist, wird ein Aufwärtspfeil (abhängig vom Subgraph Draw Style) auf dem Chart mit dem niedrigen Wert des entsprechenden Balken gezeichnet, um einen Long-Eintrag für diesen Balken anzuzeigen. Long Exit Spalte Die Spalte L ist die Spalte Long Exit. Wenn eine Zelle in dieser Spalte TRUE (1) ist, wird ein Left Arrow (abhängig vom Subgraph Draw Style) auf dem Chart mit dem hohen Wert des entsprechenden Balken gezeichnet, um einen Long Exit für diesen Balken anzuzeigen. Kurze Erfassungsspalte Die Spalte M ist die Spalte Kurzeingabe. Wenn eine Zelle in dieser Spalte TRUE (1) ist, wird ein Downpfeil (abhängig vom Subgraph Draw Style) auf dem Chart mit dem hohen Wert des entsprechenden Balken gezeichnet, um einen Short-Eintrag anzuzeigen. Short Exit Spalte Die Spalte N ist die Spalte Short Exit. Wenn eine Zelle in dieser Spalte TRUE (1) ist, wird ein rechter Pfeil (abhängig vom Subgraph Draw Style) auf dem Diagramm mit dem niedrigen Wert der Leiste gezeichnet, um einen Short Exit anzuzeigen. Andere Spalten Wenn Sie andere Spalten als K. L M Oder N mit einem sichtbaren Zeichnungsstil, muss der Rückgabewert der Bedingungenformel innerhalb des Wertebereichs des Hauptpreisgraphen liegen, den Ihre Studie überlagert. Andernfalls wird die Anzeige des Diagramms nachteilig beeinflusst. Es gibt keine automatische Übersetzung von TRUE (1) oder FALSE (0) zu hohen und niedrigen Balkenwerten aus den Spalten O und höher. Eine Beispielformel, die Sie für Formelspalten O und höher verwenden können, ist IF (ID0.SG43 gt 100, C3, 0). Ändern von Spaltennamen Die oben stehenden Spaltennamen für die System - / Alert-Formel sind angegeben. Sie können die Spalten in Zeile 2 in der Tabelle umbenennen und für jede Art von Bedingung verwenden. Um eine Spalte umzubenennen, klicken Sie zweimal auf die Zelle mit dem Namen in Zeile 2 und geben einen neuen Namen ein. Steuern der Position von Pfeilen oder Untergraphenwerten Sie können in den System - / Alert-Bedingungsformeln auch andere Werte als TRUE (1) oder FALSE (0) zurückgeben. Wenn der von der Formel zurückgegebene Wert nicht TRUE (1) oder FALSE (0) ist, wird der Pfeil auf den Wert gezeichnet, den die Formel bei Verwendung der Spalten K zurückgibt. L M Oder N, wenn Sie die Spreadsheet System / Alert-Studie verwenden. Für Formelspalten O und höher werden die Untergraphenpfeile oder was auch immer der Zeichenstil ist, immer mit dem Wert gezeichnet, der von der Formel zurückgegeben wird. Wenn Sie die Spreadsheet System / Alert-Studie verwenden, können Sie nach TRUE-Ergebnissen aus Ihren System - oder Alert-Bedingungsformeln unter einer Liste von Symbolen scannen. Weitere Informationen finden Sie in der Dokumentation zum Scan-Menü. Erstellen eines Handelssystems für automatisierte Handelsabschlüsse Auftragseingabe Wenn Sie die Tabelle Spreadsheet System for Trading auf einem Live-Konto verwenden und Aufträge an den verbundenen Handelsdienst senden und die Auftragserfassung aus irgendeinem Grund beenden möchten, : Aktivieren Sie den Handelssimulationsmodus, indem Sie sicherstellen, dass ein Häkchen von Trade gtgt Trade Simulation Mode On vorhanden ist. Setzen Sie die Send Orders To Trade Service-Eingabe mit der Spreadsheet System for Trading-Studie auf NO. Setzen Sie die Spalte Automatische Handelszelle auf dem Blatt in der Tabelle, die von der Tabelle Kalkulationstabelle für Trading verwendet wird, auf TRUE. Deaktivieren Sie den Befehl Trade gtgt Auto Trading Enabled. Schritte zum Erstellen eines Handelssystems für automatisierten Handel Stellen Sie zunächst sicher, dass der automatische Handel aktiviert ist. Stellen Sie sicher, es gibt ein Häkchen von Trade gtgt Auto Trading Enabled auf dem Menü. Stellen Sie sicher, dass ein Häkchen von Trade gtgt Trade Simulation Mode On auf dem Menü ist. Dies ist so, dass Aufträge nicht an Ihren Handelsdienst geschickt werden. Stattdessen werden alle Trades simuliert. Darüber hinaus muss die Send Orders To Trade Service-Eingabe mit der Spreadsheet System for Trading-Studie auf Nein gesetzt werden. Dies verhindert auch, dass die Aufträge an den angeschlossenen Handelsdienst gesendet werden. Mit diesen beiden Einstellungen gibt es zwei Schutzschichten gegen das Versenden von tatsächlichen Aufträgen. Ausführliche Informationen finden Sie unter SendOrdersToTradeService. Gehen Sie zu einem geöffneten Diagramm oder öffnen Sie ein Diagramm mit Datei gtgt Suchsymbol. Aktivieren Sie Trade gtgt Chart Trade-Modus. Wählen Sie Trade gtgt Attach Trade Window to Chart. Wenn der Chart-Trading-Modus auf einem Chart aktiviert ist, werden die Orders und die Position aus Ihrem automatisierten Trading-System im Chart angezeigt. Indem Sie das Trade Window an die Tabelle anhängen, verfügen Sie über ein komplettes Trading-Kontrollfeld, mit dem Sie alle erforderlichen Handlungen durchführen und angehängte Aufträge festlegen können. Weitere Einzelheiten finden Sie in der Chart Trading-Dokumentation. Wählen Sie Analysis gtgt Studies im Menü. Wählen Sie auf der linken Seite die Tabelle Tabellenkalkulation für den Handel aus. Verwechseln Sie diese Studie nicht mit der Spreadsheet-Studie oder den Spreadsheet-System / Alert-Studien. Drücken Sie die Schaltfläche Hinzufügen, um die Tabelle Kalkulationstabelle für Trading-Studie zur Liste Studies to Graph hinzuzufügen. Fügen Sie für dieses Beispiel auch die Studie mit dem Namen Moving Average-Simple hinzu. Sie müssen die Einstellungen für diese Studie nicht ändern, die Vorgaben sind akzeptabel. Wir werden ein System, das kaufen wird, wenn der aktuelle Kurs bewegt sich über einem gleitenden Durchschnitt und verkaufen, wenn der aktuelle Kurs bewegt sich unter einem gleitenden Durchschnitt. Dies ist nur als Beispiel in dieser Anleitung gedacht. Dies ist nicht notwendigerweise ein praktisches Trading-System für die tatsächliche Nutzung. Wenn Sie ein anderes System als dieses Beispiel mit anderen Studien machen wollen, fügen Sie sie dem Diagramm jetzt, wenn Sie sie nicht bereits hinzugefügt haben. Passen Sie die Einstellungen so an, wie Sie sie für jede Studie benötigen. Markieren Sie das Tabellenkalkulationssystem für Trading-Studie im Listenfeld Studies to Graph. Drücken Sie die Taste Einstellungen. Im Fenster "Technische Studieneinstellungen" auf der Registerkarte "Einstellungen und Eingaben" befindet sich ein Textfeld für den Spreadsheet-Namen (unten links). Geben Sie einen Namen in das Textfeld ohne Dateierweiterung ein. Dies ist der Name der Spreadsheet, die geöffnet oder erstellt wird, um die Daten und Formeln enthalten. Der Name sollte mit dem verknüpft sein, was Ihr benutzerdefiniertes System tun wird. Damit die Aufträge an das interne Handelssimulationssystem von Sierra Chart gesendet werden, muss die Einstellung "Send Orders To Trade Service" auf "Nein" gesetzt werden. Um Sendungssignale an den angeschlossenen Trading-Service zu senden, muss der Eingang Send Orders To Trade Service auf Ja gesetzt sein. Außerdem müssen Sie den Trade gtgt Trade Simulation Mode On im Menü deaktivieren. Ausführliche Informationen finden Sie unter SendOrdersToTradeService. In der Eingabelliste finden Sie den Eingang "Maximale Position" in der gleichen Richtung. Stellen Sie diese Eingabe nach Bedarf ein. Es ist die maximale Position in Aktien oder Verträgen, die erlaubt ist. Die anderen Eingänge sind korrekt, wie sie für dieses Beispiel sind. Weitere Informationen zu allen Eingaben finden Sie unter Inputs, die für Systeme, Alerts und Automated Trading spezifisch sind. In der Liste der verfügbaren Inputs sehen Sie Eingaben mit dem Namen Column K-Z Alert. Setzen Sie diese auf die Alert-Soundnummer, die Sie hören möchten, wenn Ihre System / Alert-Bedingungsformel in der entsprechenden Spalte am letzten Takt WAHR wird. Weitere Informationen finden Sie unter Töne für akustische Alarme und E-Mail-Nachrichtenbenachrichtigungen. Drücken Sie im Fenster Technische Studieneinstellungen die Taste OK. Drücken Sie im Fenster "Diagrammstudien" die Schaltfläche OK. Die Tabellenkalkulation wird im Hintergrund geöffnet. Gehen Sie dazu, indem Sie CW im Menü auswählen. Der Name der Kalkulationstabelle wird aufgeführt und kann ausgewählt werden. Der Name wird im Fenster Studieneinstellungen für die Studie angegeben. Ein Spreadsheet enthält mehrere Blätter. Die Blattnummer, zu der die Daten ausgegeben werden, ist die gleiche Blattnummer wie die Kartennummer. Zum Beispiel wird Diagramm 2 an Sheet2 in dem Spreadsheet ausgegeben. Das Blatt kann mit dem Listenfeld oben links in dem Spreadsheet ausgewählt werden. Alle einzelnen Chartstudien werden auch am selben Blatt ausgegeben, beginnend in Spalte AA (Standardwert bei Verwendung von 16 Formelspalten). Wählen Sie das Blatt aus dem Listenfeld oben links im Tabellenblatt aus, das der Diagrammnummer entspricht, die die Tabelle Spreadsheet System for Trading enthält. Setzen Sie die Zelle J26 (Order Quantity) auf die Anzahl der Aktien oder Verträge, die Sie handeln möchten, wenn ein Auftrag gesendet wird. Dies kann auch auf 0 gesetzt werden und die Ordermenge wird aus dem Chart Trade Window ermittelt. Alle neuen Aufträge verwenden die Einstellungen des Trade Window für die Tabelle. Gehen Sie zu dem Diagramm, das die Spreadsheet System for Trading-Studie enthält. Wählen Sie Trade gtgt Open Trade-Fenster für Diagramm, um zu sehen, was die Einstellungen festgelegt sind. Zum Beispiel, wenn die Zeit in Kraft auf Tag gesetzt ist. Alle neuen Aufträge, die aus der Tabelle eingereicht werden, haben automatisch eine Time in Force of Day. Die Einstellungen, die Sie im Trade Window können auch Attached Orders. Ausführliche Anweisungen für angehängte Aufträge finden Sie auf der Seite "Angehängte Aufträge". Die folgenden Schritte geben ein Beispiel für ein Handelssystem, das Spreadsheet-Formeln verwendet. Buy Entry und Sell Entry Formeln sind gegeben. Um zu kaufen, wenn der letzte Preis von unter dem gleitenden Durchschnitt kreuzt, geben Sie in Zelle K3 (beschriftet: Buy Entry): CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14) Wo ID0.SG43: ID0.SG44 Bezieht sich auf die aktuellen und vorherigen letzten Handelspreise der Chartbars und ID2.SG13: ID2.SG14 bezieht sich auf den aktuellen und vorherigen Moving Average - Einfache Studienwerte, die sich in Spalte AA befinden. An allen Stellen in den Beispielformeln auf dieser Seite muss ID2 möglicherweise auf die tatsächliche ID-Nummer, die von der Moving-Average-Studie verwendet wird, geändert werden. Sie können die tatsächliche ID-Nummer in Zeile 1 in der Spalte anzeigen, in der die Studie ausgegeben wird. Siehe auch das folgende Bild: Sie können auch optional: AND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), J80) J8 ist die aktuelle Trade-Position Menge. Dies kann verwendet werden, um die Position ist flach, bevor Sie den Markt überprüfen. Die zugrunde liegende automatisierte Handelslogik prüft dies, kann aber in Ihrer Formel überprüft werden, um unnötige Meldungen im Trade gtgt Trade Service Log zu vermeiden. Der Nachteil ist, dass Sie nicht sehen können, auf dem Diagramm Ihrer historischen Kauf-und Verkaufssignal Pfeile, ohne einen Back-Test. Für ein Verständnis von Referenzen wie ID2.SG43. Beziehen Sie sich auf Referenzen zu Subgraphenspalten für Studien, wenn Sie die Tabellenkalkulation verwenden. Um zu verkaufen, wenn der letzte Preis von über dem gleitenden Durchschnitt kreuzt, geben Sie in Zelle M3 (beschriftet: Verkauf Eintrag): CROSSFROMABOVE (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14) Wo ID0.SG43: ID0.SG44 Bezieht sich auf die aktuellen und vorherigen letzten Handelspreise der Chartbars und ID2.SG13: ID2.SG14 bezieht sich auf die aktuellen und vorherigen Moving Average - Einfache Werte, die sich in Spalte AA befinden. Sie können auch optional: AND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), J80) J8 ist die aktuelle Trade-Position Menge. Dies kann verwendet werden, um die Position ist flach, bevor Sie den Markt überprüfen. Die zugrunde liegende automatisierte Handelslogik prüft dies, kann aber in Ihrer Formel überprüft werden, um unnötige Meldungen im Trade gtgt Trade Service Log zu vermeiden. Der Nachteil ist, dass Sie nicht sehen können, auf dem Diagramm Ihrer historischen Kauf-und Verkaufssignal Pfeile, ohne einen Back-Test. Wenn der letzte Kurs unter dem gleitenden Durchschnitt liegt, wird K3 (Kaufeingang) einen Kaufauftrag auslösen, und wenn der letzte Kurs über dem gleitenden Durchschnitt kreuzt, wird M3 (Verkaufseintrag) einen Verkaufsauftrag auslösen Kann nur ein Auftrag gesendet werden, bis ein entsprechendes Exit-Signal gegeben ist. Wenn also bereits ein Buy Entry vorhanden ist, werden alle anderen Buy Entry-Signale ignoriert, bis die Buy Exit-Formel TRUE wird und einen Sell auslöst oder die Position durch eine andere Methode abgeflacht wird. Wenn bereits ein Sell-Eintrag vorhanden ist, werden alle anderen Sell-Entry-Signale ignoriert, bis die Sell-Exit-Formel TRUE wird und eine Buy-Funktion auslöst oder die Short-Position durch eine andere Methode abgeflacht wird. Dieses Verhalten wird mit dem Erlauben mehrerer Einträge in derselben Richtungseingabe gesteuert. Wenn der Zulassungsgegenstand mit Gegenposition oder Auftragseingang zulassen auf Ja gesetzt ist. Das ist die Voreinstellung, dann, wenn es derzeit eine Long-Position, dann ein Verkauf Eintrag kann diese Position zu verlassen. Das gleiche mit einer Short-Position und Buy Entry. Wenn Sie mehrere Bedingungen für Ihr Handelssystem haben, müssen Sie die Funktion AND () verwenden. Wenn Sie zum Beispiel eine RSI (Relative Strength Index) - Studie auf dem Chart haben und die Daten in Spalte AC auf dem Sheet ausgegeben werden und Sie diese mit der Moving-Average-Studie kombinieren möchten, verwenden Sie eine ähnliche Formel für den Kauf Eintrag: UND (CROSSFROMBELOW (ID0.SG43: ID0.SG44, ID2.SG13: ID2.SG14), ID3.SG13 lt 40). ID3.SG13 verweist auf die RSI-Studie unter der Annahme, dass sie eine Studien-ID 3 hat. Weitere Informationen finden Sie unter Referenzen zu Subgraphenspalten unter Verwendung der Spreadsheet-Studie. In diesem Beispiel erstellen wir einen Buy Exit (Verkauf), der eine Position verlässt, wenn ein Stop - oder Zielwert erreicht wird. Ein Kaufausgang ist optional. Ein Verkaufseintrag könnte eine Position, die durch einen Kaufeintrag erstellt wurde, schließen. Oder die Position kann manuell oder mit einem beigefügten Auftrag geschlossen werden. In diesem Beispiel verwenden wir eine Exit-Formel, um Ihnen eine Exit-Strategie zu zeigen, die vollständig von der Spreadsheet System for Trading-Studie verwaltet wird. In Zelle L3 (beschriftet: Kaufen Exit) geben Sie OR (AND (J8 gt 0, ID0.SG43 lt J9-1), UND (J8 gt 0, ID0.SG43 gt J92)). ID0.SG43 bezieht sich auf den letzten Preis der letzten Diagrammleiste, J8 bezieht sich auf die aktuelle Positionsmenge und J9 bezieht sich auf den aktuellen Positionsdurchschnitt. Wenn diese Formel in Zelle L3 TRUE zurückgibt, wird sie eine Verkaufsreihenfolge auslösen. Was diese Formel bedeutet, ist, dass, wenn es eine Long-Position und der letzte Preis ist weniger als der Preis der Kauf Eintrag wurde bei minus 1 Full Point (Stop) gefüllt, oder es gibt eine Long-Position und der letzte Preis ist größer als der Preis Wurde der Buy Entry zu plus 2 Full Points (Limit) gefüllt und dann TRUE zurückgegeben. Dies führt dazu, dass ein Verkaufsauftrag platziert wird. Dies ist nur ein Beispiel und Sie müssen verwenden, was in Ihrem speziellen Fall angemessen ist. Hinweis . Es ist wichtig, dass die Formel eine Überprüfung enthält, dass es eine Position gt 0 gibt. Dies wird im Abschnitt Buy Exit näher erläutert. Die Zelle bezieht sich auf eine absolute Zelle und die Spalte und Zeile werden nicht angepasst, wenn die Formel automatisch ausgefüllt wird. Diese Formel ist nur für die oberste Zeile in der Tabelle relevant (entspricht dem letzten Balken im Diagramm), obwohl sie auch auf historische Balken angewendet wird. Weitere Informationen zu den Daten in der Spalte J finden Sie im Abschnitt Spezielle Spreadsheet-Ausgabewerte. Beachten Sie bei der Eingabe von Zahlen und Formeln, dass Sie die richtigen Begrenzer in den Zahlen und Formeln verwenden, gemäß den globalen Einstellungen gtgt Spreadsheet-Einstellungen gtgt Dezimal - und Funktionsbegrenzer. Weitere Informationen finden Sie im Abschnitt Dezimal - und Funktionsbegrenzer. In diesem Beispiel erstellen wir einen Sell Exit (Buy), der eine Position verlässt, wenn ein Stop oder Target erreicht ist. Ein Verkaufsausgang ist optional. Ein Kaufeintrag könnte eine Position, die durch einen Verkaufseintrag erstellt wurde, schließen. Oder die Position kann manuell oder mit einem beigefügten Auftrag geschlossen werden. In diesem Beispiel verwenden wir einen Sell Exit, um Ihnen eine Exit-Strategie zu zeigen, die vollständig von der Spreadsheet System for Trading-Studie verwaltet wird. In der Zelle N3 (bezeichnet: Sell Exit) geben Sie OR ein (AND (J8 lt 0, ID0.SG43 gt J91 ), UND (J8 lt 0, ID0.SG43 lt J9-2)). ID0.SG43 bezieht sich auf den letzten Preis der letzten Diagrammleiste, J8 bezieht sich auf die Positionsmenge, und J9 bezieht sich auf die Position Durchschnittspreis. Wenn diese Formel in Zelle N3 TRUE zurückgibt, sendet sie eine Bestellung. Was diese Formel bedeutet, ist, dass, wenn es eine kurze Position gibt UND der letzte Preis größer ist als der Preis, den der Verkaufseintrag zu plus 1 volle Stelle (Stop) gefüllt wurde, ODER gibt es eine kurze Position UND der letzte Preis ist kleiner als der Preis Wurde der Verkaufseingang mit minus 2 Vollpunkten (Limit) gefüllt und dann TRUE zurückgegeben. Dadurch wird ein Kaufauftrag platziert. Dies ist nur ein Beispiel und Sie müssen verwenden, was in Ihrem speziellen Fall angemessen ist. Hinweis . Es ist wichtig, dass die Formel eine Überprüfung enthält, dass es eine Position lt 0 gibt. Dies wird im Abschnitt Sell Exit genauer erklärt. Die Zelle bezieht sich auf eine absolute Zelle und die Spalte und Zeile werden nicht angepasst, wenn die Formel ausgefüllt wird. Diese Formel ist nur für die oberste Zeile in der Tabelle relevant (entspricht dem letzten Balken im Diagramm), obwohl sie auch auf historische Balken angewendet wird. Weitere Informationen zu den Daten in der Spalte J finden Sie im Abschnitt Spezielle Spreadsheet-Ausgabewerte. HINWEIS: Im Falle eines tatsächlichen Live-Handels werden diese Stops und Targets von Sierra Chart an den verbundenen Handelsservice gesendet, wenn die Bedingungen erfüllt sind. Dies ist notwendig, um erweiterte Exit-Strategien zu erreichen. Obwohl es sich nicht um fortgeschrittene Exit-Strategien handelt, zeigen wir Ihnen, wie Sie erweiterte Exit-Strategien ausführen können. Damit ein Auftrag so schnell wie möglich platziert werden kann, ist es eine gute Idee, das Chart Update Interval sicherzustellen. Die über Globale Einstellungen gtgt Allgemeine Einstellungen im Menü eingestellt ist, auf 1000 Millisekunden oder weniger eingestellt ist. Allerdings vermeiden, dass es sehr klein, wenn Ihr Computer ist sehr schnell. Sie können auch Attached Orders zum Beenden einer Position verwenden. Weitere Informationen finden Sie unter Initiieren von Trades mit Auto-Trading und Verwenden von Managed - oder Attached-Exits. Nachdem wir die Spreadsheet-Formeln in der Tabellenkalkulation eingegeben haben, ist es notwendig, zur Tabelle zurückzukehren. Wählen Sie im Menü die Option Fenster aus, und wählen Sie das Diagramm aus, auf das Sie die Tabelle Spreadsheet System for Trading angewendet haben, oder wählen Sie es aus den Registerkarten des Diagrammfensters, die sich entweder im oberen oder unteren Teil des Hauptfensters befinden. Um sicherzustellen, dass die eingegebenen Formeln vollständig in die Formelspalten der Tabelle kopiert werden, wählen Sie im Menü die Option gtgt Neu berechnen. Beachten Sie die Kauf - und Verkaufs-Pfeile auf der Tabelle. Diese Pfeile repräsentieren die TRUE-Werte, die in den Formelspalten von den Kaufeintrags - und Verkaufseintragsbedingungsformeln zurückgegeben werden. Standardmäßig ist der Subgraph Draw Style für die Exit-Spalten (L und N) auf Hidden gesetzt. So dass sie nicht erscheinen. In diesem Beispiel verwenden wir Exits, die auf Positionsdaten basieren, die nur für die aktuelle Position bekannt sind. So dass die Buy / Sell-Pfeile historisch nicht relevant sind. Wenn Ihre Exits auf den Kurs - und / oder Studiendaten basieren, können Sie die entsprechenden Exit-Spalten auf einen sichtbaren Draw Style setzen. Stellen Sie sicher, gibt es ein Häkchen durch Trade gtgt Auto Trading Enabled, so dass die TRUE Ergebnisse, die Ihre Bedingung Formeln, werden als Trades verarbeitet werden. Wenn das Diagramm aktualisiert wird, entweder mit Echtzeit-Streaming-Daten, die von dem verbundenen Daten-Feed oder während einer Wiedergabe empfangen werden, verursachen die Kauf - und Verkaufseintrags - und - Exit-Signale, dass Trade-Aufträge erzeugt und verarbeitet werden. Diese Signale erzeugen auch Warnmeldungen und diese können durch Auswählen von Fenster gtgt anzeigen / verbergen Alerts Manager gtgt Alerts Log im Menü angezeigt werden. Um Ihre Trade-Aufträge anzuzeigen, wählen Sie Trade gtgt Trade Activity Log im Menü. Um das Trade Service Log anzuzeigen, wählen Sie Trade gtgt Trade Service Log im Menü. Im Trade Service Log werden ignorierte Signale aus Ihren Condition Formulas angezeigt. Der nächste Schritt ist, einfach beobachten Sie Ihr System in Echtzeit durchführen, wie Ihr Diagramm aktualisiert wird, oder wiederholen Sie Ihr Diagramm auf Back-Test durchzuführen. Back-Tests durch Replays ist eine sehr gute Möglichkeit, Ihr System auf historische Daten zu testen und ein gutes Gefühl für sie. Um vom simulierten Handel zum nicht simulierten (Live) Handel zu gelangen, folgen Sie den Anweisungen von Going from Simulated Trading zu Non-Simulated (Live) Trading. Von simuliertem Handel zu nicht-simuliertem (Live) Handel Wenn und wenn Sie bereit sind, Ihr Handelssystem reale Aufträge zu senden, müssen Sie in nicht simulierten Modus gehen, indem Sie sicherstellen, dass es kein Häkchen von Trade gtgt Trade Simulation gibt Modus an . Als nächstes gehen Sie zu den Studieneinstellungen für die Tabelle Spreadsheet-System für Trading auf Ihrem Diagramm und legen Sie die Send Orders To Trade Service-Eingabe auf Ja. Zu diesem Zeitpunkt werden alle angezeigten Trading-Signale als Aufträge an Ihren Trading-Service gesendet, vorausgesetzt, dass Sie mit einem gültigen Trading-Service verbunden sind und Sie mit dem Data and Trade-Server verbunden sind (File gtgt Connect to Data Feed). Denken Sie daran, dass, wenn Sie ein simuliertes Konto mit Ihrem Trading-Service verwenden, obwohl Sie nicht im Sierra Chart Trade Simulationsmodus sind und Send Orders To Trade Service auf Ja gesetzt ist, die Aufträge noch simuliert werden. Sound für akustische Alert - und E-Mail-Mitteilungsbenachrichtigungen Sie können einen Alert-Sound angeben, der abgespielt werden soll, wenn die System - oder Alert-Bedingung in den Zellen K3 bis Z3 TRUE wird. Für die Formeln in der Tabelle, um Ton-Alerts auszulösen erfordert es ihnen. Wechseln Sie zum Studieneinstellungen-Fenster für Ihre Spreadsheet-Studie. Anweisungen hierzu finden Sie unter Ändern von Studien. Beachten Sie, dass, nachdem eine Spreadsheet-Studie auf ein Diagramm angewendet wurde, ihr Name in der Liste Studies to Graph im Diagrammstudienfenster auf den Namen der Spreadsheet-Datei, auf die es verweist, geändert wird. Auf der Registerkarte "Settings and Inputs" des Fensters "Study Settings" sehen Sie eine Liste aller verfügbaren Inputs. Sie sehen mehrere Eingänge mit den Spalten K, L, M, N, O, P, Q, R, S, T, U und V-Z Alert, mit denen Sie die für jede Spalte zu verwendende Alert-Soundnummer auswählen können. Wählen Sie die Alert-Sound-Nummer aus, die Sie verwenden möchten, oder wählen Sie Keine Alert aus, um keinen Alert-Sound abzuspielen, wenn eine Formel in den Zellen K3 bis Z3 WAHR wird. Die Spalten W bis Z verwenden dieselbe Warntonnummer wie die Spalte V. Um die für jede Alarmnummer abgespielte Audiodatei einzustellen, wählen Sie im Menü Globale Einstellungen gtgt Allgemeine Einstellungen. Sie können auch eine E-Mail-Nachricht einrichten, die gesendet werden soll, wenn ein Alert-Sound ausgelöst wird. Wenn die Spalte Zeichnungsstil für eine Spalte auf Ignorieren gesetzt ist. Dann können keine System - oder Alarmsignale durch die Blattformeln ausgelöst werden. Dies gilt jedoch nicht für Spalte K bis N, wenn Sie die Spreadsheet-System für Trading-Studie verwenden. Mit dieser Studie können Trade-Signale immer von den Sheet-Formeln unabhängig von der Draw Style-Einstellung ausgelöst werden. Initiieren von Trades mit Auto-Trading und Verwendung von Manual - oder Attached-Orders-Exits Für die Beendigung einer aktuellen Position ist es nicht erforderlich, die Formel für die Exit - oder Sell-Exit-Order-Action-Formel in der Tabelle Spreadsheet System for Trading zu verwenden. Die Exits können durch manuelle Eingabe eines Auftrags über das Trade Window durchgeführt werden. Durch Chart Trading. Oder können mit dem Feature Attached Orders (Ziele und Stopps) durchgeführt werden. In jedem dieser Fälle können Sie dann optional verlassen die Buy Exit oder Sell Exit Order Action Formel Zellen leer. Targets und Stops werden über das Trade Window auf der Registerkarte Targets konfiguriert. Eine vollständige Dokumentation finden Sie auf der Seite Attached Orders. Wenn Sie Attached Orders verwenden, vergewissern Sie sich, dass Use Attached Orders auf dem Trade Window für das Diagramm aktiviert ist, das die Spreadsheet System for Trading-Studie enthält. Weitere Informationen finden Sie unter Öffnen des Handelsfensters für Diagramm, um das Handelsfenster zu öffnen. Der Satz von angehängten Aufträgen, der auf dem Trade-Fenster für ein Diagramm eingegeben wird, wird gespeichert, wenn ein Chartbook gespeichert wird. Aufträge, die von den Berechnungszellen "Kaufen Exit" oder "Verkaufen Exit Order Action" angegeben werden, verwenden nicht die im Trade Window konfigurierten Attached Orders. Nur Kaufeintrag und Verkaufseintrag werden sie verwenden, wenn "Gebundene Aufträge verwenden" auf dem Handelsfenster aktiviert ist. Wenn Sie die automatisierte Handelsfunktionalität in Sierra Chart einsetzen, empfiehlt es sich, jederzeit manuelle Aufträge aus Sierra Chart einzutragen und zu stornieren, um etwaige unerwartete Autoverkehrsprobleme zu vermeiden, da Sierra Chart die Änderungen der Aufträge und der Trade Position nicht kennt Aus anderen Handelsprogrammen. Weitere Informationen zur Verwendung von angehängten Aufträgen mit einem automatisierten Handelssystem finden Sie unter SupportAttachedOrdersForTrading. Beide zugeordnete Aufträge verwenden und Kauf beenden und verkaufen Exit zur gleichen Zeit Es ist möglich, einen Satz von angehängten Aufträgen zu definieren, die mit Ihrer Spreadsheet System for Trading-Studie verwendet werden können, und gleichzeitig die Buy / Sell Exit-Spalten verwenden. Damit diese Funktion ordnungsgemäß funktioniert, müssen Sie die Option Alle Arbeitsaufträge auf Ausgang verlassen auf Ja setzen. Trade-Fenster Auftragsmenge mit angehängten Aufträgen Wenn Sie angehängte Aufträge mit einem Tabellenkalkulationssystem für Handelsstudien verwenden, ändert sich die Auftragsmenge auf dem Handelsfenster zur aktuellen Auftragsmenge, die in der Kalkulationstabelle angegeben ist. Der Grund dafür ist, dass die angehängten Aufträge über die Registerkarte Trade Window Targets definiert sind und es notwendig ist, die Menge des Trade Window zu aktualisieren, um der Ordermenge aus dem Handelssystem zu entsprechen, damit die Attached Orders eine passende Menge haben. Weitere Informationen zum Festlegen der Auftragsmenge für das Spreadsheet-System für Handelsstudien finden Sie unter Zelle J26 (Bestellmenge). Automatisierte erweiterte Exit-Strategien Möglicherweise möchten Sie eine Position manuell eingeben und haben dann einen automatisierten Positionsausgang, der auf bestimmten technischen Bedingungen basiert, die auf den Preis - und Studiendaten basieren können. Dies geschieht durch Verwendung der Spreadsheet-System für Trading-Studie. Weitere Informationen finden Sie im Abschnitt Erstellen eines Handelssystems für automatisierte Handelsanweisungen auf dieser Seite. Die Studie muss auf ein Diagramm des gleichen Symbols angewendet werden, dass Sie handeln. 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.


No comments:

Post a Comment