Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 18:49:30 +0000



Post From: learning to code a simple strategy

[2016-02-06 20:01:24]
User61576 - Posts: 446
1. as part of the code i wanted to use the perior daily close as a parameter.
i understood that i will need to use the overlay indicator and read this http://www.sierrachart.com/index.php?page=doc/doc_StudyPriceOverlayStudy.php
when applying it over my 1min chart, i have an issue that the daily data is not showed on the same time of the day. i would expect it to be on the first 1 of the day
i am attaching my settings of the study and my result of the chart

2. later, in my code i will refer to the close of the day before if to go long or short (if close[-1] > open [-1] than buy
after reading the guide here http://www.sierrachart.com/index.php?page=doc/doc_ACSILRefOtherTimeFrames.php
i am still don't understand how to make a simple calc of close vs open as the example is more confuing.
do i need to add this line
SCInputRef DailyClose = sc.Input[7];
to the head of the script? that's how i manually set parameters from the settings box ?

SCFloatArray Study1Array;
sc.GetStudyArrayUsingID(Study1.GetStudyID(),Study1Subgraph.GetSubgraphIndex(),Study1Array);
how do i get close and open from the study overlay?

bottom line after putting a lot of time reding again and again, i still don't understand ho to use this in ACSIL.

thanks for clearing this for me!
Date Time Of Last Edit: 2016-02-06 21:11:43
imageoverlay problem.jpg / V - Attached On 2016-02-06 19:57:39 UTC - Size: 315.38 KB - 427 views
imageoverlay settings.jpg / V - Attached On 2016-02-06 19:57:49 UTC - Size: 349.81 KB - 350 views