Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

Christopher

I wrote a program that calculates your share size based on your max loss per trade

Recommended Posts

Christopher

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

image.png.06e03e4343b95122c8a314ca1ddbb535.png

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 ... 

image.png.e836de7a6264825168c7352c316d579c.png

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 ...

image.png.6ac70be3be86b5f7f374f50d8d13e5ee.png

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 ... 

image.png.667aaee2d67082f7266e7c3c485352ad.png

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.

 

 

  • Like 1

Share this post


Link to post
Share on other sites
Christopher

 

4 hours ago, peterB said:

or take any spreadsheet editor and put the formula into it and get it even quicker 🙂

Well that sounds way less fun!! albeit, probably smarter hahaha. 

Share this post


Link to post
Share on other sites

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

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.