Math Challenge/Find better Position Sizing

Discussion in 'Trading' started by sysdevel99, Jul 19, 2019.

  1. I need help !! I'm working on a system and attached are my trades (this is the output of one monte carlo run that's somewhere in the middle).

    Here's what I need help with:

    If I calculate the median of these trades I get ~ 118. If I look at the average of these trades I get only 22.8. This tells me that there are some serious losers that skew the average way down. The system already has stops (time/profit/loss) but I'd like to maximize my profit. I'm wondering how I can do that? (initial thoughts are to increase my position size after a loss).

    Who can figure out a position sizing mechanism that's simple and gets the average closer to the median?


    517.46

    549.86

    524.56

    -97.32

    240.77

    113.75

    -13.66

    -214.19

    -216.78

    114.59

    -56.13

    -211.46

    -114.48

    137.77

    126.69

    352.93

    119.34

    -200.09

    -348.9

    154.42

    189.36

    -240.79

    115.35

    -213.74

    192

    358.74

    148.27

    170.08

    22.06

    126.47

    133.98

    -227.95

    -303.09

    193.09

    -215.4

    115.49

    302.17

    223.47

    -269.66

    406.86

    -275.88

    -392.48

    401.26

    -357.98

    897.8

    676.88

    282.15

    458.99

    256.35

    493.4

    195.93

    103.05

    -56.72

    410.57

    -204.97

    -330.38

    240.61

    114.49

    411.05

    206.67

    261.39

    -238.21

    168.11

    105.34

    357.15

    128.67

    -285.62

    142.94

    -212.2

    148.08

    -247.32

    -257.61

    -607.63

    690.6

    270.49

    441.5

    -295.04

    208.66

    403.96

    -534.88

    -556.92

    27.63

    141.72

    284.35

    179.81

    -540.84

    264.53

    132.43

    -261.28

    -366.97

    -269.21

    -202.54

    -446.25

    237.74

    145.65

    -360.55

    112.4

    262.47

    859.09

    -273.62

    -203.74

    -328.91

    161.88

    -387.79

    168.68

    217.23

    201.76

    387.33

    -249.51

    234.83

    281.47

    -409.09

    209.04

    -353.31

    130.11

    -424.68

    266.06

    -40.24

    113.4

    273.22

    145.64

    -251.42

    -287.82

    -262.85

    -262.16

    109.5

    -363.91

    -332.9

    141.43

    148.53

    179.76

    343.45

    137.28

    222.51

    158.66

    370.67

    227.17

    -287.27

    -243.9

    -363.22

    -224.8

    -298.25

    -320.76

    -272.38

    -203.59

    137.75

    175.12

    192.71

    147.11

    131.06

    248.79

    -221.51

    -208.24

    158.2

    -298.07

    114.94

    103.62

    -219.04

    116.11

    211.17

    150.48

    85.09

    -220.63

    -77.59

    173.55

    273.09

    320.35

    143.95

    292.91

    124.33

    -55.82

    -204.62

    -155.85

    -256.22

    192.33

    -305.5

    149.48

    -319.2

    -216.63

    -285.1

    116.6

    -236.9

    231.18

    311.88

    312.89

    -237.21

    123.17

    194.7

    -233.48

    -599.6

    199.23

    -208.14

    -242.08

    -208.24

    -229.36

    106.74

    402.74

    455.19

    289.24

    325.15

    272.97

    -209.14

    -581.6

    -360.17

    1518.47

    133.81

    79.96

    -291.15

    -209.56

    147.16

    151.93

    -510.02

    -220.07

    132.76

    -539.63

    283.14

    496.32

    -46.33

    -69.31

    473.25

    -221.01

    200.82

    233.01

    102.66

    -306.98

    253.89

    -243.46

    178.84

    -219.54

    717.41

    -296.34

    -496.54

    -292.34

    -459.91

    935.43

    -335.88

    162.35

    -227.63

    215.41

    250.01

    100.61

    -258.42

    256.1

    279.66

    178.92

    242.82

    194.32

    -208.48

    407.42

    -740.2

    -122.21

    147.16

    160.19

    186.52

    681.62

    127.99

    31.27

    -241.5

    119.69

    182.98

    104.77

    -374.31

    -276.26

    -246.47

    -552.36

    131.55

    118.93

    121.87

    -174.16

    170.85

    -212.52

    212.18

    20.3

    -236.15

    507.94

    700.57

    227.83

    -6.95

    -66.51

    269.18

    -2.52

    134.37

    156.82

    190.52

    201.91

    -495.98

    323.72

    105.4

    -387.31

    -318.52

    177.2

    -395.93

    293.81

    167.29

    -368.35

    -221.85

    -242.25

    -378.17

    118.16

    145.72

    224.7

    -243.14

    -246.55

    182.09

    -218.89

    122.53

    167.72

    -212.46

    -266.17

    211.61

    129.16

    196.47

    261.5

    201.07

    -388.32

    220.19

    -274.93

    453.16

    104.81

    -212.18

    131.76

    -391.03

    -162.9

    -223.11

    117.6

    -226.67

    -206.6

    211.79

    -298.36

    -359.42

    166.37

    191.02

    224.55

    383.84

    163.79

    103.69

    213.54

    281.95

    196.69

    128.92

    237.53

    341.17

    368.7

    109.76

    234.39

    -362.16

    218.61

    144.95

    -156.06

    -9.85

    -255.51

    -246.22

    -588.28

    -347.72

    -305.19

    349.86

    -315.3

    161.07

    -260.85

    -373.79

    201.49

    248.47

    234.65

    205.7

    -529.92

    202.44

    109.42

    191.02

    -237.92

    -243.81

    177.58

    121.72

    -127.61

    231.95

    -308.18

    -359.76

    -544.29

    450.04

    136.1

    236.06

    -509.92

    -289.13

    -346.85

    128.89

    -302.64

    -251.87

    -271.58

    450.59

    -251.53

    -621.96

    -260.5

    449.97

    115.77

    118.4

    -203.78

    177.79

    141.34

    199.22

    207.69

    -205.75

    -259

    1219.28

    -210.06

    183.55

    -239.07

    336.53

    -235.24

    129.72

    -230.01

    168.95

    137.31

    134.28

    113.61

    144.44

    145.61

    460.33

    483.9

    -140.35

    -233.83

    -236.83

    -275.43

    62.33

    130.34

    -293.05

    157.72

    -320.82

    -76.14

    157.01

    269.44

    187.07

    29.3

    -347.33

    -307.72

    231.33

    381.67

    147.5

    146.33

    123.76

    174.98

    103.83

    208.2

    149.26

    210.68

    115.92

    -318.32

    124.33

    -288.78

    249.6

    166.68

    199.14

    -278.37

    -218.79

    234.76

    -349.22

    -294.07

    -273.44

    -397.57

    -1255.16

    148.85

    -377.05

    -382.12

    369.41

    -759.35

    347.92

    -247.41

    322.37

    -203.51

    786.21

    476.01

    -218.08

    -240.52

    214.73

    -374.51

    138.39

    322.82

    238.34

    451.87

    398.98

    -19.9

    138.81

    -289.72

    160.61

    307.22

    281.36

    140.01

    111.18

    -70.18

    173.97

    139.69

    328.36

    201.57

    193.17

    -621.51

    147.96

    226.51

    317.75

    339.98

    -252.7

    -406.87

    -240.65

    308.81

    125.57

    114.68

    91.12

    305.89

    -210.77

    146.24

    123.38

    263.55

    -606.5

    192.27

    141.7

    124.58

    -443.68

    -254.31

    156.93

    538.49

    256.42

    -271.67

    1052.33

    -329.23

    305.1

    -427.04

    160.35

    155.56

    134.89

    248.12

    434.51

    109.17

    224.92

    -217.41

    -39.65

    -425.87

    248.62

    187.22

    -210.53

    -306.56

    -286.02

    155.84

    -142.4

    257.55

    -397.64

    -39.97

    102.86

    -4.41

    218.02

    216.81

    -276.79

    701.05

    -214.83

    -100.64

    102.78

    138.03

    -113.23

    -295.33

    -205.98

    419.2

    303.7

    -310.78

    158.73

    149.29

    -257.74

    -418.22

    162.72

    250.29

    158.25

    -235.16

    478.98

    -213.84

    -464.51

    106.22

    348.78

    491.07

    -230.33

    -415.68

    174.05

    -566.22

    239.42

    191.3

    189.02

    221.88

    161.97

    191.13

    -1.21

    123.02

    310.49

    -235.52

    19.84

    -302.6

    215.77

    189.05

    -457.35

    -280.28

    117.45

    188.81

    112.71

    -307.25

    106.07

    20.14

    -228.34

    307.96

    -70.06

    -250.14

    -328.28

    176.77

    289.59

    455.25

    116.55

    -169.31

    -244.84

    -207.36

    192.57

    -278.52

    111.81

    -223.6

    171.57

    -202.83

    -307.49

    26.29

    -234.85

    -52.1

    103.44

    275.53

    282.96

    -210.13

    284.3

    172.51

    135.3

    -286.37

    -210.88

    -326

    200.22

    236.87

    177.58

    161.61

    -200.84

    -201.59

    -241.17

    150.77

    -310.02

    151.83

    142.45

    -209.08

    213.39

    282.93

    -339.04

    -237.16

    -247.86

    -290.25

    -209.95

    295.3

    -398.88

    241.6

    -216.09

    -244.45

    186.34

    -251.1

    175.21

    130.45

    119.43

    479.17

    277.71

    320.48

    301.48

    166.25

    -233.27

    281.97

    26.23

    55.78

    -203.5

    -313.89

    159.59

    -329.15

    185.29

    -366.12

    -246.42

    153.09

    -206.12

    112.34

    157.47

    -13.49

    73.7

    264.65

    168.54

    -218.23

    103.07

    120.59

    120.32

    -345.04

    130.67

    -296.62

    -349.59

    -220.71

    174.54

    482.02

    715

    -208.35

    231.34

    -64.5

    -243.91

    -505.78

    471.84

    407.74

    127.66

    -243.04

    274.37

    -516.53

    491.39

    504.54

    329.61

    -209.44

    130.06

    112.06

    -418.88

    -237.67

    428.52

    272.56

    140.39

    187.07

    -381.87

    113.3

    205.29

    756.27

    145.91

    174.24

    -237.09

    -234.18

    -388.13

    -208.05

    -414.05

    -229.2

    -385.09

    321.58

    30.43

    -218.81

    194.79

    -242.73

    213.29

    -276.89

    374.91

    -206.43

    116.91

    109.6

    246.71

    -272.44

    -322.31

    -315.9

    -354.21

    206.88

    165.49

    241.33

    -123.8

    525.35

    -277.85

    136.31

    -226.03

    252.03

    440.14

    117.69

    180.11

    -256.55

    -239.65

    127.72

    163.87

    134.44

    103.68

    -202.88

    172.11

    -331.54

    1077.44

    -225.33

    -512.38

    -219.17

    165.6

    250.57

    243.45

    -266.95

    -223.59

    -322.46

    -233.29

    176.73

    820.68

    207.41

    142.23

    288.05

    -215.08

    -209.65

    -377.71

    -238.42

    -275.02

    -119.79

    -91.03

    -101.03

    230.83

    128.4

    102.01

    129.84

    26.35

    -396.09

    141.5

    -216.13

    348.93

    127.65

    332.66

    117.26

    178.18

    -230.18

    146.61

    282.2

    346.95

    135.56

    407.5

    -70.19

    -230.47

    -321.86

    346.91

    -251.23

    -153

    104.78

    -218.26

    203.83

    158.53

    126.29

    -452.64

    270.38

    -262.3

    -231.57

    197.46

    138.4

    -280.64

    -244.38

    -336.91

    207.06

    -234.25

    131.38

    -214.02

    -212.88

    -73.08

    158.57

    122.06

    -347.61

    580.46

    270.7

    370.89

    -246.56

    -284.2

    175.72

    -312.51

    258.99

    319.64

    122.58

    359.35

    407.82

    1021.02

    173.91

    132.51

    153.11

    134.25

    -340.36

    100.11

    -494.61

    223.66

    203.8

    -556.58

    112.07

    207.06

    200.77

    -81.82

    -387.72

    214.74

    -209.05

    320.04

    -364.6

    -263.1

    154.7

    -249

    139.87

    207.94

    104.03

    -256.12

    255.3

    590.05

    101.62

    151.47

    492.62

    110.5

    351.08

    270.84

    118.86

    317.67

    -216.54

    -272.55

    214.26

    3.37

    128.6

    280.84

    -267.56

    118.7

    261.31

    -342.35

    141.32

    257.19

    216.74

    -419.32

    -279.51

    -222.12

    109.88

    436.57

    -169.36

    147.83

    100.98

    -158.85

    151.28

    -206.64

    219.53

    -205.26

    478.51

    -263.23

    -225.69

    -247.62

    -296.73

    242.91

    -166.76

    194.38

    107.4

    225.74

    196.92

    -224.81

    103.49

    157.48

    255.17

    171.88

    173.73

    115.49

    106.8

    121.14

    233.5

    -275.47

    -45.07

    -206.9

    301.78

    120.91

    61.41

    986.57

    -231.58

    127.2

    371.73

    117.28

    291.63

    -261.44

    235.95

    -430.8

    106.05

    -268.91

    222.69

    254.28

    118.8

    120.51

    -377.86

    247.33

    231.5

    178.81

    -123.63

    209.53

    -1782.95

    -403.71

    -15.22

    105.34

    171.03

    205.1

    -224.86

    -241.17

    178.48
     
  2. tommcginnis

    tommcginnis

    • You have no idea of what's going on.:confused:
    • You have cherry-picked a run "somewhere in the middle" -- so this is BUT ONE, SINGLE data point, which you THINK comes with some Monte Carlo bona fides. Wrong. SINGLE data point.:banghead:
    • You present 'trade outcomes' as if there were meaningful outcomes there -- that's like claiming to be a great fisherman by virtue of the number of fish caught, without telling us the species, the water, the time of day, the sunlight, the lure used, the depth targeted, whether stocked or natural populations, or whether the fish in fact were CIRCLING AROUND IN A BARREL.:wtf::vomit:
    • You ask for input on "better position sizing" without telling us anything of the positions you've already worked.:rolleyes:

    Being able to code does not make you a programmer. Being able to program does not make you a computer whiz. HAVING a computer and a small clue about coding and what "Monte Carlo" means -- that doesn't make you a trader.

    There are some people here who have FINE books out there, from which you are probably smart enough, right now, to gain A LOT. Here's two:
    https://kjtradingsystems.com/index.html
    https://www.systematicmoney.org/systematic-trading
     
    Last edited: Jul 19, 2019
  3. Well deserved burn
     
    Overnight likes this.
  4. Great input tom, rather than answering just bashing it with full force - your tribe of "experts" will give you the head nod that only a small subset of you elite traders are deserving and the rest of us are just a bunch of idiots.

    I know you know this but there was nothing meaningful in your response other than your assumption that everyone posting here is an idiot - if you don't know how to improve the position sizing based on the input data, just don't reply, no need to be so unpleasant
     
    Last edited: Jul 19, 2019
  5. rb7

    rb7

    I scrolled down so long that I can't remember what was the original question.....

    More seriously, my advice: Don't try to overfit your backtest trades.

    And median and average P/L of trade are not very useful in terms of strategy evaluation (if your goal is to make money!).
    Most important is what's you risk-reward ratio, drawdown, sharp ratio, etc.

    But anyway, without anymore information from your strategy, I doubt that you would get some useful advice here or anywhere else.
     
    jl1575 and sysdevel99 like this.
  6. JMHO but it's never seemed worth it to me to try to exactly engineer trade size (like kelly) based on system "results." Real life trading gets in the way of smooth returns and max excursions. I'd just adjust trade size based on account size and equity curve. Adding to losers can be a slippery slope and needs to be well thought out, and safely within a certain max trade size.

    Also if the system is a loser (P/L -$118?), trade sizing isn't going to help much.
     
    sysdevel99 likes this.
  7. Overnight

    Overnight

    Your post was unpleasant, in that you posted a string of numbers so long that people's mouse-wheels have lost half their life in trying to get to the bottom of the list.

    Do you honestly expect people to enter every one of those numbers into a spreadsheet for you to figure out if your have the proper mean, median and mode of them?
     
    tommcginnis likes this.
  8. tommcginnis

    tommcginnis


    Yyyyyyyyyyyup. :rolleyes:
     
    sysdevel99 likes this.
  9. Overnight

    Overnight

    When you think your trade has reached the peak of the adverse move, just add in the same direction with 10 times your initial entry size. Problem solved. Good luck on that average down technique.
     
  10. 2rosy

    2rosy

    take the first derivative of the expected value of log utility
     
    #10     Jul 19, 2019