¿Me merece la pena comprar un eléctrico?

Buenos días,

Supongo que muchas de las dudas de este foro van en esta dirección, pero me gustaría vuestra opinión sobre mi caso:

  • Vivo en un pueblo a 60 km de mi trabajo. No voy todos los días, pero sí 3 veces por semana, es decir, unos 500km a la semana.
  • En mi casa no puedo poner un cargador. No tengo plaza de garaje ni posibilidad de hacer nada.
  • En mi trabajo hay varios cargadores para coches eléctricos, pagando claro. Es decir, no tendría en casa, pero sí en el trabajo.
  • En el publo sí que hay un cargador de esos públicos.

Es decir, en este caso, con cargadores en el trabajo pero no en casa y haciendo unos 500km a la semana, ¿me merece la pena comprar un eléctrico o tendría que afinar un poco más y que a cuánto me salen los 100 kms?

Muchas gracias

reddit.com
u/aitorp6 — 11 days ago
▲ 103 r/askspain

Hoy he visto dos ciclistas que se han parado en un semáforo en rojo

¿Creéis que les pasaba algo? ¿Estarían bien? ¿les habrá dado un ictus o algo?

reddit.com
u/aitorp6 — 13 days ago

Máster universitario en Wind Energy Engineering

Por si alguien de vosotros le interesa este nuevo máster univeritario en energia eólica.

Espero no estar incumpliendo alguna norma del foro. Si es así, avisdme y lo retiro.

Si tenéis alguna duda, escribidme en privado.

u/aitorp6 — 15 days ago

How to reliably detect a closed trade in real-time in NinjaTrader 8?

Hi everyone,

I'm going crazy trying to figure out a real-time event sync issue in NinjaTrader 8.

Every time a strategy closes a trade in `State.Realtime`, I want to trigger an external API POST request containing the trade summary (entry price, exit price, profit, etc.).

But I can't find a reliable event handler where the closed trade data is actually available at the millisecond it happens.

Here is what I've tried so far:

  1. Using `OnPositionUpdate`: I check for `marketPosition == MarketPosition.Flat`. The event fires perfectly, but when I try to read `SystemPerformance.AllTrades` or `Performance().RealtimeTrades`, the collection `Count` is still `0`. NinjaTrader seems to update these statistics asynchronously, so the trade isn't pooled yet, even if I add a `Task.Delay(500)` in a secondary thread.
  2. Using `OnExecutionUpdate`: It triggers on the fill, but accessing the historical trade performance collection from there still faces the same race condition/sync lag.

Is there a hidden native event (like an undocumented trade closed callback), or a standard workaround to force NinjaTrader to yield the `Trade` object immediately before the thread moves on?

Or should I just clone the data manually from the `Position` object right before it goes flat and calculate the PnL myself?

Any insights, code snippets, or architecture tips would be greatly appreciated. Thanks in advance!

reddit.com
u/aitorp6 — 2 months ago

Issues with extension in Linux distribution

Hi,

I've playing with Pi and I've tried to install one extension. To install it i need to be super user. I was thinking that the extension was installed in .pi folder, but no.

The thing is that once i've installed the extension with 'sudo', I can't use it. When I run Pi, the extension "is not there".

Any ideas?

reddit.com
u/aitorp6 — 3 months ago