NexusFi: Find Your Edge


Home Menu

 





Sierra Chart ACSIL Study and Bar Coloring


Discussion in Sierra Chart

Updated
    1. trending_up 2,292 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?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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