NexusFi: Find Your Edge


Home Menu

 





Sierra Chart ACSIL Study and Bar Coloring


Discussion in Sierra Chart

Updated
    1. trending_up 2,230 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 OrangeTabby 
Redwood City, CA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Emini, Stocks, Options, Currency
Posts: 5 since Jul 2020
Thanks Given: 23
Thanks Received: 1

Hello -

I have an ACSIL study that calculates a 0 or 1 value at time t = now that I want to use to color a bar that has already printed.

Although my code assigns a "1" to the relevant array index in my subgraph, I don't see the value update when I'm watching it in an attached spreadsheet.

However, if I make the same assignment to subgraph[sc.updateStartIndex] I do see the value change as expected in the spreadsheet.

Is it not possible to revise a subgraph array at a previous index?

BTW, I have
 
Code
sc.autoLoop = 0;
if that makes any difference??

Thanks for any advice on this!


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 OrangeTabby 
Redwood City, CA
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Emini, Stocks, Options, Currency
Posts: 5 since Jul 2020
Thanks Given: 23
Thanks Received: 1

Hi All -

I'm the OP, and I sort of figured out this by spending more time with the Sierra ACSIL docs and doing some experimentation.

I'm not sure how to delete a post, but I think it's safe to consider this post closed.

I will note a couple of things for posterity, however:

1) if you are trying to color elements of the main price graph (region 1), your custom study has to be placed in region 1

2) to affect the color of bars, you need to write to the subgraph[].Data[] array of your subgraph, not the subgraph[] element

Maybe that will help someone in the future working on bar coloring via a custom study in ACSIL.


Started this thread Reply With Quote
Thanked by:




Last Updated on April 3, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts