Saturday 3 June 2017

Forex R Projekt

R und Forex am Wed, 12. Oktober 2011 um 03:29 Uhr, Yves S. Garret lthidden E-Mail gt schrieb: gt Hallo alle, gt gt Ich habe vor kurzem angefangen zu lernen, über Forex und fand dieses OReilly Buch in gt Barnes amp Nobles über R. Ich kaufte es aus reiner Neugier. Ich mag, was ich sehe. Allerdings habe ich eine Frage. Hat jemand versucht, diese beiden Ideen gt zusammenzubringen in einem finanziellen und handelnden Sinn Gibt es irgendwelche Bibliotheken oder gt-Module in R, die in diesem venture gt helfen kann, habe ich nie jemanden (kenntlich oder sonst) behaupten, dass in Abwesenheit des Übergangs nie gehört Kosten, SAS ist besser als R für Equity-Modellierung. Wenn Sie auf einen solchen Anspruch stoßen, würde ich ihn gerne widerlegen. Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten. Es ist Ihnen nicht erlaubt, Anhänge hochzuladen. Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten. BB-Code ist an. Smileys sind an. [IMG] Code ist an. HTML-Code ist aus Gt versteckte E-Mail-Mailing-Liste gt stat. ethz. chmailmanlistinfor-help gt BITTE lesen Sie die Entsendungsanleitung R-project. orgposting-guide. html gt und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. Gt Dieses Thema bei Mister Wong speichern Dieses Thema bei YiGG. de speichern Dieses Thema bei Google speichern Dieses Thema bei del. icio. us speichern del. icio. us Themen-Optionen Forumregeln Es ist dir nicht erlaubt, neue Themen zu verfassen. ----- Ursprnique Nachricht ----- Von: Yves S. Garret lthidden email gt An: versteckte eMail Cc: Gesendet: 2:29 Mittwoch, 12.Oktober 2011 Betreff: RR und Forex Ich habe vor kurzem angefangen zu lernen über Forex und Fand dieses OReilly Buch in Barnes amp Nobles über R. Ich kaufte es aus reiner Neugier. Mir gefällt was ich sehe. Allerdings habe ich eine Frage. Hat jemand versucht, diese beiden Ideen zusammenzubringen, in einem finanziellen und handelnden Sinn Gibt es Bibliotheken oder Module in R, die in diesem Venture helfen können alternative HTML-Version gelöschte versteckte E-Mail-Mailing-Liste stat. ethz. chmailmanlistinfor-help BITTE lesen Sie die Posting Guide R-project. orgposting-guide. html und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. Wie bereits erwähnt, ist dies wirklich mehr eine R-SIG-Finance-Frage, aber ich würde nicht erwarten, zu viel Erklärung gibt es entweder nur Menschen, die Sie auf die Standard-R Finanzen Tools (quantmod, zooxts, TTR, RBloomberg, Und die Rmetrics Suite theres auch einige fantastische Werkzeuge in der Entwicklung, aber wenn Sie gerade Ihr erstes Buch auf R abgeholt haben, sind Sie wahrscheinlich arent bereit für die noch). Ihre Frage ist nicht besonders gut definiert: Wollen Sie nur Währung Preisreihe in R zu studieren Dies ist einfach: einfach die Daten (vielleicht aus Oanda mit quantmod :: getSymbols oder einfach durch das Einlesen durch eine der regulären Funktionen) und Studiere es aber du magst. Die eigentliche Handlung ist jedoch schwerer zu tun, nur innerhalb R: Es gibt eine sehr beliebte IBrokers API aber ich habe es nicht viel genutzt. Es klingt wie Sie sind wahrscheinlich ein Einzelhändler so, wenn Sie nicht eine bestehende Beziehung mit IBrokers youll wahrscheinlich wollen, Trades eingeben, durch welche Broker Sie derzeit verwenden. Das - das IBrokers Paket - ist die komplette einzige Lösung auf diesem Ende Im bewusst, obwohl Im sicher viele Leute ihre eigenen Work-arounds haben. Und so weit wie Erfahrungen gehen: gut, ich nehme an, dass Leute es nicht tun würden, wenn sie dachten, es gäbe kein Geld zu machen, jetzt würden sie Wenn Sie mehr lesen möchten: Überprüfen Sie die CRAN-Aufgabenansichten, wie zuvor vorgeschlagen. PS - Eine ernste Anmerkung: FX ist viel näeher an einem Nullsummenspiel als lang-equity, würde ich remiss sein, wenn ich Sie nicht warnt, um sorgfältig zu treten. Am Mi, 12. Oktober 2011 um 01.40 Uhr, Yves S. Garret lthidden E-Mail gt wrote: gt Ja, das ist, was ich meinte. Neugierig, was die Erfahrungen von einigen Leuten gt und einige Tipps waren. gt gt am Mi, 12. Oktober 2011, um 12:31 Uhr, R. Michael Weylandt gt lthidden E-Mail gt schrieb: gtgt gtgt quotThisquot zu sein, was genau gtgt gtgt in FX Traded mit R Ja, es ist jeden Tag getan, wie ich geben. Gtgt gtgt Michael gtgt gtgt Auf Wed, 12. Oktober 2011 um 8:10 Uhr, Yves S. Garret gtgt lthidden E-Mail gt wrote: gtgt gt Nein, das ist nicht das, was ich meinte. Ich war neugierig, wenn jemand jemals getan hat diese gtgt gt vor und wie gut es funktionierte. Irgendwelche Tipps für einen Anfänger gtgt gt gtgt gt am Mi, 12. Oktober 2011, um 12:19 Uhr, Liviu Andronic gtgt gt lthidden E-Mail gtwrote: gtgt gt gtgt gtgt am Mi, 12. Oktober 2011 um 03.29 Uhr, Yves S. Garret gtgt gtgt lthidden E-Mail gt schrieb: gtgt gtgt gt Hallo alle, gtgt gtgt gt gtgt gtgt gt ich vor kurzem begonnen, über Forex lernen und fand dieses gt Buch OReilly gtgt gtgt in gtgt gtgt gt Barnes amp Nobles über R. kaufte ich es aus purer Neugierde. Ich mag gtgt gtgt gt was gtgt gtgt Ich gtgt gtgt gt sehen. Allerdings habe ich eine Frage. Hat jemand versucht, diese gtgt gtgt gt zwei gtgt gtgt Ideen zu bringen gtgt gtgt gt zusammen in einer Finanz - und Handels Sinn Gibt es Bibliotheken gtgt gtgt gt oder gtgt gtgt gt Module in R, die in diesem Vorhaben unterstützen können gtgt gtgt gt gtgt gtgt gtgt gtgt (Gtgt) gtgt gtgt gtgt gtgt Ich habe noch nie jemanden gehört (wissentlich oder anderweitig) behaupten, dass in gtgt gtgt die gtgt gtgt Abwesenheit von Übergangskosten, ist SAS besser als R für Equity-Modellierung. Gtgt gtgt Wenn gtgt gtgt Sie gtgt gtgt über einen solchen Anspruch, würde ich gerne widerlegen. gtgt gtgt - David Kane gtgt gtgt R-SIG-Finance (Dezember 2004) gtgt gtgt gtgt gtgt gtgt gtgt Sie können diese Frage zu r-sig-Finance ansprechen wollen, und schauen Sie sich gtgt gtgt die Finanzen Aufgabenansicht 1. betrachtet gtgt gtgt Liviu gtgt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gtgt gtgt gtgt gtgt gtgt gtgt gt --Yves gtgt gtgt gt gtgt gtgt gt alternative HTML-Version gelöscht gtgt gtgt gt gtgt gtgt gt gtgt gtgt gt versteckte E-Mail-Mailing Liste gtgt gtgt gt stat. ethz. chmailmanlistinfor Hilfe gtgt gtgt gt BITTE die Entsendung Führung gtgt gtgt R-project. orgposting-guide. html gtgt gtgt gt und bieten kommentierte, minimal, in sich geschlossene, reproduzierbare Code liest. gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt - gtgt gtgt Wissen Sie, wie man lesen gtgt gtgt alienetworkssrtest. cfm gtgt gtgt goodies. xfce. orgprojectsapplicationsxfce4-dictspeed-Leser gtgt gtgt Wissen Sie, wie man schreibt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-Mail gtgt gtgt gtgt gt gtgt gt alternative HTML-Version gelöscht gtgt gt gtgt gt gtgt gt versteckte E-Mail-Mailing-Liste gtgt gt stat. ethz. chmailmanlistinfor Hilfe gtgt gt BITTE tun, um die Entsendung Führungs gtgt gt R-Projekt lesen. Orgposting-guide. html gtgt gt und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. Gtgt gt gt gt Antwort auf diesen Beitrag von Michael Weylandt Nur ein Kommentar über den Mangel an einer direkten R API für Nicht-IBrokers Brokerage: Natürlich ist es möglich, etwas zusammenzufügen mit rJava oder eine direkte C-Schnittstelle, aber seine nicht die glatteste Ding, wenn youve nie vertieft in die R internals und seine nicht ganz das schnellste Ding in der Welt, wenn Sie tun, sind besonders zeitaufwendige Arbeit. Bei niedrigeren Frequenzen wird dies weniger ein Problem und einfache Work-arounds wie die Verwendung einer CSV-Datei als Zwischenprodukt kann alles viel einfacher machen. Am anderen Ende des Handelsprozesses, sobald Sie beginnen, in mehr HF-Domains, theres auch das inverse Problem der Echtzeit-Verarbeitung: Im nicht besonders interessiert in der Frage, so dass ich havent viel darüber gedacht, aber ich sehe nicht besonders R-ish Art und Weise, um mit einem Live-Daten-Feed zu befassen, obwohl er in den R-SIG-Finance-Archiven ein paar Mal behandelt wurde. Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten. Es ist Ihnen nicht erlaubt, Anhänge hochzuladen. Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten. BB-Code ist an. Smileys sind an Beauftragt, die gt-Trades zu tun Mangel an API Oder ist es nur ein Schmerz, um etwas zusammenhängende gt zusammen, dass die Geschäfte tun wird gt gt Guten Tag, 12. Oktober 2011 um 15:07 Uhr, R. Michael Weylandt gt lthidden email gt schrieb : Gtgt gtgt Wie bereits erwähnt, ist dies wirklich mehr von einer gtgt R-SIG-Finance Frage, aber ich würde nicht erwarten, zu viel Erklärung gtgt gibt es entweder nur Leute, die Sie auf die Standard-R Finanzen Tools gtgt (quantmod, Zooxts, TTR, RBloomberg, und die Rmetrics Suite theres gtgt auch einige fantastische Tools in der Entwicklung, aber wenn Sie gerade gtgt Ihr erstes Buch auf R, Sie wahrscheinlich arent bereit für diejenigen noch abgeholt). Gtgt gtgt Ihre Frage ist nicht besonders gut definierte entweder: gtgt gtgt Wollen Sie nur Währung Preisreihe in R zu studieren Dies ist einfach: gtgt nur die Daten (vielleicht aus Oanda mit quantmod :: getSymbols oder gtgt einfach durch Einlesen durch alle Der regulären Funktionen) und studiere gtgt es aber du magst. Gtgt gtgt Die eigentliche Handlung ist jedoch schwerer zu tun, nur innerhalb R: gtgt gibt es eine sehr beliebte IBrokers API aber ich havent verwendet es viel. Es gtgt klingt wie Sie sind wahrscheinlich ein Einzelkaufhändler so, wenn Sie nicht eine gtgt bestehende Beziehung mit IBrokers youll wahrscheinlich wollen, geben Sie gtgt Trades durch welche Broker Sie derzeit verwenden. Das - das gtgt IBrokers Paket - ist die komplette einzige Lösung auf diesem Ende Im gtgt bewusst, obwohl Im sicher viele Leute ihre eigenen work-arounds haben. Gtgt gtgt Und so weit wie Erfahrungen gehen: Nun, ich vermute, die Leute würden nicht tun gtgt es, wenn sie dachten, es gab kein Geld gemacht werden, jetzt würden sie gtgt gtgt Wenn Sie mehr lesen wollen: überprüfen Sie die CRAN Aufgabe Ansichten, wie vorgeschlagen Vor. Gtgt gtgt Michael gtgt gtgt PS - Eine ernste Anmerkung: FX ist viel näeher an einem Nullsummenspiel als gtgt Long-Billigkeit, würde ich remiss sein, wenn ich Sie nicht warnt, um gtgt sorgfältig zu treten. Gtgt gtgt Auf Wed, 12. Oktober 2011 um 01.40 Uhr, Yves S. Garret gtgt lthidden E-Mail gt schrieb: gtgt gt Ja, das ist, was ich meinte. Neugierig, was die Erfahrungen von einigen gtgt gt Menschen gtgt gt und einige Tipps. gtgt gt gtgt gt am Mi, 12. Oktober 2011, um 12:31 Uhr, R. Michael Weylandt gtgt gt lthidden E-Mail gt schrieb: gtgt gtgt gtgt gtgt quotThisquot zu sein, was genau gtgt gtgt gtgt gtgt in FX Traded mit R Ja, es ist jeden Tag getan , Auch wenn ich tippe. gtgt gtgt gtgt gtgt Michael gtgt gtgt gtgt gtgt am Mi, 12. Oktober 2011, um 8:10 Uhr, Yves S. Garret gtgt gtgt lthidden E-Mail gt schrieb: gtgt gtgt gt Nein, das ist nicht das, was ich meinte. Ich war neugierig, wenn jemand jemals getan gtgt gtgt gt dieses gtgt gtgt gt vor und wie gut es funktionierte. Irgendwelche Tipps für einen Neuling gtgt gtgt gt gtgt gtgt gt am Mi, 12. Oktober 2011, um 12:19 Uhr, Liviu Andronic gtgt gtgt gt lthidden E-Mail gtwrote: gtgt gtgt gt gtgt gtgt gtgt am Mi, 12. Oktober 2011 um 3:29 AM, Yves S. Garret gtgt gtgt gtgt lthidden E-Mail gt schrieb: gtgt gtgt gtgt gt Hallo alle, gtgt gtgt gtgt gt gtgt gtgt gtgt gt ich vor kurzem begonnen, über Forex lernen und fand dieses gtgt gtgt gtgt gt Buch OReilly in gtgt gtgt gtgt gt Barnes Amp Nobles über R. Ich kaufte es aus reiner Neugier. Ich gtgt gtgt gt wie gtgt gtgt gtgt gt, was gtgt gtgt gtgt I gtgt gtgt gtgt gt sehen. Allerdings habe ich eine Frage. Hat jemand versucht diese zu bringen gtgt gtgt gtgt gt zwei gtgt gtgt gtgt Ideen gtgt gtgt gtgt gt zusammen in einer Finanz - und Handels Sinn Gibt es gtgt gtgt gtgt gt Bibliotheken gtgt gtgt gtgt gt oder gtgt gtgt gtgt gt Module in R, die in helfen können dieses Projekt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gt Vermögen (Eigenkapital) gtgt gtgt gtgt gtgt gtgt gtgt ich habe noch nie jemanden (knowledgable oder aus anderen Gründen) gehört behaupten, dass, in gtgt gtgt die gtgt gtgt gtgt Fehlen von Übergangskosten gtgt, SAS Ist besser als R für Eigenkapital gtgt gtgt gtgt Modellierung. Gtgt gtgt gtgt Wenn gtgt gtgt gtgt Sie gtgt gtgt gtgt über einen solchen Anspruch, würde ich gerne widerlegen. gtgt gtgt gtgt - David Kane gtgt gtgt gtgt R-SIG-Finance (Dezember 2004) gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt Sie können diese Frage zu r-sig-Finance zu adressieren, und überprüfen gtgt gtgt gtgt out gtgt gtgt gtgt die Finanzen Aufgabenansicht 1. betrachtet gtgt gtgt gtgt Liviu gtgt gtgt gtgt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt --Yves gtgt gtgt gtgt gt gtgt gtgt gtgt gt alternative HTML-Version gelöscht gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor Hilfe gtgt gtgt gtgt gt BITTE tun, um die Entsendung Führung gtgt gtgt gtgt R-project. orgposting lesen - guide. html gtgt gtgt gtgt gt und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt - gtgt gtgt gtgt Wissen Sie, wie gtgt gtgt gtgt alienetworkssrtest. cfm gtgt gtgt gtgt gtgt gtgt gtgt goodies. xfce. orgprojectsapplicationsxfce4-dictspeed-Leser gtgt gtgt lesen gtgt wissen Sie, wie man schreibt gtgt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-Mail gtgt gtgt gtgt gtgt gtgt gt gtgt gtgt gt alternative HTML-Version gelöscht gtgt gtgt gt gtgt gtgt gt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gtgt gtgt gt stat. ethz. chmailmanlistinfor Hilfe gtgt gtgt gt BITTE die Entsendung Führung gtgt gtgt gt R-project. orgposting-guide. html gtgt gtgt gt liest und bieten kommentierte, minimal, in sich geschlossene, reproduzierbare Code. Gtgt gtgt gt gtgt gt gtgt gt gt gt Dont sehen mich selbst machen Echtzeit-Trades. Wahrscheinlich ein paar Mal pro Stunde. Oh, cant Sie machen eine Steckdose zu einer anderen App in R Das wäre mein erster Ansatz. Am Mittwoch, 12. Oktober 2011, um 18:53 Uhr, R. Michael Weylandt lt versteckte E-Mail gt schrieb: gt Nur ein Kommentar zum Fehlen einer direkten R API für Nicht-IBrokers gt Makler: Natürlich ist es möglich, etwas zusammenzusetzen Mit gt rJava oder eine direkte C-Schnittstelle, aber seine nicht die glatte Sache, wenn gt youve nie vertieft in die R internals und seine nicht ganz die gt schnellste Sache in der Welt, wenn Sie vor allem gt Zeit-sensible Arbeit tun. Bei niedrigeren Frequenzen wird dies weniger von einer gt Problem und einfache Work-arounds wie die Verwendung einer CSV-Datei als Zwischenprodukt gt kann alles viel einfacher. Gt gt Auf dem anderen Ende des Trade-Prozesses, sobald Sie beginnen, in gt mehr HF-Domains, theres auch die inverse Problem der Echtzeit-gt-Verarbeitung: Im nicht besonders interessiert in der Frage, so dass ich havent dachte viel darüber, aber Ich sehe nicht eine besonders R-ish gt Weise, einen lebenden Datenfeuer zu beschäftigen, obwohl sein gewesen behandelt im gt R-SIG-Finanzarchiv ein paarmal. Gt gt Michael gt gt Am Wed, 12.10.2011 um 17:56 Uhr, Yves S. Garret gt lthidden E-Mail gt wrote: gt gt Auch, wenn Sie sagen, um den Handelsaspekt zu tun ist schwieriger, was tun gt gt gt Genau richtig Gibt es Leistungsprobleme mit dem Code, der beauftragt wird, die gt gt-Trades zu tun Mangel an API Oder ist es nur ein Schmerz, um etwas zusammenhängendes gt gt zusammenzusetzen, die die Geschäfte tun wird gt gt gt Am Mi, 12.10.2011 at 3:07 PM, R. Michael Weylandt gt gt lthidden email gt schrieb: gt gtgt gt gtgt Wie wurde auf Sie vorher gezeigt, ist dieses wirklich mehr von einer gtgt R-SIG-Finanzfrage, aber ich würde nicht zu viel Erklärung erwarten gt gtgt dort entweder nur Menschen, die Sie auf die Standard-R Finanzierungsinstrumente gt gtgt zeigt (quantmod, zooxts, TTR, RBloomberg und die Rmetrics Suite theres gt gtgt auch einige fantastische Werkzeuge in der Entwicklung, aber wenn Sie nur gt abgeholt gtgt Ihr erstes Buch Auf R, Sie wahrscheinlich arent bereit für die noch). gt gtgt gt gtgt Sie fragen ist nicht besonders gut definiert entweder: gt gtgt gt gtgt Wollen Sie nur Währung Preisreihen in R studieren Das ist ganz einfach: gt gtgt nur die Daten bekommen (vielleicht von oanda mit quantmod :: getSymbols oder gt gtgt Einfach durch das Einlesen durch eine der regulären Funktionen) und studieren gt gtgt es aber du magst. Gt gtgt gt gtgt Die eigentliche Handlung ist jedoch schwerer zu tun, nur innerhalb R: gt gtgt gibt es eine sehr beliebte IBrokers API, aber ich havent verwendet es viel. Es gt gtgt klingt wie Sie sind wahrscheinlich ein Einzelhändler so, wenn Sie nicht haben eine gtgt vorbestehende Beziehung mit IBrokers youll wahrscheinlich gt gtgt Trades eingeben, durch welche Broker Sie derzeit verwenden. Das - die gt gtgt IBrokers Paket - ist die komplette einzige Lösung auf diesem Ende Im gt gtgt bewusst, obwohl Im sicher viele Leute haben ihre eigenen Work-arounds. Gt gtgt gt gtgt Und soweit Erfahrungen gehen: Nun, ich vermute, die Leute würden nicht tun gt gtgt es, wenn sie dachten, es gab kein Geld gemacht werden, jetzt würden sie gt gtgt gt gtgt Wenn Sie mehr lesen wollen: überprüfen Sie die CRAN Task-Ansichten, wie vorgeschlagen gt vor. gt gtgt gt gtgt Michael gt gtgt gt gtgt PS - eine ernste Note: FX ist viel näher an einem Nullsummenspiel als gt gtgt lang Eigenkapital, würde ich nachlässig, wenn ich nicht warnen Sie gt gtgt vorsichtig vorgehen. Gt gtgt gt gtgt Auf Wed, 12. Oktober 2011 um 01:50 Uhr, Yves S. Garret gt gtgt lthidden E-Mail gt wrote: gt gtgt gt Ja, das ist, was ich meinte. Neugierig, was die Erfahrungen von einigen gt gtgt gt Menschen gt gtgt gt und einige Tipps. gt gtgt gt gt gtgt gt am Mi, 12. Oktober 2011, um 12:31 Uhr, R. Michael Weylandt gt gtgt gt lthidden E-Mail gt geschrieben: gt gtgt gtgt gt gtgt gtgt quotThisquot zu sein, was genau gt gtgt gtgt gt gtgt gtgt in FX Traded Mit R Ja, es geschieht jeden Tag, auch als ich tippe. gt gtgt gtgt gt gtgt gtgt Michael gt gtgt gtgt gt gtgt gtgt am Mi, 12. Oktober 2011, um 8:10 Uhr, Yves S. Garret gt gtgt gtgt lthidden E-Mail gt schrieb: gt gtgt gtgt gt Nein, das ist nicht das, was ich meinte. Ich war neugierig, wenn jemand jemals getan gt gtgt gt dieses gt gtgt gtgt gt vor und wie gut es funktionierte. Irgendwelche Tipps für einen Anfänger gt gtgt gtgt gt gt gtgt gtgt gt am Mi, 12. Oktober 2011, um 12:19 Uhr, Liviu Andronic gt gtgt gtgt gt lthidden E-Mail gtwrote: gt gtgt gtgt gt gt gtgt gtgt gtgt am Mi, 12. Oktober, 2011, um 03.29 Uhr, Yves S. Garret gt gtgt gtgt gtgt lthidden E-Mail gt schrieb: gt gtgt gtgt gtgt gt Hallo, gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt ich begann vor kurzem über Forex lernen und fanden diese gt OReilly gt Gtgt gtgt gtgt gt Buch in gt gtgt gtgt gtgt gt Barnes amp Nobles über R. Ich kaufte es aus reiner Neugier. I gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt, was gtgt gtgt gtgt I gt gtgt gtgt gtgt gt sehen. Allerdings habe ich eine Frage. Hat jemand versucht gt diese gt gtgt gtgt gtgt gt zwei gt gtgt gtgt gtgt Ideen gt gtgt gtgt gtgt gt zusammen in einer Finanz - und Handels Sinn Gibt es gt gtgt gtgt gtgt gt Bibliotheken gt gtgt gtgt gtgt gt oder gt gtgt gtgt gtgt gt zu bringen Module in R, die bei diesem Vorhaben unterstützen kann gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt Vermögen (Eigenkapital) gt gtgt gtgt gtgt gt gtgt gtgt gtgt ich habe noch nie jemanden (knowledgable oder aus anderen Gründen) gehört behaupten, dass gt in Gtgt gtgt gtgt gt gtgt gtgt gtgt Abwesenheit von Übergangskosten, ist SAS besser als R für equity gt gtgt gtgt gtgt Modellierung. Gt gtgt gtgt gtgt Wenn gtgt gtgt gtgt Sie gtgt gtgt gtgt über einen solchen Anspruch, würde ich gerne widerlegen. gt gtgt gtgt gtgt - David Kane gt gtgt gtgt gtgt R-SIG-Finance (Dezember 2004) gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt Sie können diese Frage zu r-sig-Finance zu adressieren, und überprüfen gt gtgt gtgt gtgt aus gt gtgt gtgt gtgt die Finanzen Aufgabenansicht 1. betrachtet gt gtgt gtgt gtgt Liviu gt gtgt gtgt gtgt gt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt --Yves gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt alternative HTML-Version gelöscht gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gt gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor - Hilfe gt gtgt gtgt gtgt gt tun Sie bitte die Buchungsführung gt gtgt gtgt gtgt R-project. orgposting-guide. html gt gtgt gtgt gtgt gt lesen und bieten kommentierte, minimal, in sich geschlossene, reproduzierbare gt Code. gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt - gt gtgt gtgt gtgt Wissen Sie, wie gt gtgt gtgt gtgt alienetworkssrtest. cfm gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt Leckereien zu lesen. xfce. orgprojectsapplicationsxfce4-dictspeed-Leser gt gtgt gtgt gtgt Sie wissen, wie man schreibt gt gtgt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-Mail gt gtgt gtgt gtgt gt gtgt gtgt gt gt gtgt gtgt gt alternative HTML-Version gelöscht gt gtgt gtgt gt gt gtgt gtgt gt gt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gt gtgt gtgt gt stat. ethz. chmailmanlistinfor Hilfe gt gtgt gtgt gt BITTE tun, um die Entsendung Führungs gt gtgt gtgt gt R-project. orgposting-guide. html gt gtgt lesen Gtgt gt und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. gt gtgt gtgt gt gt gtgt gt gt gtgt gt gt gt gt gt gt alternative HTML-Version gelöscht öffnen diesen Beitrag in Baumansicht Bericht Inhalt melden Re: R und Forex Ich nehme an, Sie könnten, abhängig von der Broker endet Funktionalität und R stellt Einige Socket-Unterstützung (siehe make. socket und Verbindungen unter anderem), aber ich vermute, Ihre Frage ist die Eingabe der Domäne der R-devel-Liste, wo die Experten auf dem nitty gritty könnte Ihnen bessere Antworten, als ich kann. Am 12. Oktober 2011, um 8.38 Uhr, quotYves S. Garretquot lthidden E-Mail gt schrieb: gt Dont sehen mich machen Echtzeit-Trades. Wahrscheinlich ein paar Mal pro Stunde. Oh, cant Sie machen eine Steckdose zu einer anderen App in R Das wäre mein erster Ansatz. gt gt am Mi, 12. Oktober 2011, um 6:53 Uhr, R. Michael Weylandt lthidden E-Mail gt schrieb: gt einfach einen Kommentar auf das Fehlen einer direkten R API für Nicht-IBrokers gt brokerages: natürlich seine möglich, etwas zu setzen Zusammen mit gt rJava oder eine direkte C-Schnittstelle, aber seine nicht die glatte Sache, wenn gt youve nie vertieft in die R internals und seine nicht ganz die gt schnellste Sache in der Welt, wenn Sie tun besonders gt zeitempfindliche Arbeit. Bei niedrigeren Frequenzen wird dies weniger von einer gt Problem und einfache Work-arounds wie die Verwendung einer CSV-Datei als Zwischenprodukt gt kann alles viel einfacher. Gt gt Auf dem anderen Ende des Trade-Prozesses, sobald Sie beginnen, in gt mehr HF-Domains, theres auch die inverse Problem der Echtzeit-gt-Verarbeitung: Im nicht besonders interessiert in der Frage, so dass ich havent dachte viel darüber, aber Ich sehe nicht eine besonders R-ish gt Weise, einen lebenden Datenfeuer zu beschäftigen, obwohl sein gewesen behandelt im gt R-SIG-Finanzarchiv ein paarmal. Gt gt Michael gt gt Am Wed, 12.10.2011 um 17:56 Uhr, Yves S. Garret gt lthidden E-Mail gt wrote: gt gt Auch, wenn Sie sagen, dass der Handel Aspekt ist schwieriger, was tun Sie gt gt bedeuten Genau Gibt es Leistungsprobleme mit dem Code, der beauftragt wird, die gt gt-Trades zu tun Mangel an API Oder ist es nur ein Schmerz, um etwas zusammenhängendes gt gt zusammenzusetzen, die die Trades tun wird gt gt gt Am Wed, 12.10.2011 um 3: 07.00, R. Michael Weylandt gt gt lthidden E-Mail gt geschrieben: gt gtgt gt gtgt Wie vor euch darauf hingewiesen, das ist wirklich eher ein gt gtgt R-SIG-Finance Frage, aber ich würde nicht zu viel Erklärung gt gtgt erwarten es entweder, nur Menschen, die Sie auf die Standard-R Finanzierungsinstrumente gt gtgt (quantmod zeigen, zooxts, TTR, RBloomberg und die Rmetrics Suite gt gtgt auch einige fantastische Werkzeuge in Entwicklung theres aber wenn Sie nur gt gtgt Ihr erstes Buch auf R abgeholt , Sie wahrscheinlich arent bereit für die noch). gt gtgt gt gtgt Sie fragen ist nicht besonders gut definiert entweder: gt gtgt gt gtgt Wollen Sie nur Währung Preisreihen in R studieren Das ist ganz einfach: gt gtgt nur die Daten bekommen (vielleicht von oanda mit quantmod :: getSymbols oder gt gtgt Einfach durch das Einlesen durch eine der regulären Funktionen) und studieren gt gtgt es aber du magst. Gt gtgt gt gtgt Die eigentliche Handlung ist jedoch schwerer zu tun, nur innerhalb R: gt gtgt gibt es eine sehr beliebte IBrokers API, aber ich havent verwendet es viel. Es gt gtgt klingt wie Sie sind wahrscheinlich ein Einzelhändler so, wenn Sie nicht haben eine gtgt vorbestehende Beziehung mit IBrokers youll wahrscheinlich gt gtgt Trades eingeben, durch welche Broker Sie derzeit verwenden. Das - die gt gtgt IBrokers Paket - ist die komplette einzige Lösung auf diesem Ende Im gt gtgt bewusst, obwohl Im sicher viele Leute haben ihre eigenen Work-arounds. gt gtgt gt gtgt Und so weit wie Erfahrungen gehen: gut, nehme ich an Leute würde es gt gtgt tun, wenn sie dachten, dass es kein Geld gemacht werden, jetzt würden sie gt gtgt gt gtgt Wenn Sie mehr lesen wollen: Überprüfen Sie die CRAN Wie zuvor vorgeschlagen. gt gtgt gt gtgt Michael gt gtgt gt gtgt PS - eine ernste Note: FX ist viel näher an einem Nullsummenspiel als gt gtgt lang Eigenkapital, würde ich nachlässig, wenn ich nicht warnen Sie gt gtgt vorsichtig vorgehen. Gt gtgt gt gtgt Auf Wed, 12. Oktober 2011 um 01.40 Uhr, Yves S. Garret gt gtgt lthidden E-Mail gt schrieb: gt gtgt gt Ja, das ist, was ich meinte. Neugierig, was die Erfahrungen von einigen gt gtgt gt Menschen gt gtgt gt und einige Tipps. gt gtgt gt gt gtgt gt am Mi, 12. Oktober 2011, um 12:31 Uhr, R. Michael Weylandt gt gtgt gt lthidden E-Mail gt geschrieben: gt gtgt gtgt gt gtgt gtgt quotThisquot zu sein, was genau gt gtgt gtgt gt gtgt gtgt in FX Traded Mit R Ja, es geschieht jeden Tag, auch als ich tippe. gt gtgt gtgt gt gtgt gtgt Michael gt gtgt gtgt gt gtgt gtgt am Mi, 12. Oktober 2011, um 8:10 Uhr, Yves S. Garret gt gtgt gtgt lthidden E-Mail gt schrieb: gt gtgt gtgt gt Nein, das ist nicht das, was ich meinte. Ich war neugierig, wenn jemand jemals getan gt gtgt gt dieses gt gtgt gtgt gt vor und wie gut es funktionierte. Irgendwelche Tipps für einen Anfänger gt gtgt gtgt gt gt gtgt gtgt gt am Mi, 12. Oktober 2011, um 12:19 Uhr, Liviu Andronic gt gtgt gtgt gt lthidden E-Mail gtwrote: gt gtgt gtgt gt gt gtgt gtgt gtgt am Mi, 12. Oktober, 2011, um 03.29 Uhr, Yves S. Garret gt gtgt gtgt gtgt lthidden E-Mail gt schrieb: gt gtgt gtgt gtgt gt Hallo, gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt ich begann vor kurzem über Forex lernen und fand dieses OReilly gt gtgt Gtgt gtgt gt Buch in gt gtgt gtgt gtgt gt Barnes amp Nobles über R. Ich kaufte es aus reiner Neugier. I gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt, was gtgt gtgt gtgt I gt gtgt gtgt gtgt gt sehen. Allerdings habe ich eine Frage. Hat jemand versucht, diese gt gtgt gtgt gtgt gt zwei gt gtgt gtgt gtgt Ideen gt gtgt gtgt gtgt gt zusammen in einer Finanz - und Handels Sinn zu bringen Gibt es noch gt gtgt gtgt gtgt gt Bibliotheken gt gtgt gtgt gtgt gt oder gt gtgt gtgt gtgt gt Module in R das kann bei diesem Vorhaben unterstützen gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt Vermögen (Eigenkapital) gt gtgt gtgt gtgt gt gtgt gtgt gtgt ich nie jemand (knowledgable oder aus anderen Gründen) gehört haben, behaupten, dass, in gt gtgt Gtgt gtgt gtgt gtgt gtgt Abwesenheit von Übergangskosten, SAS ist besser als R für equity gt gtgt gtgt gtgt Modellierung. Gt gtgt gtgt gtgt Wenn gtgt gtgt gtgt Sie gtgt gtgt gtgt über einen solchen Anspruch, würde ich gerne widerlegen. gt gtgt gtgt gtgt - David Kane gt gtgt gtgt gtgt R-SIG-Finance (Dezember 2004) gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt Sie können diese Frage zu r-sig-Finance zu adressieren, und überprüfen gt gtgt gtgt gtgt aus gt gtgt gtgt gtgt die Finanzen Aufgabenansicht 1. betrachtet gt gtgt gtgt gtgt Liviu gt gtgt gtgt gtgt gt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt --Yves gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt alternative HTML-Version gelöscht gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gt gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor - Hilfe gt gtgt gtgt gtgt gt tun Sie bitte die Buchungsführung gt gtgt gtgt gtgt R-project. orgposting-guide. html gt gtgt gtgt gtgt gt lesen und bieten kommentierte, minimal, in sich geschlossene, reproduzierbare Code. gt gtgt gtgt gtgt gt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt - gt gtgt gtgt gtgt Wissen Sie, wie gt gtgt gtgt gtgt alienetworkssrtest. cfm gt gtgt gtgt gtgt gt gtgt gtgt gtgt Leckereien zu lesen. xfce. orgprojectsapplicationsxfce4-dictspeed-Leser gt gtgt gtgt gtgt wissen Sie, wie gt gtgt gtgt gtgt gelöscht gt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-Mail gt gtgt gtgt gtgt gt gtgt gtgt gt gt gtgt gtgt gt alternative HTML-Version zu schreiben gt gt gtgt gtgt gt gt gtgt gtgt gt versteckte E-Mail-Mailing-Liste gt gtgt gtgt gt stat. ethz. chmailmanlistinfor Hilfe gt gtgt gtgt gt tun Sie bitte die Entsendung Führungs gt gtgt gtgt gt R-project. orgposting-guide. html gt gtgt gtgt lesen Gt und geben kommentierten, minimalen, in sich geschlossenen, reproduzierbaren Code. gt gtgt gtgt gt gt gtgt gt gt gtgt gt gt gt gt gt gt alternative HTML-Version gelöscht Im ein wenig vage, was r Hilfe und r-Entwick-Listen in Bezug auf welche Fragen stellt zu stellen und wo. Ich las ein wenig, dass diese Liste über Design und was man in R tun konnte, aber die Kodierung sollte in r-devel. Wenn Im falsch, bitte klären. Gt Ich vermute, Sie könnten, abhängig von der Broker endet Funktionalität, und R gt bietet einige Socket-Unterstützung (siehe make. socket und Verbindungen zwischen gt anderen), aber ich vermute, Ihre Frage ist die Eingabe der Domäne der R-devel gt Liste, wo die Experten auf der nitty gritty könnte Ihnen bessere Antworten gt als ich kann. Gt gt Michael gt gt gt Am 12. Oktober 2011, um 8.38 Uhr, quotYves S. Garretquot lthidden E-Mail gt gt schrieb: gt gt Dont sehen mich machen Echtzeit-Trades. Wahrscheinlich ein paar Mal eine Stunde. Oh, cant Sie eine Steckdose zu einer anderen App in R Das wäre mein gt ersten Ansatz. gt gt am Mi, 12. Oktober 2011, um 6:53 Uhr, R. Michael Weylandt lt gt versteckte E-Mail gt schrieb: gt gtgt einfach einen Kommentar auf das Fehlen einer direkten R API für Nicht-IBrokers gtgt brokerages: natürlich seine möglichen etwas zusammen mit gtgt rjava oder eine direkte C-Schnittstelle zu setzen, aber es ist nicht die glatte Sache, wenn gtgt Sie nie in die R-Interna vertieft und seine nicht ganz die gtgt schnellste Sache der Welt, wenn Sie tun, besonders gtgt zeitkritische Arbeit. Bei niedrigeren Frequenzen wird dies weniger von einem gtgt-Problem und einfache Work-arounds wie die Verwendung einer CSV-Datei als Zwischenprodukt gtgt kann alles viel einfacher. gtgt gtgt Am anderen Ende des Handelsprozesses, sobald Sie anfangen, mehr HF-Domänen immer in gtgt, Theres auch das inverse Problem der Echtzeit-gtgt Verarbeitung: Im nicht besonders daran interessiert, die Frage so gtgt ich darüber nachgedacht viel haben, aber Ich sehe nicht einen besonders R-ish gtgt Weg, um mit einem Live-Daten-Feed, obwohl seine in den gtgt R-SIG-Finance-Archive ein paar Mal behandelt. gtgt gtgt Michael gtgt gtgt am Mi, 12. Oktober 2011, um 5:56 Uhr, Yves S. Garret lthidden E-Mail gt gtgt schrieb: gtgt gt Auch wenn Sie sagen, dass der Handel Aspekt zu tun ist schwieriger, was gtgt Sie gt gtgt bedeuten genau gibt es Performance-Probleme mit dem Code beauftragt gtgt der gtgt gt tun handelt Mangel an API Oder ist es nur ein Schmerz etwas kohärentes gtgt gt zusammen zu stellen, die die Gewerke gtgt gt gtgt gt am Mi 12 Okt. 2011 tun wird bei 03.07, R. Michael Weylandt gtgt gt lthidden E-Mail gt schrieb: gtgt gtgt gtgt gtgt Wie vor euch darauf hingewiesen, das ist wirklich eher ein gtgt gtgt R-SIG-Finance Frage, aber ich würde nicht zu viel Erklärung erwarten gtgt gtgt es entweder, nur Menschen, die Sie zu den Standard-R Finanzierungsinstrumente zeigen gtgt gtgt (quantmod, zooxts, TTR, RBloomberg und die Rmetrics Suite theres gtgt gtgt auch einige fantastische Werkzeuge in der Entwicklung, aber wenn Sie gerade abgeholt gtgt gtgt Ihr erstes Buch Auf R, Sie wahrscheinlich arent bereit für die noch). gtgt gtgt gtgt gtgt Sie fragen ist nicht besonders gut definiert entweder: gtgt gtgt gtgt gtgt Wollen Sie nur Währung Preisreihen in R studieren Das ist ganz einfach: gtgt gtgt nur die Daten bekommen (vielleicht von oanda mit quantmod :: getSymbols oder gtgt gtgt Einfach durch das Einlesen durch eine der regulären Funktionen) und studieren gtgt gtgt es aber du magst. gtgt gtgt gtgt gtgt The actual act of trading, however, is harder to do solely within R: gtgt gtgt there is a very popular IBrokers API but I havent used it much. It gtgt gtgt sounds like you are probably a lone trader so if you dont have a gtgt gtgt pre-existing relationship with IBrokers youll probably want to enter gtgt gtgt trades through whichever broker you currently use. That -- the gtgt gtgt IBrokers package -- is the complete only solution on that end Im gtgt gtgt aware of, though Im sure many folks have their own work-arounds. gtgt gtgt gtgt gtgt And as far as experiences go: well, I suppose folks wouldnt be doing gtgt gtgt it if they thought there was no money to be made, now would they gtgt gtgt gtgt gtgt If you want more to read: check the CRAN task views, as suggested gtgt before. gtgt gtgt gtgt gtgt Michael gtgt gtgt gtgt gtgt PS -- A serious note: FX is much closer to a zero-sum game than gtgt gtgt long-equity, I would be remiss if I didnt warn you to tread gtgt gtgt carefully. gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 1:50 PM, Yves S. Garret gtgt gtgt lthidden email gt wrote: gtgt gtgt gt Yes, thats what I meant. Curious what the experiences were of some gtgt gtgt gt people gtgt gtgt gt and some tips. gtgt gtgt gt gtgt gtgt gt On Wed, Oct 12, 2011 at 12:31 PM, R. Michael Weylandt gtgt gtgt gt lthidden email gt wrote: gtgt gtgt gtgt gtgt gtgt gtgt quotThisquot being what exactly gtgt gtgt gtgt gtgt gtgt gtgt Traded in FX using R Yes, its done everyday, even as I type. gtgt gtgt gtgt gtgt gtgt gtgt Michael gtgt gtgt gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 8:10 AM, Yves S. Garret gtgt gtgt gtgt lthidden email gt wrote: gtgt gtgt gtgt gt No, thats not what I meant. I was curious if anyone has ever gtgt done gtgt gtgt gtgt gt this gtgt gtgt gtgt gt before and how well it worked. Any tips for a novice gtgt gtgt gtgt gt gtgt gtgt gtgt gt On Wed, Oct 12, 2011 at 12:19 AM, Liviu Andronic gtgt gtgt gtgt gt lthidden email gtwrote: gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 3:29 AM, Yves S. Garret gtgt gtgt gtgt gtgt lthidden email gt wrote: gtgt gtgt gtgt gtgt gt Hi all, gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt I recently started learning about Forex and found this gtgt OReilly gtgt gtgt gtgt gtgt gt book in gtgt gtgt gtgt gtgt gt Barnes amp Nobles about R. I bought it out of pure curiosity. I gtgt gtgt gtgt gtgt gt like gtgt gtgt gtgt gtgt gt what gtgt gtgt gtgt gtgt I gtgt gtgt gtgt gtgt gt see. However, I have a question. Has anyone tried to bring gtgt these gtgt gtgt gtgt gtgt gt two gtgt gtgt gtgt gtgt ideas gtgt gtgt gtgt gtgt gt together in a financial and trading sense Are there any gtgt gtgt gtgt gtgt gt libraries gtgt gtgt gtgt gtgt gt or gtgt gtgt gtgt gtgt gt modules in R that can aid in this venture gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt fortune(equity) gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt I have never heard anyone (knowledgable or otherwise) claim that, gtgt in gtgt gtgt gtgt gtgt the gtgt gtgt gtgt gtgt absence of transition costs, SAS is better than R for equity gtgt gtgt gtgt gtgt modeling. gtgt gtgt gtgt gtgt If gtgt gtgt gtgt gtgt you gtgt gtgt gtgt gtgt come across any such claim, I would be happy to refute it. gtgt gtgt gtgt gtgt -- David Kane gtgt gtgt gtgt gtgt R-SIG-Finance (December 2004) gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt You may want to address this question to r-sig-finance, and check gtgt gtgt gtgt gtgt out gtgt gtgt gtgt gtgt the Finance Task View 1. Regards gtgt gtgt gtgt gtgt Liviu gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt --Yves gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt alternative HTML version deleted gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt hidden email mailing list gtgt gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgt gtgt gtgt gtgt gt PLEASE do read the posting guide gtgt gtgt gtgt gtgt R-project. orgposting-guide. html gtgt gtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible gtgt code. gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt -- gtgt gtgt gtgt gtgt Do you know how to read gtgt gtgt gtgt gtgt alienetworkssrtest. cfm gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt goodies. xfce. orgprojectsapplicationsxfce4-dictspeed-reader gtgt gtgt gtgt gtgt Do you know how to write gtgt gtgt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-mail gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gt alternative HTML version deleted gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt hidden email mailing list gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgt gtgt gtgt gt PLEASE do read the posting guide gtgt gtgt gtgt gt R-project. orgposting-guide. html gtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible code. gtgt gtgt gtgt gt gtgt gtgt gt gtgt gtgt gt gtgt gt gtgt gt gtgt gt gt alternative HTML version deleted Open this post in threaded view Report Content as Inappropriate Re: R and Forex To be honest, I dont frequently have occasion to wander over to R-devel and most of what goes on over there is over my level of easy-readability but Id feel pretty confident that anything involving interface to another program on a socket or lower level is squarely their territory while file-reading and up is R-help, based on what Ive seen. The moderators may wish to correct me. Im happy to spitball ideas privately and you have my email, but Im not qualified to make specific feasibility assessments on the record so Ill have to punt if you want official answers. On Oct 12, 2011, at 9:49 PM, quotYves S. Garretquot lthidden email gt wrote: gt Im a little vague on what constitutes r-help and r-devel lists in terms of what questions to ask and where. I read a little bit that this list was about design and what you could do in R, but coding should be in r-devel. If Im wrong, please clarify. gt gt On Wed, Oct 12, 2011 at 9:12 PM, R. Michael Weylandt lthidden email gt lthidden email gt wrote: gt I suppose you could, contingent on the broker ends functionality, and R does provide some socket support (see make. socket and connections among others) but I suspect your question is entering the domain of the R-devel list where the experts on the nitty gritty could give you better answers than I can. gt gt Michael gt gt gt On Oct 12, 2011, at 8:38 PM, quotYves S. Garretquot lthidden email gt wrote: gt gtgt Dont see myself making real-time trades. Most likely a few times an hour. Oh, cant you make a socket to another app in R That would be my first approach. gtgt gtgt On Wed, Oct 12, 2011 at 6:53 PM, R. Michael Weylandt lthidden email gt wrote: gtgt Just a comment on the lack of a direct R API for non-IBrokers gtgt brokerages: of course its possible to put something together using gtgt rJava or a direct C interface, but its not the smoothest thing if gtgt youve never delved into the R internals and its not quite the gtgt fastest thing in the world if you are doing particularly gtgt time-sensitive work. At lower frequencies, this becomes less of an gtgt issue and simple work-arounds like using a csv file as an intermediate gtgt can make everything much easier. gtgt gtgt On the other end of the trade process, once you start getting into gtgt more HF domains, theres also the inverse problem of real-time gtgt processing: Im not particularly interested in the question so I gtgt havent thought much about it, but I dont see a particularly R-ish gtgt way to deal with a live data feed, though its been dealt with in the gtgt R-SIG-Finance archives a couple of times. gtgt gtgt Michael gtgt gtgt On Wed, Oct 12, 2011 at 5:56 PM, Yves S. Garret gtgt lthidden email gt wrote: gtgt gt Also, when you say to do the trading aspect is more difficult, what do you gtgt gt mean exactly Are there performance issues with the code tasked to do the gtgt gt trades Lack of API Or is it just a pain to put something coherent gtgt gt together that will do the trades gtgt gt gtgt gt On Wed, Oct 12, 2011 at 3:07 PM, R. Michael Weylandt gtgt gt lthidden email gt wrote: gtgt gtgt gtgt gtgt As was pointed out to you before, this is really more of an gtgt gtgt R-SIG-Finance question, but I wouldnt expect too much explanation gtgt gtgt there either, just people pointing you to the standard R finance tools gtgt gtgt (quantmod, zooxts, TTR, RBloomberg, and the Rmetrics suite theres gtgt gtgt also some fantastic tools in development but if you just picked up gtgt gtgt your first book on R, you probably arent ready for those yet). gtgt gtgt gtgt gtgt You question isnt particularly well-defined either: gtgt gtgt gtgt gtgt Do you just want to study currency price series in R This is simple: gtgt gtgt just get the data (perhaps from oanda using quantmod::getSymbols or gtgt gtgt simply by reading in through any of the regular functions) and study gtgt gtgt it however you like. gtgt gtgt gtgt gtgt The actual act of trading, however, is harder to do solely within R: gtgt gtgt there is a very popular IBrokers API but I havent used it much. It gtgt gtgt sounds like you are probably a lone trader so if you dont have a gtgt gtgt pre-existing relationship with IBrokers youll probably want to enter gtgt gtgt trades through whichever broker you currently use. That -- the gtgt gtgt IBrokers package -- is the complete only solution on that end Im gtgt gtgt aware of, though Im sure many folks have their own work-arounds. gtgt gtgt gtgt gtgt And as far as experiences go: well, I suppose folks wouldnt be doing gtgt gtgt it if they thought there was no money to be made, now would they gtgt gtgt gtgt gtgt If you want more to read: check the CRAN task views, as suggested before. gtgt gtgt gtgt gtgt Michael gtgt gtgt gtgt gtgt PS -- A serious note: FX is much closer to a zero-sum game than gtgt gtgt long-equity, I would be remiss if I didnt warn you to tread gtgt gtgt carefully. gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 1:50 PM, Yves S. Garret gtgt gtgt lthidden email gt wrote: gtgt gtgt gt Yes, thats what I meant. Curious what the experiences were of some gtgt gtgt gt people gtgt gtgt gt and some tips. gtgt gtgt gt gtgt gtgt gt On Wed, Oct 12, 2011 at 12:31 PM, R. Michael Weylandt gtgt gtgt gt lthidden email gt wrote: gtgt gtgt gtgt gtgt gtgt gtgt quotThisquot being what exactly gtgt gtgt gtgt gtgt gtgt gtgt Traded in FX using R Yes, its done everyday, even as I type. gtgt gtgt gtgt gtgt gtgt gtgt Michael gtgt gtgt gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 8:10 AM, Yves S. Garret gtgt gtgt gtgt lthidden email gt wrote: gtgt gtgt gtgt gt No, thats not what I meant. I was curious if anyone has ever done gtgt gtgt gtgt gt this gtgt gtgt gtgt gt before and how well it worked. Any tips for a novice gtgt gtgt gtgt gt gtgt gtgt gtgt gt On Wed, Oct 12, 2011 at 12:19 AM, Liviu Andronic gtgt gtgt gtgt gt lthidden email gtwrote: gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 3:29 AM, Yves S. Garret gtgt gtgt gtgt gtgt lthidden email gt wrote: gtgt gtgt gtgt gtgt gt Hi all, gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt I recently started learning about Forex and found this OReilly gtgt gtgt gtgt gtgt gt book in gtgt gtgt gtgt gtgt gt Barnes amp Nobles about R. I bought it out of pure curiosity. I gtgt gtgt gtgt gtgt gt like gtgt gtgt gtgt gtgt gt what gtgt gtgt gtgt gtgt I gtgt gtgt gtgt gtgt gt see. However, I have a question. Has anyone tried to bring these gtgt gtgt gtgt gtgt gt two gtgt gtgt gtgt gtgt ideas gtgt gtgt gtgt gtgt gt together in a financial and trading sense Are there any gtgt gtgt gtgt gtgt gt libraries gtgt gtgt gtgt gtgt gt or gtgt gtgt gtgt gtgt gt modules in R that can aid in this venture gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt fortune(equity) gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt I have never heard anyone (knowledgable or otherwise) claim that, in gtgt gtgt gtgt gtgt the gtgt gtgt gtgt gtgt absence of transition costs, SAS is better than R for equity gtgt gtgt gtgt gtgt modeling. gtgt gtgt gtgt gtgt If gtgt gtgt gtgt gtgt you gtgt gtgt gtgt gtgt come across any such claim, I would be happy to refute it. gtgt gtgt gtgt gtgt -- David Kane gtgt gtgt gtgt gtgt R-SIG-Finance (December 2004) gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt You may want to address this question to r-sig-finance, and check gtgt gtgt gtgt gtgt out gtgt gtgt gtgt gtgt the Finance Task View 1. Regards gtgt gtgt gtgt gtgt Liviu gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt --Yves gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt alternative HTML version deleted gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gt hidden email mailing list gtgt gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgt gtgt gtgt gtgt gt PLEASE do read the posting guide gtgt gtgt gtgt gtgt R-project. orgposting-guide. html gtgt gtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible code. gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt -- gtgt gtgt gtgt gtgt Do you know how to read gtgt gtgt gtgt gtgt alienetworkssrtest. cfm gtgt gtgt gtgt gtgt gtgt gtgt gtgt gtgt goodies. xfce. orgprojectsapplicationsxfce4-dictspeed-reader gtgt gtgt gtgt gtgt Do you know how to write gtgt gtgt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-mail gtgt gtgt gtgt gtgt gtgt gtgt gtgt gt gtgt gtgt gtgt gt alternative HTML version deleted gtgt gtgt gtgt gt gtgt gtgt gtgt gt gtgt gtgt gtgt gt hidden email mailing list gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgt gtgt gtgt gt PLEASE do read the posting guide gtgt gtgt gtgt gt R-project. orgposting-guide. html gtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible code. gtgt gtgt gtgt gt gtgt gtgt gt gtgt gtgt gt gtgt gt gtgt gt gtgt gt alternative HTML version deleted Yves and Michael, R-devel is the place for programming questions that would be confusing to most people who follow R-help. Posting to R-devel would make sense if youve written socket connections between applications in other languages and are having trouble sorting out how to do it in R. If youve never written a socket connection before, R-devel is not the right place to post. Skim the posts over the past few weeks to get a feel for the level of discussion. That should help you decide if your question fits. Stack Overflow is another good resource for that weird middle-ground between R-help and R-devel. Best, -- Joshua Ulrich FOSS Trading: fosstrading On Wed, Oct 12, 2011 at 9:05 PM, R. Michael Weylandt lthidden email gt lthidden email gt wrote: gt To be honest, I dont frequently have occasion to wander over to R-devel and most of what goes on over there is over my level of easy-readability but Id feel pretty confident that anything involving interface to another program on a socket or lower level is squarely their territory while file-reading and up is R-help, based on what Ive seen. The moderators may wish to correct me. gt gt Im happy to spitball ideas privately and you have my email, but Im not qualified to make specific feasibility assessments on the record so Ill have to punt if you want official answers. gt gt Michael gt gt On Oct 12, 2011, at 9:49 PM, quotYves S. Garretquot lthidden email gt wrote: gt gtgt Im a little vague on what constitutes r-help and r-devel lists in terms of what questions to ask and where. I read a little bit that this list was about design and what you could do in R, but coding should be in r-devel. If Im wrong, please clarify. gtgt gtgt On Wed, Oct 12, 2011 at 9:12 PM, R. Michael Weylandt lthidden email gt lthidden email gt wrote: gtgt I suppose you could, contingent on the broker ends functionality, and R does provide some socket support (see make. socket and connections among others) but I suspect your question is entering the domain of the R-devel list where the experts on the nitty gritty could give you better answers than I can. gtgt gtgt Michael gtgt gtgt gtgt On Oct 12, 2011, at 8:38 PM, quotYves S. Garretquot lthidden email gt wrote: gtgt gtgtgt Dont see myself making real-time trades. Most likely a few times an hour. Oh, cant you make a socket to another app in R That would be my first approach. gtgtgt gtgtgt On Wed, Oct 12, 2011 at 6:53 PM, R. Michael Weylandt lthidden email gt wrote: gtgtgt Just a comment on the lack of a direct R API for non-IBrokers gtgtgt brokerages: of course its possible to put something together using gtgtgt rJava or a direct C interface, but its not the smoothest thing if gtgtgt youve never delved into the R internals and its not quite the gtgtgt fastest thing in the world if you are doing particularly gtgtgt time-sensitive work. At lower frequencies, this becomes less of an gtgtgt issue and simple work-arounds like using a csv file as an intermediate gtgtgt can make everything much easier. gtgtgt gtgtgt On the other end of the trade process, once you start getting into gtgtgt more HF domains, theres also the inverse problem of real-time gtgtgt processing: Im not particularly interested in the question so I gtgtgt havent thought much about it, but I dont see a particularly R-ish gtgtgt way to deal with a live data feed, though its been dealt with in the gtgtgt R-SIG-Finance archives a couple of times. gtgtgt gtgtgt Michael gtgtgt gtgtgt On Wed, Oct 12, 2011 at 5:56 PM, Yves S. Garret gtgtgt lthidden email gt wrote: gtgtgt gt Also, when you say to do the trading aspect is more difficult, what do you gtgtgt gt mean exactly Are there performance issues with the code tasked to do the gtgtgt gt trades Lack of API Or is it just a pain to put something coherent gtgtgt gt together that will do the trades gtgtgt gt gtgtgt gt On Wed, Oct 12, 2011 at 3:07 PM, R. Michael Weylandt gtgtgt gt lthidden email gt wrote: gtgtgt gtgt gtgtgt gtgt As was pointed out to you before, this is really more of an gtgtgt gtgt R-SIG-Finance question, but I wouldnt expect too much explanation gtgtgt gtgt there either, just people pointing you to the standard R finance tools gtgtgt gtgt (quantmod, zooxts, TTR, RBloomberg, and the Rmetrics suite theres gtgtgt gtgt also some fantastic tools in development but if you just picked up gtgtgt gtgt your first book on R, you probably arent ready for those yet). gtgtgt gtgt gtgtgt gtgt You question isnt particularly well-defined either: gtgtgt gtgt gtgtgt gtgt Do you just want to study currency price series in R This is simple: gtgtgt gtgt just get the data (perhaps from oanda using quantmod::getSymbols or gtgtgt gtgt simply by reading in through any of the regular functions) and study gtgtgt gtgt it however you like. gtgtgt gtgt gtgtgt gtgt The actual act of trading, however, is harder to do solely within R: gtgtgt gtgt there is a very popular IBrokers API but I havent used it much. It gtgtgt gtgt sounds like you are probably a lone trader so if you dont have a gtgtgt gtgt pre-existing relationship with IBrokers youll probably want to enter gtgtgt gtgt trades through whichever broker you currently use. That -- the gtgtgt gtgt IBrokers package -- is the complete only solution on that end Im gtgtgt gtgt aware of, though Im sure many folks have their own work-arounds. gtgtgt gtgt gtgtgt gtgt And as far as experiences go: well, I suppose folks wouldnt be doing gtgtgt gtgt it if they thought there was no money to be made, now would they gtgtgt gtgt gtgtgt gtgt If you want more to read: check the CRAN task views, as suggested before. gtgtgt gtgt gtgtgt gtgt Michael gtgtgt gtgt gtgtgt gtgt PS -- A serious note: FX is much closer to a zero-sum game than gtgtgt gtgt long-equity, I would be remiss if I didnt warn you to tread gtgtgt gtgt carefully. gtgtgt gtgt gtgtgt gtgt On Wed, Oct 12, 2011 at 1:50 PM, Yves S. Garret gtgtgt gtgt lthidden email gt wrote: gtgtgt gtgt gt Yes, thats what I meant. Curious what the experiences were of some gtgtgt gtgt gt people gtgtgt gtgt gt and some tips. gtgtgt gtgt gt gtgtgt gtgt gt On Wed, Oct 12, 2011 at 12:31 PM, R. Michael Weylandt gtgtgt gtgt gt lthidden email gt wrote: gtgtgt gtgt gtgt gtgtgt gtgt gtgt quotThisquot being what exactly gtgtgt gtgt gtgt gtgtgt gtgt gtgt Traded in FX using R Yes, its done everyday, even as I type. gtgtgt gtgt gtgt gtgtgt gtgt gtgt Michael gtgtgt gtgt gtgt gtgtgt gtgt gtgt On Wed, Oct 12, 2011 at 8:10 AM, Yves S. Garret gtgtgt gtgt gtgt lthidden email gt wrote: gtgtgt gtgt gtgt gt No, thats not what I meant. I was curious if anyone has ever done gtgtgt gtgt gtgt gt this gtgtgt gtgt gtgt gt before and how well it worked. Any tips for a novice gtgtgt gtgt gtgt gt gtgtgt gtgt gtgt gt On Wed, Oct 12, 2011 at 12:19 AM, Liviu Andronic gtgtgt gtgt gtgt gt lthidden email gtwrote: gtgtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt On Wed, Oct 12, 2011 at 3:29 AM, Yves S. Garret gtgtgt gtgt gtgt gtgt lthidden email gt wrote: gtgtgt gtgt gtgt gtgt gt Hi all, gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gt I recently started learning about Forex and found this OReilly gtgtgt gtgt gtgt gtgt gt book in gtgtgt gtgt gtgt gtgt gt Barnes amp Nobles about R. I bought it out of pure curiosity. I gtgtgt gtgt gtgt gtgt gt like gtgtgt gtgt gtgt gtgt gt what gtgtgt gtgt gtgt gtgt I gtgtgt gtgt gtgt gtgt gt see. However, I have a question. Has anyone tried to bring these gtgtgt gtgt gtgt gtgt gt two gtgtgt gtgt gtgt gtgt ideas gtgtgt gtgt gtgt gtgt gt together in a financial and trading sense Are there any gtgtgt gtgt gtgt gtgt gt libraries gtgtgt gtgt gtgt gtgt gt or gtgtgt gtgt gtgt gtgt gt modules in R that can aid in this venture gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gt fortune(equity) gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt I have never heard anyone (knowledgable or otherwise) claim that, in gtgtgt gtgt gtgt gtgt the gtgtgt gtgt gtgt gtgt absence of transition costs, SAS is better than R for equity gtgtgt gtgt gtgt gtgt modeling. gtgtgt gtgt gtgt gtgt If gtgtgt gtgt gtgt gtgt you gtgtgt gtgt gtgt gtgt come across any such claim, I would be happy to refute it. gtgtgt gtgt gtgt gtgt -- David Kane gtgtgt gtgt gtgt gtgt R-SIG-Finance (December 2004) gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt You may want to address this question to r-sig-finance, and check gtgtgt gtgt gtgt gtgt out gtgtgt gtgt gtgt gtgt the Finance Task View 1. Regards gtgtgt gtgt gtgt gtgt Liviu gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt 1 cran. at. r-project. orgwebviewsFinance. html gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gt --Yves gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gt alternative HTML version deleted gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gt hidden email mailing list gtgtgt gtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgtgt gtgt gtgt gtgt gt PLEASE do read the posting guide gtgtgt gtgt gtgt gtgt R-project. orgposting-guide. html gtgtgt gtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible code. gtgtgt gtgt gtgt gtgt gt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt -- gtgtgt gtgt gtgt gtgt Do you know how to read gtgtgt gtgt gtgt gtgt alienetworkssrtest. cfm gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gtgt goodies. xfce. orgprojectsapplicationsxfce4-dictspeed-reader gtgtgt gtgt gtgt gtgt Do you know how to write gtgtgt gtgt gtgt gtgt garbl. homecast. net garblstylemanuale. htme-mail gtgtgt gtgt gtgt gtgt gtgtgt gtgt gtgt gt gtgtgt gtgt gtgt gt alternative HTML version deleted gtgtgt gtgt gtgt gt gtgtgt gtgt gtgt gt gtgtgt gtgt gtgt gt hidden email mailing list gtgtgt gtgt gtgt gt stat. ethz. chmailmanlistinfor-help gtgtgt gtgt gtgt gt PLEASE do read the posting guide gtgtgt gtgt gtgt gt R-project. orgposting-guide. html gtgtgt gtgt gtgt gt and provide commented, minimal, self-contained, reproducible code. gtgtgt gtgt gtgt gt gtgtgt gtgt gt gtgtgt gtgt gt gtgtgt gt gtgtgt gt gtgtgt gtgt gt gt alternative HTML version deleted gt gt gt hidden email mailing list gt stat. ethz. chmailmanlistinfor-help gt PLEASE do read the posting guide R-project. orgposting-guide. html gt and provide commented, minimal, self-contained, reproducible code. gtMQL4 - gt R-Project - Interface Library Hello fellas at first a big thanks to 7bit for sharing his sourcecode of this API. Absolutely helpful in many regards. We all owe him one. I had some needs to have multicommand support in this API and have implemented it here. Now its possible to send more than one command to R from this API: RExecute(R. ProcHandle, quotd lt - head(tail(histr, sampleCountpOffs), sampleCount - pOffs 2)quot LineEnding quotd lt - as. xts(d, order. byas. POSIXct(dTimestamp, origin1970-01-01 00:00, tzUTC))quot LineEnding quotz lt - head(zoo(d,2:6), sampleCount). Good work, Naddmer. So can I send multiple R commmands in parallel with your new plugin now or maybe I can still use 7bits old version and put a Rx(source(quotcommand. Rquot)) for batch mode Thanks. Note that the first line in the start() function has a condition using the thistime variable that exits (return) if Time0 thistime. The initialization init() has as its purpose initializing the thistime variable to some value other than Time0 so that start() can run all the way through without exiting on the first line, on the first load of the EA. I hope that makes sense. Thanks, EZFX. I will check it out myself, testing is all about learning. -) Good work, Naddmer. So can I send multiple R commmands in parallel with your new plugin now or maybe I can still use 7bits old version and put a Rx(source(quotcommand. Rquot)) for batch mode Thanks. you can - of course - still use the quotsource()quot function of R to run multiline R commands. Without this extension this would have been the only way to run multiline commands (e. g. control structures). The old API hung the R-process when you tried to do that as it was waiting for a new prompt line which never came. This is a backwards compatible extension to the API which implements: Multiline support for RExecute() Copy a batch of OHLC-values from Metatrader to R and avoid the pretty slow loop in MQL using RAssignOHLC(). You mentioned that the eventhandler. mqh was missing: I forgot to post this. Hier sind sie. Note that this version of quotR-Samplequot makes full use of the multiline-support as well as of the RAssignOHLC() feature. The R prediction code is joined together in the init() procedure of the indicator here: . and then the whole command cluster is passed to R to get the job done here: Note that the matrix quothistrquot contains the whole bunch of MT4 candles available in the history Some fixes (had some obscure crashes) - and another example of the multiline inline code (function declaration). I also removed the eventhandler. mqh because there is a onBar() eventhandler in MQL4 now. Will have to see how it works out. And just for the kicks there is now a function declaration inside the init() which is used in the onBar() procedure of the indicator resp in the doRDraw() procedure which is called from here. The DbgView look of the preparation of the function call as well as its first call is pictured below. Attached Image (click to enlarge) As one can see there is the function declaration of a function quotgetHistquot which returns the specified data. frame to the variable histr. Im not too intimate with that WideStringStringAnsiStringUtf8String of Lazarus as yet. quotStringquot and quotpCharquot was just fine to me until now. I might well overlooked some nifties. So I would be glad if you pointed them out to me. MQL4 - gt R-Project - Interface Library Keywords: mt4R. dll, mt4R. mqh, R, Metatrader maybe some of you want to experiment with my MT4 - gt R interface that allows one to start as many R sessions (usually one per running EA), transfer data forth and back and call R functions. The R sessions will be run as separate processes in the background but the API towards mql4 are synchronous function calls, no ugly text files writing and polling. Communication goes through stdio pipes to and from each of the R processes. In this. zip file are the needed files (mt4R. mqh and mt4R. dll) for running this thing. The. mhq file also contains all API documentation and other needed information. mt4R-1.3.0.25.zip 101 KB 3,682 downloads Uploaded Nov 6, 2010 6:40pm And optionally for those interested in how the DLL works below is the dll source code (it needs FPC 2.4.2 or newer to compile. You should install a current snapshot of LazarusFPC with a 2.4.3 compiler, you will find a current snapshot installer (IDE and Compiler in one package) for win32 on ftp:ftp. freepascal. orgpublazarussnapshots ). Here is the source: mt4Rsource-1.3.0.25.zip 19 KB 2,301 downloads Uploaded Nov 6, 2010 6:40pm The above files are updated to the latest version. Forget the preview files in post 2, they are old. Joined Mar 2009 Status: Member 1,261 Posts updated the files in post 1 API changed, therefore we have a change in the version number 1.1 - gt 1.2 and a new version of the. mqh is needed. new: RExecuteAsync() to execute code in the background and not wait new: RIsBusy() usually called at the beginning of start() to detect whether the previous call to RExecuteAsync() during an earlier tick is still running. These two new functions are useful for making indicators. Unlike EAs and scripts an indicator runs in the GUI thread of MT4 and may not block. The start() function must immediately return. The suggested pattern now is to call RIsBusy() on the beginning of start() and do nothing if this returns true and only if R is idle you can use R functions and the last R call in the start function should be the one that starts the long running number-crunching task and should be done with RExecuteAsync() instead of RExecute(). After that the start() function can return while R will continue running in the background. The next ticks will then use RIsBusy() to check whether it has finished. If one of the R functions is called while it is still executing another command it will simply wait until it is idle again and then execute the command. Only one R comand can execute at a time and there is one lock per R session to ensure this. There will be no errors (only debug messages), everything will still happen in the correct order, only your start() function might not return quickly if it is forced to wait for the lock, so be careful to intelligently use RIsBusy() and intelligently organize the control flow to go through start with minimal blocking. If you do EAs then all this is not necessary (or even contraproductive), here the start() function may block as long as it wants and for the strategy tester this is even needed. RExecuteAsync() is only a workaround for indicators and MT4s ugly design flaw of running all indicators in the main thread, here you need this to do long running tasks asynchronously to make start() always return quickly. Tomorrow I will post a little example indicator. Joined Sep 2010 Status: Member 45 Posts Can you please share your auto-regression indicator for MT4 Joined Mar 2009 Status: Member 1,261 Posts Here it is: (save it as an indicator in the indicators folder) This will keep the CPU busy all the time but it will not block the MT4 GUI. The start() function will always immediately return, the only long running command is the call to ar() and this is done in RExecuteAsync() and the whole start() function is written in a way that this is the very last R call before we return (this is important), therefore all the ifs and the somehow twisted control flow (plot the old prediction before we fit a new model). This indicator is an experimental quick amp dirty prototype that I wrote for testing the async execution. Maybe some code could be added to make sure it executes only on bar open but then it should loop from 1 to back and not from 0 to back-1 because on bar open Close0 and Close1 are from the same time and not 1 hour apart and also the indicator shift must be reduced by 1 bar to predict the current close and not the next. Here is how it looks when attached to an eurusd H1 chart (It seems it works best on higher time frames (H1 and longer) that seem to show strong periodicity, and eurusd seems to work very well): Attached Image (click to enlarge) Attached Image (click to enlarge)


No comments:

Post a Comment