Jump to content
Tom Next - Daytrading Community

MC - Global Variable


swz168

Recommended Posts

Hat jemand Erfahrungen mit den folgenden Built-In Funktionen von Global Variables in Multicharts?

 

GVSetNamedDouble

GVSetNamedInt

GVGetNamedDouble

GVGetNamedInt

 

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?

Link to comment
Share on other sites

  • 6 months later...

Hat jemand Erfahrungen mit den folgenden Built-In Funktionen von Global Variables in Multicharts?

 

GVSetNamedDouble

GVSetNamedInt

GVGetNamedDouble

GVGetNamedInt

 

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 by whipsaw
<> code Tag
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...