the attached file is a modification of TodaysDailyBars.efs which will give a low line, high line, and a line at 37.5 and 67.5 percent.
after screwing around with static variables and searching i tried a simpler approach that says the environment is doing a lot of the work already and came up with this. the question i have is why does it work?
for example, consider:
xLow = low(0, dailyBarInterval);
xHigh = high(0, dailyBarInterval);
if dailyBarInterval is a static object initialized once, you would expect that the 0th something of it will be the same over the life of the program but it isn't.
after screwing around with static variables and searching i tried a simpler approach that says the environment is doing a lot of the work already and came up with this. the question i have is why does it work?
for example, consider:
xLow = low(0, dailyBarInterval);
xHigh = high(0, dailyBarInterval);
if dailyBarInterval is a static object initialized once, you would expect that the 0th something of it will be the same over the life of the program but it isn't.
Comment