when to buy mutual fund, after 2pm, after seeing pe ration, % change fall(not up)

 


https://trendlyne.com/equity/PE/NIFTY/1887/nifty-50-price-to-earning-ratios/


https://nifty-pe-ratio.com/




# ✅ BUY ON DIP STRATEGY WITH NIFTY PE FILTER
# USER INPUTS (Enter daily)
nifty_fall_pct = 1.82   # Example: -1.82% fall till 2PM
nifty_pe = 22.5          # Today's Nifty PE (get from NSE)
total_capital = 10_00_000  # ₹10 lakh , your planned investment.
invest_pct = 0
reason = ""
# Decision Logic
if nifty_fall_pct > -0.5:
    invest_pct = 0.0
    reason = "No major fall today."
elif -1.0 <= nifty_fall_pct <= -0.5:
    if nifty_pe < 18:
        invest_pct = 0.15
        reason = "Small dip, undervalued market."
    elif nifty_pe <= 23:
        invest_pct = 0.10
        reason = "Small dip, fair market."
    else:
        invest_pct = 0.05
        reason = "Small dip, overvalued market."
#---------------
elif -2.0 <= nifty_fall_pct < -1.0:
    if nifty_pe < 18:
        invest_pct = 0.30
        reason = "Moderate dip, undervalued market."
    elif nifty_pe <= 23:
        invest_pct = 0.20
        reason = "Moderate dip, fair market."
    else:
        invest_pct = 0.10
        reason = "Moderate dip, overvalued market."
#------------------------------------------
elif nifty_fall_pct <= -2.0:
    if nifty_pe < 18:
        invest_pct = 0.50
        reason = "Big dip, undervalued market."
    elif nifty_pe <= 23:
        invest_pct = 0.40
        reason = "Big dip, fair market."
    else:
        invest_pct = 0.20
        reason = "Big dip, but overvalued market."
#---------------
# Final Output
amount = int(invest_pct * total_capital)
print("📉 Nifty Fall % (till 2PM):", nifty_fall_pct)
print("📊 Nifty PE:", nifty_pe)
print("🧠 Reason:", reason)
print(f"💰 Suggested Investment: ₹{amount} ({int(invest_pct*100)}% of ₹10L)")

result:

Nifty Fall % (till 2PM): 1.82 📊 Nifty PE: 22.5 🧠 Reason: No major fall today. 💰 Suggested Investment: ₹0 (0% of ₹10L)

Popular posts from this blog

SAP CPI : camle expression in sap cpi , cm, router, filter and groovy script. format

pss book: గురు ప్రార్థనామంజరి . completed 21st july 2024

pss book : శ్రీకృష్ణుడు దేవుడా, భగవంతుడా completed , second review needed. 26th April 2024