Support Board
Date/Time: Sun, 22 Dec 2024 05:24:48 +0000
help with autotradeexample1.cpp
View Count: 1116
[2015-07-23 19:52:33] |
User476077 - Posts: 2 |
I am a new user and need help getting started with ACSIL. Specifically, I am trying to get autotradeexample1.cpp to work with two SMAs, 20 and 50 periods. Is there a code example for this? Regards, Gopal |
[2015-07-24 05:42:33] |
Sierra Chart Engineering - Posts: 104368 |
Have a look at this page: https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_ExampleTradingSystems.html 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 |
[2015-07-24 16:19:21] |
User476077 - Posts: 2 |
Yes, that's the page I have a question about. How do I make line1ref and line2ref point to the 20 SMA and 50 SMA? Do I need to manually add them to the chart and then add this study? Regards, Gopal // using the line1Ref and line2Ref input variables, retrieve the subgraph arrays into line1, // line2 arrays respectively SCFloatArray line1; sc.GetStudyArrayUsingID(line1Ref.GetStudyID(), line1Ref.GetSubgraphIndex(), line1); SCFloatArray line2; sc.GetStudyArrayUsingID(line2Ref.GetStudyID(), line2Ref.GetSubgraphIndex(), line2); |
[2015-07-24 23:36:21] |
Sierra Chart Engineering - Posts: 104368 |
Yes, add those Moving Average-Simple studies to the chart and in the automated trading system study you need to set the Line1 and Line2 Inputs in the Study Settings window to refer to those moving average studies.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: