In the variable section you need to add a new variable
in my case after line 61 i added
privateint dist = 5;
then goto property section
after the 3 Values section at line 945 in original script
add this
[Description("Distance")]
[Category("Parameters")]
[Gui.Design.DisplayNameAttribute("Shape Distance")]
publicint Dist
{
get { return dist; }
set { dist = Math.Max(1, value); }
}
then you need to go to the Shape section and change each line of code and remove the 2 and replace it by dist like in this example
if (isUpThrustBar[0] && !isNewConfirmedUpThrustBar[0])
{
DrawSquare("MySquare" + CurrentBar, true, 0, High[0] + dist * TickSize, Color.Red);
}
I hope that helps as now you can pick in the parameters what distance you want
if this is too complicated than go in the Shape section and just change the 2 for any number you want than it will be fixed
good luck
Comment