I'm running into a snag trying to build something. On an intraday chart, I want to look at the last 60 days. In those 60 days, only days where the net change was positive. Than grab the percent change from High to Open, and take an average of that.
Here is what I have so far, though this is not printing the correct value as I did this manually in excel. Any assistance is appreciated.
if (BarsInProgress == 1)
{
for (int i = 0; i < 60; i++)
{
{
sumPosBarHi += PosBarHi;
PosCount++;
Print(sumPosBarHi / PosCount);
}
Comment