Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 13:35:03 +0000



[Programming Help] - Is there ACSIL way to mark Support/Resistance zones in the Label Column area?

View Count: 1386

[2019-03-01 18:26:55]
User972768 - Posts: 166
Hello,

I would like to create a custom study that would mark Support and Resistance zones by some criteria. With help of s_UseTool I can place rectangles on the chart. Since I like placing trades via Chart Trading I would like to see these zones marked in the Label Column. The issue I see (please correct me if I'm wrong here) is that subgraph can't produce zone as result, it can have single value only. If such functionality is not part of ACSIL yet, I believe it would be great addition. Making 60 single-value subgraphs to mark tick values in few zones would be headache to manage for any user.

If I may suggest, each zone can be marked by 2 values: its middle and its width in ticks. To trigger this way of marking I would use special value in sc.Subgraph[].DrawStyle. Perhaps, that would be a way to mark them with minimum effort. And such functionality is already in current code base: sc.Subgraph[].Data[], sc.Subgraph[].DrawStyle and sc.LineWidth. :) The only missing part is to present it in main chart area as well as in the Label Column somehow colored / transparent.

Please find attached similar idea implemented in Bookmap (grey zones beside price)

Thanks and best regards
Date Time Of Last Edit: 2019-03-01 22:39:18
imageBookmap_zones.png / V - Attached On 2019-03-01 18:30:37 UTC - Size: 473.25 KB - 508 views
[2019-03-02 01:18:10]
Devil_On_WallStreet - Posts: 67
this is how I have my custom support/resistance zones... It does require 2 Subgraphs though. I store the actual level as a sc.Subgraph[].Arrays[], you can also use SCFloatArrayRef. Then I have 2 subgraphs, DRAWSTYLE_TRANSPARENT_FILL_TOP and BOTTOM. you can then specify either an Int or float for the offset if you want it as an input, or just set it as for example

TopZone[sc.Index] = Offset.GetInt() * sc.Ticksize;
BottomZone[sc.Index] = (Offset.GetInt() * sc.Ticksize) * -1;

alternatively you can set them once on chart recalculation so it doesn't have to call the .GetInt() every time time the study calculates... this is what I suggest especially if you are using a user input...

there is a way to project into the not label area, but into the fill space using sc.Subgraph[].GraphicalDisplacement
imageSnRZones.JPG / V - Attached On 2019-03-02 01:17:20 UTC - Size: 218.83 KB - 988 views
[2019-03-02 02:38:50]
User972768 - Posts: 166
Hi Devil_On_WallStreet,

Thanks for your suggestion. I've got this far in my code. My question mainly was about ability to put zones covering specific price levels into the Label Area and as suggestion proposed special DrawStyle that would support such special way of drawing provided Subgraph information and allow to put info into the Label Area. Perhaps such way of drawing can use only last value from sc.Subgraph[].Data[] array to avoid any ambiguity coming from whole data set of that array.

Thanks again
[2019-03-04 21:33:01]
User972768 - Posts: 166
Any "yay" or "nay" from Sierra Team will be greatly appreciated.

Thanks and best regards
[2019-03-04 23:54:19]
Devil_On_WallStreet - Posts: 67
I seriously doubt it's going to be a yay, at least not in the near future... I think that's what the sizeable fill space was designed for...
[2019-03-05 00:44:36]
User972768 - Posts: 166
Hello Devil_On_WallStreet,

"Never say Never" ;) We don't know until Sierra tells us. We can't discuss this topic without them as we don't know complexity of code that would be involved in such change, as well as basically their plans and current load.

As benefit developing it, I can see Sierra matching other players in functionality (Bookmap: "cloud notes" & Investor RT: "Flex levels"). Perhaps, next step would be to allow exchange of these CSV files between platforms, as there are many people using Sierra for charting and Bookmap for execution (similar to others using Investor RT for charting and Bookmap for execution).

Best regards
Date Time Of Last Edit: 2019-03-05 00:46:11

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account