Support Board
Date/Time: Mon, 10 Feb 2025 16:11:38 +0000
[Programming Help] - Changing the RetracementLevels[] in a custom DRAWING_PRICE_PROJECTION
View Count: 731
[2020-08-19 06:32:00] |
User895355 - Posts: 55 |
I've created a custom price projection study however I need to modify the retracement levels with different percentages according to my calculations. How can I do this?
|
[2020-08-19 06:50:09] |
Ackin - Posts: 1865 |
for example: Tool.RetracementLevels[0] = 100.0f;
Tool.RetracementLevels[1] = 200.0f; Tool.RetracementLevels[2] = 300.0f; Tool.RetracementLevels[3] = 400.0f; Using Drawing Tools From an Advanced Custom Study: s_UseTool::RetracementLevels[] |
[2020-08-19 07:21:15] |
User895355 - Posts: 55 |
I see that thanks, but what is ACSIL_DRAWING_MAX_LEVELS in the example code? for (int LevelIndex = 0; LevelIndex < min(8, ACSIL_DRAWING_MAX_LEVELS); LevelIndex++)
Tool.RetracementLevels[LevelIndex] = LevelIndex * 10.0f; Date Time Of Last Edit: 2020-08-19 07:21:48
|
[2020-08-19 07:25:52] |
Ackin - Posts: 1865 |
ACSIL_DRAWING_MAX_LEVELS = 32
|
[2020-08-19 07:27:47] |
Ackin - Posts: 1865 |
what is ACSIL_DRAWING_MAX_LEVELS in the example code?
Maximum number of all levels (level index number 0-31) |
[2020-08-19 07:30:14] |
User895355 - Posts: 55 |
That's all that is? A constant to max levels? I've searched the site and didn't find any explanation bout them
|
[2020-08-19 07:33:55] |
Ackin - Posts: 1865 |
That's all that is?
YesI've searched the site and didn't find any explanation bout them
If you want to be a programmer, learn to search in code and header files. The documentation does not always contain everything ... it is not possible to describe everything.Good luck |
[2020-08-19 07:37:49] |
User895355 - Posts: 55 |
Ouch! Thanks for the attitude.
|
To post a message in this thread, you need to log in with your Sierra Chart account: