Hi,
I trade Crypto currency futures on binance futures exchange. I am trying to program an open interest indicator. I have found this sample code from the zorro forum and can see that contractVal and contractVol have been scripted. I have changed the BarPeriod to 1. Could you please provide directions on how i can complete this simple task?

Code
#include <r.h>
#include <contract.c>

void run() 
{
	BarPeriod = 1;
	Multiplier = 100;
	contractUpdate("BTCUSDT",1,CALL|PUT);	
	int Type = PUT; // Then change to CALL to see difference ******
	var delta_check = 0;
	var strike_price = 0; 
	var con_value;
	var current_IV;
	var Dividend = 0.02;
	var HistVolOV = VolatilityOV(20);
	var InterestV = 0.01*yield();

	strike_price = priceClose();
	CONTRACT* dtest = contract(Type,30,strike_price); 
	con_value = contractVal(dtest,priceClose(),HistVolOV,Dividend,InterestV,&delta_check);
	current_IV = contractVol(dtest,priceClose(),HistVolOV,con_value,Dividend,InterestV);
}