Electrified

Shares Risk (Long)

Electrified Actualizado   
Ever struggle to know how many shares you should be placing your order with? Risk is different for every person and every stock. This can help.

In the example above, I've added this indicator the the chart.
I then specified:
  • Risk Amount ($) = $500. (The max amount I'm willing to risk.)
  • Risk Source = (another indicator) Lower Limit 3. (See Lower Limits for more details)
  • Source Risk (%) = 0.0 (The default is 5.0 expecting the Risk Source to be the close.**)

Based upon how much I'm willing to risk, and the price difference between the close and Risk Source, this indicator will show the number of shares to purchase such that if the price drops to the stop level specified, my value loss should be limited to the Risk Amount.

333 shares is the value calculated for this example (latest bar). You can easily see how many shares you need to purchase for the lastest bar as well as track the previous values on the chart and the indicator cursor data.

---
** WARNING: There's no magic here. It's just math. So if you specify another indicator as the source, the values could get a bit strange and if the price is very close to the stop level, the number of shares could be unreasonably high. To help avoid this you can increase the minimum percent.
Notas de prensa:
Updated position of chart to make label more visible.
Notas de prensa:
  • Improved label.
  • Used Local Limit 4 instead with corrected parameters.
Notas de prensa:
Improved source value handling: Some sources are delayed because of their time frame and effectively report NaN until their next bar. This change persists their previously known value.
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?