DumbTrade Idea #1

Agile Manifesto

We will work together during school and at home, the key to our success is communication. If all the roles are defined then it will be easy to get work done. Another key factor that decides whether are project is good or not is time, the more time spent working on coding and brainstorming ideas, the better the outcome. Our motivation to work is obviously to get an A but also to make a running business that generates passive income.

Overview

For our reunion project we are going to code a website about a tradingview indicator that is used for trading. We are aiming to focus towards web design and efficency. This website is complemented by code for an indicator that analyzes trends and tells you when to buy and sell a stock. Another feature that we will add is an API that generates the top gainers and top losers in the stock market. Information will vary depending on the stock.

How we came across this idea

Our team wanted to find a way to apply our personal businesses to APCSP. This business can not only benefit us througout this class but also with money-making. The main aspect we aim to accomplish to exceed APCSP requirements is coding the website as well as the indicator. Along with that, I will utilize that specific code to sell the indicator on whop via tradingview using the apps; discord, tiktok, and instagram.

Why is this a good idea?

This is a good idea because I think the point of school is to prepare us for the real world. To me, it's important to use knowledge that was practiced and studied during school in different aspects of human endeavor. In this case, I am making money while learning in school so it's a win-win situation. If one fails, I'll always have the other.

Objectives for website

  • Shows information about DumbTrade
  • Links that lead to important sites concercing our project
  • Image or text revealing the indicator code used on PineScript via Tradingview
  • Web within the website showing our Tradingview profile
  • Top gainers and losers API
  • Purchase link
  • Link to socials
  • Link discord

Rough Draft Code

  • Code works on PineScript via Tradingview but is not efficent.
indicator("dumbtrade",overlay=true)

src= input(close,title='Source')

len1= 5
len2= 9
len3= 10
len4= 15
len5= 20
len6= 25
len7= 30
len8= 35
len9= 40
len10= 45
len11= 50
len12= 55
len13= 60
len14= 65
len15= 70
len16= 75
len17= 80
len18= 85
len19= 90

ema1= ta.ema(src,len1)
ema2= ta.ema(src,len2)
ema3= ta.ema(src,len3)
ema4= ta.ema(src,len4)
ema5= ta.ema(src,len5)
ema6= ta.ema(src,len6)
ema7= ta.ema(src,len7)
ema8= ta.ema(src,len8)
ema9= ta.ema(src,len9)
ema10= ta.ema(src,len10)
ema11= ta.ema(src,len11)
ema12= ta.ema(src,len12)
ema13= ta.ema(src,len13)
ema14= ta.ema(src,len14)
ema15= ta.ema(src,len15)
ema16= ta.ema(src,len16)
ema17= ta.ema(src,len17)
ema18= ta.ema(src,len18)
ema19= ta.ema(src,len19)

color1= close > ema1 ? color.rgb(3, 254, 3) : color.red
color2= close > ema2 ? color.rgb(3, 254, 3) : color.red
color3= close > ema3 ? color.rgb(3, 254, 3) : color.red
color4= close > ema4 ? color.rgb(3, 254, 3) : color.red
color5= close > ema5 ? color.rgb(3, 254, 3) : color.red
color6= close > ema6 ? color.rgb(3, 254, 3) : color.red
color7= close > ema7 ? color.rgb(3, 254, 3) : color.red
color8= close > ema8 ? color.rgb(3, 254, 3) : color.red
color9= close > ema9 ? color.rgb(3, 254, 3) : color.red
color10= close > ema10 ? color.rgb(3, 254, 3) : color.red
color11= close > ema11 ? color.rgb(3, 254, 3) : color.red
color12= close > ema12 ? color.rgb(3, 254, 3) : color.red
color13= close > ema13 ? color.rgb(3, 254, 3) : color.red
color14= close > ema14 ? color.rgb(3, 254, 3) : color.red
color15= close > ema15 ? color.rgb(3, 254, 3) : color.red
color16= close > ema16 ? color.rgb(3, 254, 3) : color.red
color17= close > ema17 ? color.rgb(3, 254, 3) : color.red
color18= close > ema18 ? color.rgb(3, 254, 3) : color.red
color19= close > ema19 ? color.rgb(3, 254, 3) : color.red

plot(ema1,title='EMA 1',color=color1,editable=false,display=  display.all - display.status_line )
plot(ema2,title='EMA 2',color=color2,editable=false,display=  display.all - display.status_line  )
plot(ema3,title='EMA 3',color=color3,editable=false,display=  display.all - display.status_line  )
plot(ema4,title='EMA 4',color=color4,editable=false,display=  display.all - display.status_line  )
plot(ema5,title='EMA 5',color=color5,editable=false,display=  display.all - display.status_line  )
plot(ema6,title='EMA 6',color=color6,editable=false,display=  display.all - display.status_line  )
plot(ema7,title='EMA 7',color=color7,editable=false,display=  display.all - display.status_line  )
plot(ema8,title='EMA 8',color=color8,editable=false,display=  display.all - display.status_line  )
plot(ema9,title='EMA 9',color=color9,editable=false,display=  display.all - display.status_line  )
plot(ema10,title='EMA 10',color=color10,editable=false,display=  display.all - display.status_line  )
plot(ema11,title='EMA 11',color=color11,editable=false,display=  display.all - display.status_line  )
plot(ema12,title='EMA 12',color=color12,editable=false,display=  display.all - display.status_line  )
plot(ema13,title='EMA 13',color=color13,editable=false,display=  display.all - display.status_line  )
plot(ema14,title='EMA 14',color=color14,editable=false,display=  display.all - display.status_line  )
plot(ema15,title='EMA 15',color=color15,editable=false,display=  display.all - display.status_line  )
plot(ema16,title='EMA 16',color=color16,editable=false,display=  display.all - display.status_line  )
plot(ema17,title='EMA 17',color=color17,editable=false,display=  display.all - display.status_line  )
plot(ema18,title='EMA 18',color=color18,editable=false,display=  display.all - display.status_line  )
plot(ema19,title='EMA 19',color=color19,editable=false,display=  display.all - display.status_line  )

buy= close > ema1 and close > ema12 and close > ema17 and close > ema19
sell= close < ema1 and close < ema12 and close < ema17 and close < ema19

buy1= ta.barssince(buy)
sell1 = ta.barssince(sell)
buyCond= buy1[1] > sell1[1] ? buy : na
plotshape(buyCond,title="Buy",text='BUY',color=color.rgb(3, 254, 3),textcolor=color.white, style=shape.labelup,location=location.belowbar,size=size.small,display=  display.all - display.status_line) 

buy2= ta.barssince(sell)
sell2 = ta.barssince(buy)
sellCond= buy2[1] > sell2[1] ? sell : na
plotshape(sellCond, title="Sell",text='SELL',color=color.red,textcolor=color.white, style=shape.labeldown,location=location.abovebar,size=size.small,display=  display.all - display.status_line) 

alertcondition(buyCond,'Buy Alert','Buy Signal, TimeFrame={{interval}}')
alertcondition(sellCond,'Sell Alert','Sell Signal, TimeFrame={{interval}}')
alertcondition(buyCond or sellCond,'ALL Alerts','Signal, TimeFrame={{interval}}')

if (buyCond)          
    alert('Buy Signal', freq = alert.freq_once_per_bar_close)
if (sellCond)          
    alert('Sell Signal', freq = alert.freq_once_per_bar_close)