Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 01:41:49 +0000



Comparing entry fill price to sc.Ask and sc.Bid

View Count: 677

[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?
[2019-06-05 04:59:43]
Sierra Chart Engineering - Posts: 104368
You should use this function:
sc.FormattedEvaluate()
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-06-05 04:59:52

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account