Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:34:11 +0000



Post From: Candle Stick Patterns Finder issue

[2021-06-15 17:46:53]
User230940 - Posts: 121
Hello John,

I tried to Change the Studies4.cpp to hold my studies only.

This becomes difficulty because the Array List of "CandleStickPatternNames.h" & "CandleStickPatternNames.cpp" is not used to display the Choice on the Studies setting. The used List seams to be Sierrachart internal.

I change the code on two points to get it working, but static.

I Changed in SC_default the Input_InputPattern from:

Input_InputPattern1.Name="Pattern 1";
Input_InputPattern1.SetCandleStickPatternIndex(0);
to:
Input_InputPattern1.Name="Pattern 1";
Input_InputPattern1.SetCustomInputStrings("None;MyStudies1;MyStudies2");
Input_InputPattern1.SetCustomInputIndex(0);

Thanks to this not the internal Array will be used.

To get it working I had to change the following entries:
from
PatternToLookFor[*] = Input_InputPattern1.GetCandleStickPatternIndex();
to
PatternToLookFor[0] = Input_InputPattern1.GetIndex();

The File "CandleStickPatternNames.cpp" has been modified to my new List too.

Anytime I add a studies I have to modify on several parts which is possible but not nice.


Is it possible to use as Input for the SetCustomStrings the Array from CandleStickPatternNames.h & CandleStickPatternNames.cpp?

Input_InputPattern1.SetCustomInputStrings("None;MyStudies1;MyStudies2");

Input_InputPattern1.SetCustomInputStrings(SOMETHING LIKE CandleStickPatternNames);

thanks
regards
carsten