function calculateRecommendation() { // Get input values const openInterestCall = parseFloat(document.getElementById('openInterestCall').value); const volumeCall = parseFloat(document.getElementById('volumeCall').value); const openInterestPut = parseFloat(document.getElementById('openInterestPut').value); const volumePut = parseFloat(document.getElementById('volumePut').value); // Validate inputs if (isNaN(openInterestCall) || isNaN(volumeCall) || isNaN(openInterestPut) || isNaN(volumePut) || openInterestCall <= 0 || openInterestPut <= 0) { document.getElementById('result').innerHTML = 'Please enter valid numbers for all inputs.'; document.getElementById('signal').innerHTML = ''; return; } // Calculate percentages const percentageCall = (volumeCall / openInterestCall) * 100; const percentagePut = (volumePut / openInterestPut) * 100; //