Support Board
Date/Time: Thu, 16 Jan 2025 16:27:33 +0000
TRADING:LOSING TRADES study
View Count: 1208
[2017-11-02 22:32:39] |
User29926 - Posts: 92 |
Which source file is the "TRADING:LOSING TRADES" study located in? I did a code search in the ACS_SOURCE folder and the only code for the trading studies was "Trading: Profit/Loss Text" located in studies3.cpp. I need to determine how to capture when a new trade is entered and when a trade is exited. I was hoping a review of the code in these studies would assist with figuring this out. |
[2017-11-03 21:30:58] |
Sierra Chart Engineering - Posts: 104368 |
There is a huge amount of complexity that goes into the final result that study accesses. The source code is just not available and it would be useless anyway. It is not anything that we could realistically provide. You can determine the information you need by using this function: Automated Trading From an Advanced Custom Study: sc.GetTradePosition The returned data structure does indicate the date and time of the last entry and exit orders. 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 |
[2017-11-03 22:26:49] |
User29926 - Posts: 92 |
You can determine the information you need by using this function:
Automated Trading From an Advanced Custom Study: sc.GetTradePosition The returned data structure does indicate the date and time of the last entry and exit orders. The two lines code example does not provide any details of how to process the data returned. Example
//Get Position data for the symbol that this trading study is applied to. s_SCPositionData PositionData; int Result = sc.GetTradePosition(PositionData); Without a full code example of how to process the returned data. The link and example is not helpful to users trying to learn your software. Screen shot is also attached of the document page as it was when I viewed it. |
sc.GetTradePosition.PNG / V - Attached On 2017-11-03 22:15:56 UTC - Size: 82.34 KB - 325 views |
[2017-11-03 22:52:53] |
Sierra Chart Engineering - Posts: 104368 |
Is this really a serious question? Did you ever look at the members of the s_SCPositionData structure in the documentation. Also it is routine, that we update documentation in relation to customer questions in order to make it as clear as possible. So if we did update it, so what? What are you trying to prove here. 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: 2017-11-03 22:55:34
|
[2017-11-03 23:27:13] |
Sierra Chart Engineering - Posts: 104368 |
Have a look at the scsf_TradingExampleGetPositionData function in the /ACS_Source/TradingSystem.cpp file. The basic point is, is a data structure contains data members. And you just simply access the documented members. All of this is standard C/C++ programming. This concept is not Sierra Chart specific. Refer to: http://www.cplusplus.com/doc/tutorial/structures/ 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: 2017-11-04 03:46:47
|
To post a message in this thread, you need to log in with your Sierra Chart account: