You are welcome
Alex
Originally posted by TASJL
View Post
var rsi = new RSIStudy(14); function preMain() { setStudyMin(0); setStudyMax(100); setStudyTitle("RSI Study"); setDefaultBarFgColor(Color.black); setDefaultBarThickness(1); setDefaultBarStyle(PS_DOT); setColorPriceBars(true); setDefaultPriceBarColor(Color.black); } function main() { var v = rsi.getValue(RSIStudy.RSI); if(v == null) return; if(v > 70) { setPriceBarColor(Color.red); Alert.email("Testing", "for test"); Alert.addToList(getSymbol(), "Test symbol", Color.red, Color.green); Alert.playSound("C:\\Users\\eLSoLe\\Documents\\Interactive Data\\Sounds\\warning.wav"); } else if(v < 30) { setPriceBarColor(Color.green); Alert.email("Testing", "for test"); Alert.addToList(getSymbol(), "Test symbol", Color.red, Color.green); Alert.playSound("C:\\Users\\eLSoLe\\Documents\\Interactive Data\\Sounds\\warning.wav"); } return v; }
var rsi = new RSIStudy(14); function preMain() { setStudyMin(0); setStudyMax(100); setStudyTitle("RSI Study"); setDefaultBarFgColor(Color.black); setDefaultBarThickness(1); setDefaultBarStyle(PS_DOT); setColorPriceBars(true); setDefaultPriceBarColor(Color.black); } function main() { var v = rsi.getValue(RSIStudy.RSI); if(v == null) return; if(v > 70) { setPriceBarColor(Color.red); Alert.email("Testing", "for test"); Alert.addToList(getSymbol(), "Test symbol", Color.red, Color.green); Alert.playSound("C:\\Users\\eLSoLe\\Documents\\Interactive Data\\Sounds\\warning.wav"); } else if(v < 30) { setPriceBarColor(Color.green); Alert.email("Testing", "for test"); Alert.addToList(getSymbol(), "Test symbol", Color.red, Color.green); Alert.playSound("C:\\Users\\eLSoLe\\Documents\\Interactive Data\\Sounds\\warning.wav"); } return v; }
Leave a comment: