Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 22:09:17 +0000



Post From: Setting .Drawstyle is ACSIL Study

[2022-06-27 13:16:51]
User92573 - Posts: 548
Dear Support

I'd be grateful for some direction on the following.

Although I set the default .Drawstyle for a Subgraph in the defaults section; I then change the .Drawstyle via the Input Selection i.e.


sc.AutoLoop = 1;
Subgraph_One.DrawStyle = DRAWSTYLE_STAIR;
Input_Show_One.SetYesNo(true);

// ------------------------------------------

if(Input_Show_One.GetYesNo())
{
Subgraph_One.DrawStyle = DRAWSTYLE_LINE;
}  
else
{    
Subgraph_One.DrawStyle = DRAWSTYLE_HIDDEN;
  
}




Here is my issue. I'm now setting on all new bars the selected .Drawstyle which means I cannot now select an alternative .Drawstyle.

Each bar will, as expected, run the input question and then set the .Drawstyle to either DRAWSTYLE_LINE or DRAWSTYLE_HIDDEN.

As a result other .Drawstyle's are no longer an option, as even if selected they will be reset as the code is executed.

I can see a persistent variable is most likely the solution but I'm not sure how to achieve the outcome.

Any help appreciated

Many thanks