Jagmanmick wrote:Hi krog/SpiderMan
I am not sure how I can link the max of one range with the min of the other so they move up and down the range. (IndParam.NumParam[0].Min = 9; IndParam.NumParam[2].Max = 8;) I need these two linking together so they move together up and down the range.
Mick
Hi Jagmanmick,
now I see it -- these won't show up until closing the Indicator dialog box and reopening. But, there is a workaround:
in // Reading parameters:
if (start >= nBars) {
return;
}
It will return out and nothing in the indicator will calculate. I think there is some way to pop up a message to the user. But, I take the easy way out and add a note to the ToolTip, adding "\n This parameter must be greater than (the other parameter)".
or, should nBars be a fixed number greater than start? Then, make it start + (int)IndParam.NumParam[0].Value; with a Parameter being how many bars to add, not the total number of bars.
hope that helps !!