I want to set up a parameter in preMain that allows me to pick which price to use in setting a trigger -- high, low, open, close. Then, in main, I need to get that price but I don't want to create a series.
If I select "high" in the paramaters, the statement in main would need to select the current high price.
Like: triggerPrice = high(0);
It's not clear to me how to construct the above statement in main to use a variable from preMain which has the type of price selection. I can't seem to find any examples.
Thanks.
If I select "high" in the paramaters, the statement in main would need to select the current high price.
Like: triggerPrice = high(0);
It's not clear to me how to construct the above statement in main to use a variable from preMain which has the type of price selection. I can't seem to find any examples.
Thanks.
Comment