I am writing to you again because I am already quite desperate with the issue of disconnections and I don't know what else to do.
I know that:
1.- Ninja has no control over disconnections and that it is the data provider that performs the disconnection and Ninja simply notifies it to me.
2.- I must deactivate the power saving of the network card.
3.- I must contemplate possible outages from my ISP (My computer is a cloud server contracted with a company with redundant internet connections).
4.- I must understand the different start behaviors of the strategy (I think I already understand all of them and from what I see, they only make sense On "Connecion Lost" and not On "Disconnected". In any case, I already have established it in "Kepp Running").
My problem usually occurs on weekends when my data provider (NinjaTrader Continuum) makes disconnections. Said this, I need you to clarify several things to me:
1.- It seemed to me to understand in some previous answer that in this case, Ninja stays disconnected and there is no way to reconnect automatically. That's right?
2.- I can understand that when the disconnection occurs, the strategies stop. But I don't understand why, when I restore the connection (manually of course) and the charts correctly reflect the purchased positions and the ProfitTarget and StopLoss set, when I re-enable the strategies, the ProfitTarget and StopLoss are cancelled and disappear.
3.- Do you ALWAYS go through the CONNECTION LOST state before reaching a DISCONNECTED state? Is there a way to get to DISCONNECTED without first going through STOPLOSS?
4.- What exactly does the "Disconnected Delay Seconds" parameter do? I have read the help many times, but it is not very clear:
4.2.- What reconnection attempts are then made with the "Number of restart attempts" and "Restarts within x minutes" parameters? If in the end it is passed to DISCONNECTED and it is true that there is no way to automatically reconnect, then, what connection retries do both parameters perform?
I need to understand all this very well.
My strategies shouldn't be affected by the weekend disconnections (or any other). In other words. If the last tick received is on Saturday at 01:30 am and another one is not received until Sunday night, then perfect. But everything must continue to function as if nothing had happened. If there have been disconnections in between, the ideal is that the system reconnects itself. And in the worst case, if that were not possible (something that seems unusual to me on a platform of this level and that allows programming strategies) at least when I do the manual reconnection and manually activate my strategies again, the data (Positions, ProfitTargets and StopLoss) are maintained as if nothing had happened.
Please excuse my way of expressing myself, but I'm already quite desperate with all this. I have spent more than 1 year programming my strategies with Market Replay (where obviously there are no disconnections) and now I have found all this.
I need you to please explain to me ONE BY ONE each of the above points and better yet, tell me how I should configure Ninja and/or my strategies to get what I need.
Thank you and I apologize again for my desperate way of expressing myself.
All the best.
Comment