Sunday, May 22, 2022

Free Code Camp courses

  1. https://www.freecodecamp.org/news/learn-html-and-css-from-the-ceo-of-scrimba/
  2. https://www.freecodecamp.org/news/intro-to-algorithms-with-python/
  3. https://www.freecodecamp.org/news/whats-the-difference-between-authentication-and-authorisation
  4. https://www.freecodecamp.org/news/create-a-low-code-ecommerce-app-with-stripe-postgres-rest-api-backend/
  5. https://www.freecodecamp.org/news/machine-learning-for-everybody/
  6. https://www.freecodecamp.org/news/data-structures-in-javascript-with-examples/
  7. https://www.freecodecamp.org/news/javascript-dom-manipulation/
  8. https://www.freecodecamp.org/news/the-php-handbook/
  9. https://www.freecodecamp.org/news/use-react-and-apis-to-build-a-weather-app/

Hash Table or Map or Dictionary or Objects (in JavaScript and JSON)

 In Python https://www.edureka.co/blog/hash-tables-and-hashmaps-in-python/#:~:text=Hash%20tables%20or%20has%20maps,and%20they%20can%20be%20changed.


JavaScript has a built in function for converting JSON strings into JavaScript objects:

JSON.parse()

JavaScript also has a built in function for converting an object into a JSON string:

JSON.stringify()

Example of a JSON string:

'{"name":"John", "age":30, "car":"Ford"}'


The JSON format is syntactically similar to the code for creating JavaScript objects. Because of this, a JavaScript program can easily convert JSON data into JavaScript objects.

Since the format is text only, JSON data can easily be sent between computers, and used by any programming language.

Read this for more details https://www.w3schools.com/js/js_json_intro.asp

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.

Major sectors and their top players


  1. IT - TCS, Infosys, Wipro, Persistent, LTI, LTTS, Mindtree, Happiest minds, Coforge, Mphasis, Mastek, Latent view.
  2. Metals - Hindalco, Nalco, Tata Steel, Jindal Stainless, JSW steel, JSPL.
  3. Cement - ACC, Ultratech, Grasim, Ambuja Cement.
  4. Banks - ICICI bank, HDFC bank, SBI, IndusInd bank, Axis bank.
  5. Auto - Maruti, M&M, Tata Motors, Hero, Bajaj Auto, TVS, Eicher.
  6. FMCG - GCP, TCP, HUL.
  7. Finance - Bajaj Finance, Bajaj Finserve, Bajaj Holdings, CDSL, Au Small Bank Finance, Cholamandulum, Sundarum Finance, Shriram Transport Finance, Shriram City Union Finance, Muthoot Fianance, Mannapurnam Finance, ICICI securities, Motilal Oswal Financial services, M&M Financial, Indiabulls Housing.
  8. Paint - Asian paints, Kansai Nerolac, Berger paints.
  9. Chemical - Tata chemicals, Deepak Nitrite, Navin Flourine, India Glycols, Pidilite, Solar Industries, Aarti Inds, Alylamines, Balaji amines, SRF.
  10. E-commerce - Info edge, Paytm, PB Fintech, CE infoetch, Nykaa, Zomato.
  11. Power - Generation: NTPC, Reliance Infra, Tata power, Torrent power, JSW Energy, Adani power, Adani Green, Suzlon Energy. Transmission: Adani Transmission, Power Grid, Kalptaru power, KEC International, GE power.
  12. Petroleum - Refineries: BPCL, HPCL, Chennai Petroleum, MRPL, IOC. Oil driling: - ONGC, OIL, GAIL (These two sub-sectors move in opposite directions).
  13. Telecom - Bharti, Idea cellular, Tata communications.
  14. Retail - Avenue supermart, Titan.
  15. Textile - Page Inds, Lux Inds, Dollar Inds, Lovable, Rupa, AB Fashion, Shoppers stop, Ambika cotton, Verdhaman textiles, Arvind, SRF, Raymonds, Century Enka.
  16. Sugar - Triveni Engg, Dhampur sugar, Balrampur sugar.
  17. Paper - Jk paper, West coast paper, Ruchira papers.
  18. Tyre - Apollo tyres, JK tyres, Ceat, Balkrishna Inds, MRF, TVS shrichakra.
  19. Consumer durables - Sympnony, Whirlpool, Bajaj Electricals, IFB Inds, TTK prestige, Amber Enterprises, Blue star, Voltas, V-guard.
  20. Plastics - Supreme Inds, Prince pipes, Astral poly, Polycab, Polyplex, Nilkamal, VIP inds.

Sacred Thought

26 April 2024  Dear friends, I write the explanation of two verses of Geets for all of you, I hope you all will like it and benefit from it....