For example (refers to red box in attached screenshot of ES 5 min chart):
1. There are three green candles
2. The delta of these three are: 61, 157 & 26.
3. Add up to 244
4. Then diplay all three plots of the three green candles as 244. (currently it adds consecutively)
Desired outcome as dotted yellow box.
Same for down and red delta
Any thought, been banging my head against this for hours yesterday.
Thx
Code so far
Code: Select all
vars: CountGreenDelta(0), CountRedDelta(0),
MaxGreenDelta(0);
// green candles so we start adding up the data 2 bar delta (in ticks & bid ask traded)
if c>c[1] then begin
CountGreenDelta = CountGreenDelta + close of data2;
end;
// reset if red bar
if c<c[1] then CountGreenDelta = 0;
// Plot
plot1(CountGreenDelta);
plot3(0,"zero line",white);