Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 15:56:38 +0000



Post From: Comparing entry fill price to sc.Ask and sc.Bid

[2019-06-05 01:39:35]
Tom Hanks - Posts: 20
Hello,

For the purposes of determining how far the price has moved since trade entry and modifying my attached stop orders I would like to compare the entry fill price to sc.Ask and sc.Bid.

I am using the s_SCTradeOrder structure to pull my entry order fill price, but all of the options for this (Price1, AvgFillPrice, LastFillPrice) are doubles and sc.Ask/Bid are float. Do I need to convert the double to a float and round up or is there another way I should be doing this?