×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

GetAppInfo

443 bytes added, 13:59, 1 March 2012
<syntaxhighlight>GetAppInfo(aiRealTimeCalc)</syntaxhighlight>
Will return a value of 1 if the calling application’s calculations are based on real-time or PlayBack data; otherwise, will return a value of 0.
 
<syntaxhighlight>
[ProcessMouseEvents = true];
switch (getappinfo(aicalcreason)) begin
case CalcReason_MouseLClick : if MouseClickCtrlPressed then begin
var: var0(0), var1(0);
repeat
if 0 = var0 then begin
var0 = MouseClickDateTime;
break;
end;
until(false);
end;
end;
var1 = datetime2eltime(var0);
print("Time of the Bar = ", var1);
</syntaxhighlight>
=== Using GetAppInfo for Chart Window information ===

Navigation menu