{"id":120,"date":"2024-10-12T14:04:50","date_gmt":"2024-10-12T14:04:50","guid":{"rendered":"https:\/\/finanthropist.in\/academy\/?page_id=120"},"modified":"2024-11-06T13:27:54","modified_gmt":"2024-11-06T13:27:54","slug":"risk-management","status":"publish","type":"page","link":"https:\/\/finanthropist.in\/academy\/risk-management\/","title":{"rendered":"Risk Management"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"120\" class=\"elementor elementor-120\">\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>Risk Management Calculator<\/title>\n    <style>\n     body {\n        font-family: Arial, sans-serif;\n        margin: 0;\n        padding: 0;\n        background-color: white;\n        min-height: 100vh;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n    }\n\n    .container {\n        width: 100%;\n        max-width: 600px;\n        margin: 20px;\n        background: #fff;\n        padding: 20px;\n        border-radius: 10px;\n        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n    }\n\n    \/* Typography *\/\n    h1 {\n        text-align: center;\n        color: #333;\n        font-size: 26px;\n        font-weight: bold;\n        margin-bottom: 25px;\n        border-bottom: 2px solid #007bff;\n        padding-bottom: 10px;\n    }\n\n    h3 {\n        font-size: 15px;\n        margin: 10px 0;\n        color: #444;\n        font-weight: 600;\n    }\n\n    .result-heading {\n        font-size: 20px;\n        margin-top: 20px;\n        text-align: center;\n        color: #333;\n        font-weight: 600;\n    }\n\n    \/* Form Elements *\/\n    label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: bold;\n        color: #555;\n    }\n\n    input[type=\"number\"],\n    select {\n        width: 100%;\n        padding: 12px;\n        margin-bottom: 15px;\n        border: 1px solid #ddd;\n        border-radius: 5px;\n        font-size: 16px;\n        box-sizing: border-box;\n        transition: all 0.3s ease;\n    }\n\n    input[type=\"number\"]:focus,\n    select:focus {\n        outline: none;\n        border-color: #007bff;\n        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);\n    }\n\n    select {\n        appearance: none;\n        background-image: url(\"data:image\/svg+xml;charset=UTF-8,%3csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c\/polyline%3e%3c\/svg%3e\");\n        background-repeat: no-repeat;\n        background-position: right 10px center;\n        background-size: 1em;\n        padding-right: 40px;\n    }\n\n    .btn-submit {\n        width: 100%;\n        padding: 12px;\n        background-color: #007bff;\n        color: white;\n        border: none;\n        border-radius: 5px;\n        font-size: 18px;\n        cursor: pointer;\n        transition: background-color 0.3s ease;\n    }\n\n    .btn-submit:hover {\n        background-color: #0056b3;\n    }\n\n    \/* Learn More Link *\/\n    .learn-more {\n        display: inline-block;\n        margin-top: 15px;\n        text-align: center;\n        cursor: pointer;\n        color: #007bff;\n        text-decoration: underline;\n        transition: color 0.3s ease;\n        width: 100%;\n    }\n\n    .learn-more:hover {\n        color: #0056b3;\n    }\n\n    \/* Results Section *\/\n    .result-table {\n        display: none;\n        margin-top: 20px;\n        background: #f8f9fa;\n        padding: 20px;\n        border-radius: 10px;\n        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n        color: #333;\n    }\n\n    .result-heading {\n        font-size: 22px;\n        color: #007bff;\n        font-weight: bold;\n        margin-bottom: 15px;\n    }\n\n    .result-item {\n        font-size: 18px;\n        margin-bottom: 10px;\n        padding: 10px;\n        background: #ffffff;\n        border-radius: 5px;\n        border-left: 5px solid #007bff;\n        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n    }\n\n    .result-item span {\n        font-weight: bold;\n        color: #007bff;\n    }\n\n    \/* Modal Styles *\/\n    #modal {\n        display: none;\n        position: fixed;\n        z-index: 100;\n        left: 0;\n        top: 0;\n        width: 100%;\n        height: 100%;\n        background: rgba(0, 0, 0, 0.5);\n        overflow-y: auto;\n    }\n\n    #modal.show {\n        display: flex;\n        justify-content: center;\n        align-items: center;\n    }\n\n    #modal .modal-content {\n        position: relative;\n        margin: 20px;\n        padding: 25px;\n        background: white;\n        width: 90%;\n        max-width: 500px;\n        border-radius: 10px;\n        overflow-y: auto;\n        max-height: 80vh;\n        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);\n    }\n\n    #modal .close-btn {\n        position: absolute;\n        top: 15px;\n        right: 15px;\n        font-size: 25px;\n        color: red;\n        cursor: pointer;\n        transition: color 0.3s ease;\n        line-height: 1;\n    }\n\n    #modal .close-btn:hover {\n        color: darkred;\n    }\n\n    \/* Responsive Design *\/\n    @media (max-width: 600px) {\n        body {\n            padding: 10px;\n        }\n        \n        .container {\n            margin: 10px;\n            padding: 15px;\n        }\n        \n        h1 {\n            font-size: 20px;\n            margin-bottom: 20px;\n        }\n        \n        h3 {\n            font-size: 14px;\n        }\n        \n        .result-heading {\n            font-size: 18px;\n        }\n        \n        input[type=\"number\"],\n        select {\n            font-size: 14px;\n            padding: 10px;\n        }\n        \n        .btn-submit {\n            font-size: 16px;\n            padding: 10px;\n        }\n        \n        #modal .modal-content {\n            margin: 10px;\n            padding: 15px;\n        }\n    }\n\n    \/* Accessibility Improvements *\/\n    @media (prefers-reduced-motion: reduce) {\n        * {\n            transition: none !important;\n        }\n    }\n    <\/style>\n<\/head>\n<body>\n\n<div class=\"container\">\n    <h1>Risk Management Calculator<\/h1>\n    <form id=\"risk-form\">\n        <label for=\"investment\">Investment Amount *<\/label>\n        <input type=\"number\" id=\"investment\" placeholder=\"Enter investment amount\" required>\n        \n        <label for=\"risk\">Risk % *<\/label>\n        <input type=\"number\" id=\"risk\" placeholder=\"Enter risk percentage\" required>\n        \n        <label for=\"segment\">Cash \/ Future Segment *<\/label>\n        <select id=\"segment\" required>\n            <option value=\"\" disabled selected>Select option<\/option>\n            <option value=\"cash\">Cash<\/option>\n            <option value=\"future\">Future<\/option>\n        <\/select>\n        \n        <label for=\"action\">Buy \/ Sell *<\/label>\n        <select id=\"action\" required>\n            <option value=\"\" disabled selected>Select option<\/option>\n            <option value=\"buy\">Buy<\/option>\n            <option value=\"sell\">Sell<\/option>\n        <\/select>\n        \n        <label for=\"buyPrice\">Buy \/ Sell Price *<\/label>\n        <input type=\"number\" id=\"buyPrice\" placeholder=\"Enter buy\/sell price\" required>\n        \n        <label for=\"stopLoss\">Stop Loss Price *<\/label>\n        <input type=\"number\" id=\"stopLoss\" placeholder=\"Enter stop loss price\" required>\n        \n        <button type=\"submit\" class=\"btn-submit\">Submit<\/button>\n    <\/form>\n\n    <div class=\"learn-more\" onclick=\"openModal()\">Click here to know more about Risk Management Calculator.<\/div>\n\n    <div class=\"result-table\" id=\"result-table\">\n        <div class=\"result-heading\">Results<\/div>\n        <div class=\"result-item\" id=\"riskAmount\">Risk Amount: ---<\/div>\n        <div class=\"result-item\" id=\"sharesQuantity\">Shares Quantity: ---<\/div>\n    <\/div>\n<\/div>\n\n<div id=\"modal\">\n    <div class=\"modal-content\">\n        <span class=\"close-btn\" onclick=\"closeModal()\">&times;<\/span>\n        <h3>Risk Management<\/h3>\n        <p>This module is helping you to figure out how much RISK you should take per trade. Let\u2019s understand these with below 2 case studies:<\/p><br>\n        <p><strong>Case I:<\/strong> Consider you are trading in CASH segment, and you have 1L amount in your Demat. And consider buy signal is given by Finanthropist Research team, so for ex. Buy at 200\/- Rs and Stop loss is 195\/- Rs. Let\u2019s provide these input to Risk Management Calculator:<\/p>\n      <br>  <p>Our experts suggest you should take 1% risk of your capital per total trade for Cash Segment. So you should trade with 200 quantity of that stock. In case of Stop Loss will be hit, you only lose 1000\/- Rs, that is under your Risk Management.<\/p>\n      <br>  <p><strong>Case II:<\/strong> Consider you are trading in Future segment, and you have 2L amount in your Demat. And consider buy signal is given by Finanthropist Research team, so for ex. Buy at 500\/- Rs and Stop loss is 495\/- Rs. So our experts suggest you should take 2% risk of your capital per trade for Future Segment.<\/p>\n       <br> <p>With the above inputs, your trade is not in risk management, because Stop Loss amount i.e. 5000\/- is greater than Risk amount i.e. 4000\/-. So if you still want to take this trade, it should be in cash segment with 400 Shares quantity. By this way you can secure your fund.<\/p>\n    <\/div>\n<\/div>\n\n<script>\ndocument.getElementById(\"risk-form\").addEventListener(\"submit\", function(event) {\n    event.preventDefault();\n\n    var investment = parseFloat(document.getElementById(\"investment\").value);\n    var risk = parseFloat(document.getElementById(\"risk\").value);\n    var segment = document.getElementById(\"segment\").value;\n    var action = document.getElementById(\"action\").value;\n    var buyPrice = parseFloat(document.getElementById(\"buyPrice\").value);\n    var stopLoss = parseFloat(document.getElementById(\"stopLoss\").value);\n\n    if (isNaN(investment) || isNaN(risk) || isNaN(buyPrice) || isNaN(stopLoss)) {\n        alert(\"Please fill in all the fields with valid numbers.\");\n        return;\n    }\n\n    var riskAmount = (investment * (risk \/ 100));\n    var sharesQuantity = Math.floor(riskAmount \/ Math.abs(buyPrice - stopLoss));\n    \n    document.getElementById(\"riskAmount\").innerHTML = \"Risk Amount: \u20b9\" + riskAmount.toFixed(2);\n    document.getElementById(\"sharesQuantity\").innerHTML = \"Shares Quantity: \" + sharesQuantity;\n\n    document.getElementById(\"result-table\").style.display = \"block\";\n});\n\nfunction openModal() {\n    document.getElementById(\"modal\").classList.add(\"show\");\n}\n\nfunction closeModal() {\n    document.getElementById(\"modal\").classList.remove(\"show\");\n}\n<\/script>\n<\/body>\n<\/html>\n\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>Risk Management Calculator Risk Management Calculator Investment Amount * Risk % * Cash \/ Future Segment * Select<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"elementor_canvas","meta":{"_tutorstarter_page_metadata":[],"footnotes":""},"class_list":["post-120","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/pages\/120","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=120"}],"version-history":[{"count":0,"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/pages\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/finanthropist.in\/academy\/wp-json\/wp\/v2\/media?parent=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}