PureBytes Links
Trading Reference Links
|
I am having a little trouble with the Hashums DLL.
>From a system I am making the following calls:
putAt("Global", "CurrentBar", CurrentBar);
putAt("Global", "Position", Mkt_Pos);
putAT("Global", "Long_Stop", LongExitTarget);
putAT("Global", "Short_Stop", ShortExitTarget);
Which "populate" the memory correctly with accurate results (I verified
this through having it also write to a CSV file the values).
I am then, in an indicator, trying to plot the values with the following
calls:
Position = getAt("Global", "Position");
LongStop = getAt("Global", "Long_Stop");
ShortStop = getAt("Global", "Short_Stop");
GlobalCurr = getAt("Global", "CurrentBar");
IF Position = 1 THEN BEGIN
Plot1(LongStop,"Long Stop");
END;
IF Position = -1 THEN BEGIN
Plot2(ShortStop,"Short Stop");
END;
For some reason, each day's (bar's) value when plotted is the value from
the very last day, ie: there is one value which is being read in and
that is the only value I can plot.
Is there someone out here who is familiar with this and who knows how to
make the values for the plot statements update with each new bar? Any
and all help would be greatly appreciated.
Thanks in advance.
Andrew
|