Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 19:21:32 +0000



Post From: MACD C++

[2013-07-31 00:05:02]
User75554 - Posts: 5
"In developing a C++ based Advanced Custom Study function using ACSIL, how can I compare 4 different MACD diff values at the current time when the MACD Diff values are based on different tick sizes (1 minute, 5 minute, 10 minute, and 30 minute, respectively).

Worded differently, I have four identical chart studies that only differ in chart times. Each of these studies contain a MACD Diff subgraph. I want to create an Advanced Custom Study that gives me an alert/message when the MACD Diff on the 4 chart studies meet a certain criteria."

"My problems are:
1.) Bringing in the MACD Diff data from existing studies into one Advanced Custom Study Function
2.) Making sure that when comparing the MACD Diff Data, the values being compared are at the same time ( will sc.index take care of this?)