Stock Market Analysis Retention Trades[S.M.A.R.T] Mobile Android Application in Python

Symbol Generator S.M.A.R.T Mobile Android Application in Python:


Follow the Instructions from the Above Video then go for the Code Input:




from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.spinner import Spinner
from kivy.uix.textinput import TextInput  
from kivy.uix.checkbox import CheckBox  

class SymbolGeneratorApp(App):
    def build(self):
        self.layout=BoxLayout(orientation='vertical')
        self.layout.add_widget(Label(text='S.M.A.R.T'))
        self.symbol_spinner=Spinner(text='Select Index Symbol',
            values=('MIDCPNIFTY','FINNIFTY','BANKNIFTY','NIFTY','BANKEX','SENSEX'),
            size_hint=(1,None),
            height=44)
        self.layout.add_widget(self.symbol_spinner)

        self.expiry_input=TextInput(hint_text='Enter Expiry',multiline=False,size_hint=(1,None),height=44)
        self.layout.add_widget(self.expiry_input)
        self.strike_price_input=TextInput(hint_text='Enter Strike Price',multiline=False,size_hint=(1,None),height=44)
        self.layout.add_widget(self.strike_price_input)
        
        option_layout=BoxLayout(size_hint=(1,None),height=44)
        self.ce_checkbox=CheckBox(group='option',active=True)
        option_layout.add_widget(self.ce_checkbox)
        option_layout.add_widget(Label(text='CE'))
        self.pe_checkbox=CheckBox(group='option')
        option_layout.add_widget(self.pe_checkbox)
        option_layout.add_widget(Label(text='PE'))
        self.layout.add_widget(option_layout)

        self.add_symbol_button=Button(text='Generate Symbol',size_hint=(1,None),height=44)
        self.add_symbol_button.bind(on_press=self.add_symbol)
        self.layout.add_widget(self.add_symbol_button)

        self.results_layout=BoxLayout(orientation='vertical',spacing=10)
        self.layout.add_widget( self.results_layout)


        self.symbols=[]
        return self.layout 
        
    def add_symbol(self,instance):
        symbol=self.symbol_spinner.text 
        expiry=self.expiry_input.text 
        strike_price=self.strike_price_input.text   
        option='CE' if self.ce_checkbox.active else 'PE'


        self.symbols.append({'symbol':symbol,
            'expiry':expiry, 
            'strike_price':strike_price,
            'option':option})
        print(symbol)
        self.update_results()
    def update_results(self):
        self.results_layout.clear_widgets()
        for symbol in self.symbols:
            print(f"{symbol['symbol']}")
            symbol_str=f"{symbol['symbol']}{symbol['expiry']}{symbol['strike_price']}{symbol['option']}"

            self.results_layout.add_widget(TextInput(text=symbol_str)) 

          

      


SymbolGeneratorApp().run()


Add Text Input Box and Check Box in S.M.A.R.T Mobile Android Application in Python:


Follow the Instructions from the Above Video then go for the Code Input:



from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.spinner import Spinner
from kivy.uix.textinput import TextInput  
from kivy.uix.checkbox import CheckBox  

class MarginCalculatorApp(App):
    def build(self):
        self.layout=BoxLayout(orientation='vertical')
        self.layout.add_widget(Label(text='S.M.A.R.T'))
        self.symbol_spinner=Spinner(text='Select Index Symbol',
            values=('MIDCPNIFTY','FINNIFTY','BANKNIFTY','NIFTY','BANKEX','SENSEX'),
            size_hint=(1,None),
            height=44)
        self.layout.add_widget(self.symbol_spinner)

        self.expiry_input=TextInput(hint_text='Enter Expiry',multiline=False,size_hint=(1,None),height=44)
        self.layout.add_widget(self.expiry_input)
        self.strike_price_input=TextInput(hint_text='Enter Strike Price',multiline=False,size_hint=(1,None),height=44)
        self.layout.add_widget(self.strike_price_input)
        
        option_layout=BoxLayout(size_hint=(1,None),height=44)
        self.ce_checkbox=CheckBox(group='option',active=True)
        option_layout.add_widget(self.ce_checkbox)
        option_layout.add_widget(Label(text='CE'))
        self.pe_checkbox=CheckBox(group='option')
        option_layout.add_widget(self.pe_checkbox)
        option_layout.add_widget(Label(text='PE'))
        self.layout.add_widget(option_layout)
        return self.layout 


MarginCalculatorApp().run()


Add Drop Down List in S.M.A.R.T Mobile Android Application in Python:


Follow the Instructions from the Above Video then go for the Code Input:



from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.spinner import Spinner

class MarginCalculatorApp(App):
    def build(self):
        self.layout=BoxLayout(orientation='vertical')
        self.layout.add_widget(Label(text='S.M.A.R.T'))
        self.symbol_spinner=Spinner(text='Select Index Symbol',
            values=('MIDCPNIFTY','FINNIFTY','BANKNIFTY','NIFTY','BANKEX','SENSEX'),
            size_hint=(1,None),
            height=44)
        self.layout.add_widget(self.symbol_spinner)

        return self.layout  
MarginCalculatorApp().run()

Video Player Mobile Android Application in Python:


Follow the Instructions from the Above Video then go for the Code Input:



from kivy.app import App
from kivy.uix.videoplayer import VideoPlayer

class VideoPlayerApp(App):
    def build(self):
        return VideoPlayer(source='ATR.wmv',state='play',options={'allow_stretch':True})
if __name__=='__main__':
    VideoPlayerApp().run()

Stock Market Analysis Retention Trades[S.M.A.R.T] Mobile Android Application in Python:


Follow the Instructions from the Above Video then go for the Code Input:



from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.button import Button

class SMARTApp(App):
    def build(self):
        layout=BoxLayout(orientation='vertical')
        layout.add_widget(Label(text='Welcome to Stock Market Analysis Retention Trades[S.M.A.R.T]',font_size='24sp'))
        layout.add_widget(Button(text='Start Learning',on_press=self.on_button_press))
        return layout
    def on_button_press(self,instance):
        print('Button Pressed! Learning in Progress')
if __name__=='__main__':
    SMARTApp().run()