Login Page - Create Account

Support Board


Date/Time: Sat, 21 Dec 2024 17:25:10 +0000



ACSIL Question

View Count: 1044

[2014-12-16 20:06:54]
Entropy - Posts: 36
I coding my own trading system in ACSIL and have a problem with sc.CrossOver(OscSubgraph, ShortEntryLevel) as ShortEntryLevel is a scalar and not an array. I thought perhaps the sc.CrossOver() was overloaded but it doesn't seem to be. How do I solve this problem?

Also I want to make sure the close is above a moving average, sc.Close > MASubgraph, but I am not sure how to do this properly in ACSIL. Perhaps sc.Close[sc.Index] would work but how do I access last value of MASubgraph properly?

Cheers,

[2014-12-16 22:15:12]
onnb - Posts: 662
1. Make a subgraph - populate its values with ShortEntryLevel - ShortEntryLevelSG[sc.Index] = ShortEntryLevel;
2. sc.Close[sc.Index] > MASubgraph[sc.Index]
[2014-12-16 23:03:17]
Entropy - Posts: 36
Thanks! - that solve it.

Cheers
[2014-12-19 04:36:38]
Sierra Chart Engineering - Posts: 104368
You need to fill out an array with the integer value you want to use and pass this to the Crossover function.

We recommend using one of the additional/extra Arrays on a Subgraph.

Refer to this page for working with ACSIL arrays:

http://www.sierrachart.com/index.php?page=doc/doc_ACS_ArraysAndLooping.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
Date Time Of Last Edit: 2014-12-19 04:36:59
[2014-12-19 15:35:25]
Entropy - Posts: 36
OK, good solution. Thanks!

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

Login

Login Page - Create Account