{"id":131,"date":"2024-10-12T14:19:32","date_gmt":"2024-10-12T14:19:32","guid":{"rendered":"https:\/\/finanthropist.in\/academy\/?page_id=131"},"modified":"2024-11-06T13:38:55","modified_gmt":"2024-11-06T13:38:55","slug":"gann-calculator","status":"publish","type":"page","link":"https:\/\/finanthropist.in\/academy\/gann-calculator\/","title":{"rendered":"Gann Calculator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"131\" class=\"elementor elementor-131\">\n\t\t\t\t<div class=\"elementor-element elementor-element-71505ba e-flex e-con-boxed e-con e-parent\" data-id=\"71505ba\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0b06509 elementor-widget elementor-widget-html\" data-id=\"0b06509\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Gann 9 Calculator<\/title>\n    <link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n    <style>\n    .know-more-btn {\n    margin: 0 auto;\n    display: inline-block;\n}\n        body {\n            background-color: #f8f9fa;\n        }\n        .calculator-container {\n            max-width: 1200px;\n            margin: 0 auto;\n            padding: 2rem;\n            background: white;\n            border-radius: 15px;\n            box-shadow: 0 0 20px rgba(0,0,0,0.1);\n        }\n        .calculator-header {\n            text-align: center;\n            margin-bottom: 2rem;\n            color: #2c3e50;\n        }\n        .calculator-header h2 {\n            font-weight: 700;\n            margin-bottom: 1rem;\n        }\n        .input-section {\n            max-width: 400px;\n            margin: 0 auto 2rem;\n        }\n        .tables-container {\n            display: grid;\n            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n            gap: 1.5rem;\n            justify-content: center;\n            padding: 1rem;\n        }\n        .orbit-table-wrapper {\n            background: white;\n            border-radius: 10px;\n            box-shadow: 0 4px 6px rgba(0,0,0,0.05);\n            overflow: hidden;\n            transition: transform 0.2s;\n        }\n        .orbit-table-wrapper:hover {\n            transform: translateY(-5px);\n        }\n        .orbit-label {\n            background: #f8f9fa;\n            color: #2c3e50;\n            padding: 1rem;\n            font-weight: 600;\n            text-align: center;\n            border-bottom: 2px solid #e9ecef;\n        }\n        .results-table td {\n            padding: 0.75rem;\n            vertical-align: middle;\n            border: 1px solid #dee2e6;\n            font-size: 0.9rem;\n        }\n        .degree-360 {\n            background-color: #28a745 !important;\n            color: white;\n            font-weight: 600;\n        }\n        .degree-180 {\n            background-color: #dc3545 !important;\n            color: white;\n            font-weight: 600;\n        }\n        .degree-cell {\n            background-color: #f8f9fa;\n            font-weight: 500;\n            width: 80px;\n        }\n        .value-cell {\n            font-family: monospace;\n            font-size: 1rem;\n        }\n        .btn-calculate {\n            width: 100%;\n            padding: 0.75rem;\n            font-weight: 600;\n            text-transform: uppercase;\n            letter-spacing: 1px;\n        }\n        .know-more-btn {\n            margin-top: 1rem;\n            display: block;\n            text-align: center;\n        }\n        .popup-overlay {\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100%;\n            height: 100%;\n            background: rgba(0, 0, 0, 0.5);\n            display: none;\n            align-items: center;\n            justify-content: center;\n            z-index: 1000;\n        }\n        .popup-content {\n            background: white;\n            border-radius: 10px;\n            max-width: 600px;\n            width: 90%;\n            max-height: 80vh;\n            overflow-y: auto;\n            padding: 2rem;\n            position: relative;\n        }\n        .popup-content h3 {\n            margin-top: 0;\n        }\n        .close-btn {\n            position: sticky;\n            top: 0;\n            background: #dc3545;\n            color: white;\n            border: none;\n            padding: 0.5rem 1rem;\n            cursor: pointer;\n            float: right;\n            border-radius: 5px;\n        }\n        @media (max-width: 768px) {\n            .calculator-container {\n                padding: 1rem;\n            }\n            .tables-container {\n                grid-template-columns: 1fr;\n                gap: 1rem;\n            }\n            .orbit-table-wrapper {\n                margin-bottom: 1rem;\n            }\n            .results-table td {\n                padding: 0.5rem;\n                font-size: 0.85rem;\n            }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"calculator-container mt-4\">\n        <div class=\"calculator-header\">\n            <h2>Gann 9 Calculator<\/h2>\n            <p class=\"text-muted\">Calculate Previous, Current, and Next Orbits<\/p>\n        <\/div>\n        \n        <div class=\"input-section\">\n            <div class=\"form-floating mb-3\">\n                <input type=\"number\" class=\"form-control\" id=\"inputNumber\" placeholder=\"Enter a number\">\n                <label for=\"inputNumber\">Enter Current Price<\/label>\n            <\/div>\n            <button class=\"btn btn-primary btn-calculate\" onclick=\"calculateOrbits()\">Calculate Orbits<\/button>\n        <\/div>\n\n     <button class=\"btn btn-info know-more-btn\" onclick=\"showPopup()\">Know More About Gann Calculator<\/button>\n    <\/div>\n    \n        <div class=\"tables-container\" id=\"tablesContainer\">\n            <!-- Dynamic tables will be appended here -->\n        <\/div>\n\n   \n\n    <div class=\"popup-overlay\" id=\"popupOverlay\" onclick=\"hidePopup(event)\">\n        <div class=\"popup-content\" onclick=\"event.stopPropagation()\">\n            <button class=\"close-btn\" onclick=\"hidePopup()\">Close<\/button>\n                <h4>Gann 9 Theory<\/h4>\n\n<p>W.D. Gann is known as the number one trader in history. Gann's success ratio is up to <strong>90%<\/strong> and he achieved up to <strong>4000%<\/strong> profit within a month. Gann developed technical analysis methods like the Gann angles, Square of Nine, Circle of 360, and many more. His theory is based on market forecasting using geometry, astronomy, astrology, and ancient mathematics.<\/p>\n\n    <p>According to Gann, if prices are moving up, they move from one odd square to the next odd square. For example:<\/p>\n    <ul>\n        <li>1 to 9<\/li>\n        <li>9 to 25<\/li>\n        <li>25 to 49<\/li>\n    <\/ul>\n\n    <p>If prices are moving down, they move from one odd square to the immediate previous odd square. For example:<\/p>\n    <ul>\n        <li>169 to 121<\/li>\n        <li>121 to 81<\/li>\n        <li>81 to 49<\/li>\n    <\/ul>\n\n    <p>Odd numbers and their squares:<\/p>\n    <ul>\n        <li>1 \u2013 1<\/li>\n        <li>3 \u2013 9<\/li>\n        <li>5 \u2013 25<\/li>\n        <li>7 \u2013 49<\/li>\n        <li>9 \u2013 81<\/li>\n        <li>11 \u2013 121<\/li>\n        <li>13 \u2013 169<\/li>\n    <\/ul>\n\n    <p>When prices move from one odd square to the next odd square, they travel through stages called the \"roadmap\". For example, if prices move from 25 to 49, the roadmap would be:<\/p>\n\n    <div>\n        <p>25 \u2013 0 degree<\/p>\n        <p>28 \u2013 45 degree<\/p>\n        <p>31 \u2013 90 degree<\/p>\n        <p>34 \u2013 135 degree<\/p>\n        <p>37 \u2013 180 degree<\/p>\n        <p>40 \u2013 225 degree<\/p>\n        <p>43 \u2013 270 degree<\/p>\n        <p>46 \u2013 315 degree<\/p>\n        <p>49 \u2013 360 degree<\/p>\n    <\/div>\n\n    <p>According to Gann, the following degrees act as the strongest support and resistance levels:<\/p>\n    <ul>\n        <li>0 degrees<\/li>\n        <li>180 degrees<\/li>\n        <li>360 degrees<\/li>\n    <\/ul>\n\n    <p>These Gann levels can be calculated using the closing price of a stock on a daily time frame.<\/p>\n\n        <\/div>\n    <\/div>\n\n    <script>\n        function calculateOrbits() {\n            const inputNumber = parseInt(document.getElementById('inputNumber').value);\n            if (isNaN(inputNumber)) {\n                alert('Please enter a valid number');\n                return;\n            }\n\n            const tablesContainer = document.getElementById('tablesContainer');\n            tablesContainer.innerHTML = '';\n\n            \/\/ Find orbit numbers\n            const currentOrbit = findCurrentOrbit(inputNumber);\n            const previousOrbit = Math.max(1, currentOrbit - 2);\n            const nextOrbit = currentOrbit + 2;\n\n            \/\/ Create orbit tables\n            const nextOrbitDiv = createOrbitTable(nextOrbit, \"Next Orbit\");\n            const currentOrbitDiv = createOrbitTable(currentOrbit, \"Current Orbit\");\n            const previousOrbitDiv = createOrbitTable(previousOrbit, \"Previous Orbit\");\n            \n            tablesContainer.appendChild(nextOrbitDiv);\n            tablesContainer.appendChild(currentOrbitDiv);\n            tablesContainer.appendChild(previousOrbitDiv);\n        }\n\n        function createOrbitTable(orbit, label) {\n            const wrapper = document.createElement('div');\n            wrapper.classList.add('orbit-table-wrapper');\n            \n            const labelDiv = document.createElement('div');\n            labelDiv.classList.add('orbit-label');\n            labelDiv.textContent = label;\n            wrapper.appendChild(labelDiv);\n\n            const table = document.createElement('table');\n            table.classList.add('table', 'table-bordered', 'results-table');\n\n            const degrees = [360, 315, 270, 225, 180, 135, 90, 45, \"360\/0\"];\n            const values = calculateOrbitValues(orbit);\n\n            for (let i = 0; i < degrees.length; i++) {\n                const row = document.createElement('tr');\n                \n                const degreeCell = document.createElement('td');\n                degreeCell.textContent = degrees[i] + \"\u00b0\";\n                degreeCell.classList.add('degree-cell');\n                if (degrees[i] === 360 || degrees[i] === \"360\/0\") {\n                    degreeCell.classList.add('degree-360');\n                } else if (degrees[i] === 180) {\n                    degreeCell.classList.add('degree-180');\n                }\n\n                const valueCell = document.createElement('td');\n                valueCell.textContent = values[i];\n                valueCell.classList.add('value-cell');\n\n                row.appendChild(degreeCell);\n                row.appendChild(valueCell);\n                table.appendChild(row);\n            }\n\n            wrapper.appendChild(table);\n            return wrapper;\n        }\n\n        function findCurrentOrbit(num) {\n            let i = 1;\n            while ((i + 2) * (i + 2) <= num) {\n                i += 2;\n            }\n            return i;\n        }\n\n        function calculateOrbitValues(orbit) {\n            const startValue = orbit * orbit;\n            const increment = (orbit - 1) \/ 2 + 1;\n            const values = [startValue];\n            \n            for (let i = 1; i <= 8; i++) {\n                values.push(values[i - 1] + increment);\n            }\n            return values.reverse();\n        }\n\n        function showPopup() {\n            document.getElementById('popupOverlay').style.display = 'flex';\n        }\n\n        function hidePopup(event) {\n            document.getElementById('popupOverlay').style.display = 'none';\n        }\n    <\/script>\n<\/body>\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Gann 9 Calculator Gann 9 Calculator Calculate Previous, Current, and Next Orbits Enter Current Price Calculate Orbits Know<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_tutorstarter_page_metadata":[],"footnotes":""},"class_list":["post-131","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/pages\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":0,"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/pages\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/media?parent=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}