Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/20/2019 in all areas

  1. 2 points
    Dude! I just wrote a similar program in C++ and came here to post it and saw this lol. I think it's a really rare occurrence that'd you'd want to buy as many shares as your account will allow. I remember seeing a hotkey where you buy a % of your accounts value. Like you buy as many shares as possible with %25 of your account size. I can see those hotkeys being useful. For my program you input the max you're willing to lose on the trade, and then it tells you how many shares you can buy based off of your stop loss (which also goes in .05 increments) Here's mine
  2. 1 point
    Hey everyone! I’m a new trader ( 4th week in sim ). I’ve been thinking a lot about risk/share size and I thought of a really straightforward program that calculates share size based on your max loss per trade dollar amount and I wanted to share it. Take for example $CAG today. Say you wanted to take an ORB at $31.55, setting your stop loss at $31.30 below VWAP. So, we are risking .25 cents per share The program has one input. "Enter Max Loss" So, say that the maximum amount for any one trade you're willing to lose is $100 then ... we input 100 and ... The output tells us that for a .25 cent stop loss, we can take 400 shares. So if we bought 400 shares at 31.55 and stopped out right at 31.30, we'd lose ~$100. or... say your $ANDREW and you're down to risk $400 a trade, then... we input $400 and ... The output tells us for a .25 cent stop loss we can buy 1600 shares! So, if we bought 1600 shares at 31.55 and we stop out right at 31.30, we'd lose $400. Since I'm new I just decided on a $50 daily goal, a daily max loss of $30 and a max loss per trade of $10, so here's my output ... I could only take 40 shares! The program has slight rounding, and of course you're not going to always take stops in 5 cent increments, but it definitely helped put things in perspective for me.
  3. 1 point
    20/12/19 traded 3 things today with a little more patience but still not perfect. NKE tried for a breakup due to my bias but thankfullt stopped after that 1... then tried for a reverse ABCD after finding some resistance, i added more when it looked like it was breaking but came back to my start and didnt want to risk giving anything back so got out. then took the same trade again being stupid and so got out straight away. TSLA i took long after a strong 2 min open but flipped my position as the tides turned and got a good move down and a couple partials at a support level, then a descending triangle formed so i added for the break and took quick partials then out at my second add not giving any back. after it made it rejected VWAP i shouldve been thinking its a short but because its TSLA i was looking for a long. again stupid bias, stopped out. NVDA trade of the day. again thanks to the 15 min showing a clear up trend and i was expecting a break. tried to get in once a bit to early and stopped out, but once it rejected the 9 on the 5 and the 50 on the 1 i got in again, tight stop and got a nice big move knocking out all the sellers.
  4. 1 point
    Maybe you will tell me this is all easily done with buttons..but I haven't looked into the button calculations yet. It takes a share price and based on your account size will show you the max shares you can afford as well as display the money you'd lose/gain for each .05 interval up to 50 cents. account_size = 30000 from decimal import Decimal print("Welcome Tom, your account size is set to " + str(account_size)) share_price = input("\r\nPlease enter share price... ") shares = account_size//Decimal(share_price) print("**************************************") print("\r\nYou can afford " + str(shares) + " shares.") print("**************************************\r") stoploss = Decimal('0.05') while(stoploss <= .5): risk = 0 risk = int(shares)*stoploss print("stop loss of " + str(stoploss) + " risks " + str(risk)) stoploss+= Decimal('0.05')
  5. 1 point
    Nice man! Great minds something something. I am under the impression it would be perfectly fine to trade an entire account with strict stop loss/risk management control? Also, have a gander here if you haven't already, Kyle has set up DAS to do all of this for us automagically. (Although we won't get cool readouts like our programs do)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.