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()

No comments:

Post a Comment

Machine Learning certification course

A certification course in ML by Code Basics