Plot(OBV(),"obv",colorWhite,styleThick); O_B_V = 0; // replace this line with next line to get exact OBV figures //O_B_V[0] = V[0]; for (i = 1; i < BarCount; i++) { if(C > C[i-1]) O_B_V = O_B_V[i-1] + V; else if(C < C[i-1]) O_B_V = O_B_V[i-1] - V; else O_B_V = O_B_V[i-1]; } Plot (O_B_V,"OBV2",colorGreen, styleThick);
Contrary to that more clue on stealing AmiBroker.
What a tool.