Friday, May 6, 2022

Python program to calculate stop-loss level for a given buy price.

 def findSLTP():

c = int(input("Enter current market price : "))

print("SLTP for " + str(c) + " at 6% loss should be : " + str(int(c - 0.06*c))) 

x = input("Press Enter to exit application ")

findSLTP()

Python program to calculate profit %

 def findProfit():

    x = 'a'

    while x != 'n' or x != 'N':

        c = float(input("Enter current market price : "))

        s = float(input("Enter expected sell price  : "))

        a = float((s - c)/c)*100

        formatted_a = "{:.2f}".format(a)

        print("% Profit for buy at " + str(c) + " and expected sell at " + str(s) + " would be : " + str(formatted_a) +"%") 

        print()   

        #x= input("Want to continue (y/n) :") 

        #if x == 'n':

            #exit()

findProfit()

Tuesday, May 3, 2022

Top 10 trading stocks


  1. Reliance Inds - Sector: Telecom Long-term trend: UP
  2. TCS - Sector: IT Long-term trend: SIDEWAYS
  3. Persistent Systems - IT Long-term trend: UP
  4. HDFC Bank - Banking Long-term trend: SIDEWAYS
  5. ICICI Bank - Banking Long-term trend: UP
  6. Hindalco - Metals Long-term trend: UP
  7. Tata steel - Metals Long-term trend: UP
  8. Hero motors - Auto Long-term trend: DOWN
  9. Godrej Consumer Products - FMCG Long-term trend: DOWN
  10. Tata Consumer Products - FMCG Long-term trend: SIDEWAYS

Up trending stocks are best for trading, followed by sideways consolidating stocks.

Trading in long-term downtrending stocks should be avoided.

Ampere's circuital law

  Ampere's circuital law states that the line integral of a magnetic field around any closed loop is equal to the permeability of free s...