swz168 Posted April 29, 2011 Report Posted April 29, 2011 Hat jemand Erfahrungen mit den folgenden Built-In Funktionen von Global Variables in Multicharts? GVSetNamedDoubleGVSetNamedIntGVGetNamedDoubleGVGetNamedInt Leider sind die Funktionen seitens Multicharts nicht dokumentiert. Wie prüfe ich, ob schon eine globale Variable erstellt wurde? Gibt es gute Gründe, warum man die externe Version Global Variable 2.2 ( GV2.2 ) verwenden sollte?
swisstrader Posted October 31, 2011 Report Posted October 31, 2011 (edited) Hat jemand Erfahrungen mit den folgenden Built-In Funktionen von Global Variables in Multicharts? GVSetNamedDoubleGVSetNamedIntGVGetNamedDoubleGVGetNamedInt Leider sind die Funktionen seitens Multicharts nicht dokumentiert. Wie prüfe ich, ob schon eine globale Variable erstellt wurde? Gibt es gute Gründe, warum man die externe Version Global Variable 2.2 ( GV2.2 ) verwenden sollte? Hi, also ich programmiere mit ELCollections.dll, denn damit kannst du auch backtesting machen,. mit Global Varaibale geht das nicht.Ausserdem hat ELC so viele weitere features, einfach genial erkannt und programmiert von Bamboo (im TradeStation Forum veröffentlicht).Ich habe die ELC Kommandos direkt in meinen Codes integriert und sämtliche ELC Funktionen eliminiert, das spart Resourcen. Hier ein Code Beispiel, wie man die REWIND Funktion substituiert: //MapNN external method: "ELCollections.dll", int, "MapNN_Clear", double; external method: "ELCollections.dll", int, "MapNN_Count", double; external method: "ELCollections.dll", bool, "MapNN_Exists", double, double; external method: "ELCollections.dll", double, "MapNN_Get", double, double; external method: "ELCollections.dll", double, "MapNN_New"; external method: "ELCollections.dll", bool, "MapNN_IterMore", double; external method: "ELCollections.dll", double, "MapNN_IterKey", double; external method: "ELCollections.dll", double, "MapNN_IterValue", double; external method: "ELCollections.dll", int, "MapNN_IterNext", double; external method: "ELCollections.dll", int, "MapNN_Put", double, double, double; external method: "ELCollections.dll", int, "MapNN_Rewind", double; //On Destroy Handler external: "ELCollections.dll", int, "_OnDestroyHandler", IEasyLanguageObject; #Events OnDestroy = _OnDestroyHandler; #End; cntMapX=[b]MapNN_Count[/b](sessPriceVPO); N=[b]MapNN_Rewind[/b](sessPriceVPO); for ii=1 to cntMapX begin if [b]MapNN_IterMore[/b](sessPriceVPO) then begin key=[b]MapNN_IterKey[/b](sessPriceVPO); val=[b]MapNN_IterValue[/b](sessPriceVPO); // ... here your operation code [b]MapNN_IterNext[/b](sessPriceVPO); end; end; -swisstrader Edited October 31, 2011 by whipsaw <> code Tag
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now