Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 17:01:45 +0000



Post From: TCP/IP Server in custom study

[2021-06-21 19:31:31]
User438857 - Posts: 5
Hi,

Thanks a lot.

I tried to parse pointers to Server class in first way;

if (server == NULL) {
    SCFloatArray VWAP_Reference;
    sc.GetStudyArrayUsingID(5, 0, VWAP_Reference);

    SCFloatArray STD1_A_Reference;
    sc.GetStudyArrayUsingID(5, 1, STD1_A_Reference);

    SCFloatArray STD1_B_Reference;
    sc.GetStudyArrayUsingID(5, 2, STD1_B_Reference);

    

    SCFloatArray STD4_A_Reference;
    sc.GetStudyArrayUsingID(5, 7, STD4_A_Reference);

    SCFloatArray STD4_B_Reference;
    sc.GetStudyArrayUsingID(5, 8, STD4_B_Reference);

server = new Server(sc, 1,VWAP_Reference, STD1_A_Reference, STD1_B_Reference, STD4_A_Reference, STD4_B_Reference);
server->Start();
sc.SetPersistentPointer(1, server);

}

The single problem is sometime I receive bad values (0 or other out of range numbers) in arrays VWAP_Reference, STD1_A_Reference, STD1_B_Reference, STD4_A_Reference, STD4_B_Reference

Can you give me please a fix for these?

Thanks a lot and best regards