Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 13:47:14 +0000



Post From: Question if Server is down

[2019-06-18 22:01:26]
rahul - Posts: 160
Thanks for your reply.
1. Firstly, are the servers configured correctly? Primary = Server 2; Backup 1 = Server 4; Backup 2 = Server 1?
2. Are you saying that since I have backup servers I don't need check for this in my code? My order is only sent on Bar Close, so if there is enough of a delay, then the new bar will start and the code will skip the trade. Since these trades can go on for days, I would miss a critical entry / exit.

If I do check for this, should I create a recurring loop till the result = 0?
Is this the right approach?

if (Buy == true)
{
do
{
Result = sc.BuyEntry(NewOrder);
}while (Result != 0)
}