Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 09:56:48 +0000



Post From: cumulative delta and price bar divergence

[2013-12-06 21:41:25]
Zosimus - Posts: 345
Here is a simple ACSIL code that I wrote that does what you want (If I understood you correctly).
It draws a Down Arrow above a positive bar that has a negative delta and an Up Arrow below a negative bar that has a positive delta.

If you also want to have a sound alert then enter "1" for "SoundAlert" in the Setting and Inputs. Use the Subgraps tab to configure the colors and width/size of the Arrows.

Regarding the sound alert - the study uses alert #7 for the Positive bar/Negative delta signal and alert #8 for the opposite signal. You can configure those alerts at the Global Settings >> General Settings.

Please take the time to check and make sure that this study behaves exactly like you want it to.
I am not a professional programmer and I am sure that there are better ways to write this but it works.

Enjoy.

I am attaching the .cpp file so that you will be able to build it on your SC Version.

If you need help with building:
Save the file at the ACS_Source folder within your SierraChart folder. After this go to Analysis >>> Build Custom Studies DLL, click "Select File" and choose this study from the list. then click the "Build Custom Studies DLL button". Wait a few seconds until you see the message "End of Build". Now you can close this compiler window and find the study in the Advanced studies list.