|
Post by Midnight Cowboy on Nov 8, 2010 2:32:10 GMT -5
Great site! Keep up the good work.
I'd like to look up different ATR trail stop multiplier factors based on what symbol is currently being observed (the symbol of the current chart). I'd like to automate the adjustment of ATR mult by hand in the study/strategy settings for each symbol.
Have looked at getSymbolPart(1) but cannot get a string out, seems can only plug the result into close(). I have been able to put the current symbol text into chart bubble, just not into a variable.
A simple example of what I'd like to do:
atrMult = getATRMult(getSymbolPart(1));
getATRMult uses simple if then statements to assign appropriate ATR mult values based on the symbol or better yet, switch() though I don't think it can without enum which i awkward.
Thanks for any tips to get this working.
|
|
|
Post by aquwnizigige on May 12, 2019 1:07:52 GMT -5
|
|