Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 03:20:01 +0000



Post From: Bug in TradeOrder.Price1 (TTFIX)

[2013-11-18 08:38:47]
User40073 - Posts: 23
I tested new 1047 version. Price1 now 100x higher, I think should be divide by 100 the original price1.
now if i get price1 is 17910000.4000, but real price is 1791.00.
Please fix it.

Other big problem with ZigZag, If I want to get prices from array, sierra chart freeze.

SCSubgraphRef ZigZagLine = sc.Subgraph[1];
sc.ZigZag2(sc.BaseData[SC_HIGH], sc.BaseData[SC_LOW], ZigZagLine, sc.Index, 5, 2.5);

int n=0,i=0;
double p0=0,p1=0, p2=0;
i=sc.Index;n=0;
while(n<3)
{
if(p0>0) {p2=p1;p1=p0;}
p0=ZigZagLine[i];
if(p0>0) {n+=1; }
i--;
}

I tryed "for" loop etc... If I put zigzag array to loop, then sierra freeze.