NexusFi: Find Your Edge


Home Menu

 





Sierra Chart ACSIL Study and Bar Coloring


Discussion in Sierra Chart

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




 
Search this Thread

Sierra Chart ACSIL Study and Bar Coloring

  #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?
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts