Найти Посты: #If

Roman
@denis5 вот нашел еще индикатор. по этому же принципу. только красит не бары. а гистограмму МАСД # # author : krazana # date : 8-jan-2008 # description : # ----------------------------------- # coloured MACD : # red - BUY forbidden # green - SELL forbidden # declare lower; input fastLength = 12; input slowLength = 26; input MACDLength = 9; def fastAvg = Ema2(data = close, "smoothing factor" = 2 / (1 + fastLength)); def slowAvg = Ema2(data = close, "smoothing factor" = 2 / (1 + slowLength)); def Value = fastAvg - slowAvg; def nextAvg = ExpAverage(data = Value, MACDLength); plot Diff = value - nextAvg[1]; def macd_diff = Diff - Diff[1]; def ema_diff = slowAvg - slowAvg[1]; diff.AssignValueColor(if macd_diff > 0 and ema_diff > 0 then Color.UPTICK else if macd_diff < 0 and ema_diff < 0 then Color.DOWNTICK else color.WHITE); Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

Проголосовало: 0

Roman
@HAMAHA вот нашел еще индикатор. по этому же принципу. только красит не бары. а гистограмму МАСД # # author : krazana # date : 8-jan-2008 # description : # ----------------------------------- # coloured MACD : # red - BUY forbidden # green - SELL forbidden # declare lower; input fastLength = 12; input slowLength = 26; input MACDLength = 9; def fastAvg = Ema2(data = close, "smoothing factor" = 2 / (1 + fastLength)); def slowAvg = Ema2(data = close, "smoothing factor" = 2 / (1 + slowLength)); def Value = fastAvg - slowAvg; def nextAvg = ExpAverage(data = Value, MACDLength); plot Diff = value - nextAvg[1]; def macd_diff = Diff - Diff[1]; def ema_diff = slowAvg - slowAvg[1]; diff.AssignValueColor(if macd_diff > 0 and ema_diff > 0 then Color.UPTICK else if macd_diff < 0 and ema_diff < 0 then Color.DOWNTICK else color.WHITE); Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

Проголосовало: 0

Roman
@HAMAHA Здравствуйте. помогите пож-ста. не могу поставить индикатор. что делаю не так не знаю. я просто копирую. и вставляю#paintBAR # EMA input EMAlength = 13; def EMA=MovAvgExponential(close,EMAlength); def CrossesEMAAbove=EMA crosses above EMA[1]; def CrossesEMABelow=EMA crosses below EMA[1]; # MACD Histogram input fastLength = 12; input slowLength = 26; input MACDLength = 9; input AverageType = {SMA, default EMA}; def Diff = MACD(fastLength, slowLength, MACDLength, AverageType).Diff; def CrossesMACDAbove = Diff crosses above Diff[1]; def CrossesMACDBelow = Diff crosses below Diff[1]; # paint bars assignPriceColor(if CrossesEMAAbove AND CrossesMACDAbove then color.GREEN else if CrossesEMABelow AND CrossesMACDBelow then color.RED else color.BLUE); plot n=double.naN; n.hide();

Проголосовало: 0

fx102 добавил 3-ю фотографию в альбом "Февраль 2012". Фев 29 2012, 21:30
сергей
 thinkorswim
люди , подскажите как по новым правилам можно установить thinkorswim? по всем видео-ссылкам кот. я просмотрел - появляется страничка для ввода логина - пароля , сейчас такого нету .... приходит на мэйл какое-то дурацкое письмо без всяких ссылок = You've taken the first step to pursuing your financial goals by completing the TD AMERITRADE account application. We're looking forward to receiving your signed application and opening your account. Once your account is open you'll have access to powerful tools and resources to help you make smarter trading and investing decisions. And you can take advantage of the $9.99 Internet equity commissions with no share limit - for both market and limit orders.¹ To complete the application process, you need to: 1. Review the application that you printed from our Web site. If necessary, indicate changes by writing on the application. 2. Sign the application and any additional forms. 3. Return all pages to us, along with your deposit. The address and fax information is located on your application. We'll begin processing your account when we receive your signed application. Please note: We cannot accept W-8BEN forms via fax; the original document is required for account opening. If you have any questions, or had a problem printing your application, please contact a New Accounts representative at 800-276-8746, 24 hours a day, seven days a week. Again, thank you for choosing TD AMERITRADE. We look forward to serving you for years to come....

Проголосовало: 0

Максим
HAMAHA  
 thinkorswim
Индюк для thinkorswim, чтобы красились бары.# EMA input EMAlength = 13; def EMA=MovAvgExponential(close,EMAlength); def CrossesEMAAbove=EMA crosses above EMA[1]; def CrossesEMABelow=EMA crosses below EMA[1]; # MACD Histogram input fastLength = 12; input slowLength = 26; input MACDLength = 9; input AverageType = {SMA, default EMA}; def Diff = MACD(fastLength, slowLength, MACDLength, AverageType).Diff; def CrossesMACDAbove = Diff crosses above Diff[1]; def CrossesMACDBelow = Diff crosses below Diff[1]; # paint bars assignPriceColor(if CrossesEMAAbove AND CrossesMACDAbove then color.GREEN else if CrossesEMABelow AND CrossesMACDBelow then color.RED else color.BLUE); plot n=close;

Проголосовало: 0

fx102 добавил 3-ю фотографию в альбом "Февраль 2012". Фев 24 2012, 15:25
Сан Чо
переворот в бай. однако...

Проголосовало: 0

olga
 thinkorswim
Здравствуйте. Возможно ли немного переделать формулу thinkorswim которая показывает уровни, по типу чашек с ручками и треугольники - plot hi = (highest(high,120)[5]+0.01)- close <=0.05 and (highest(high,120)[5]+0.01) >=highest (high, 6) or close - (lowest(low, 120)[5]-0.01) <=0.05 and (lowest(low, 120)[5]-0.01) <=lowest (low,6); AssignBackgroundColor (if (highest(high,120)[5]+0.01)- close <=0.02 and (highest(high,120)[5]+0.01) >=highest (high, 6) then color.GREEN else if close - (lowest(low, 120)[5]-0.01) <=0.02 and (lowest(low, 120)[5]-0.01) <=lowest (low,6) then color.RED else color.BLACK); Подсвечивает при приближении цены к уровню. Есть ли возможность сделать так, чтобы подсвечивало когда цена вышла за уровень и находится в пределах 1-3 центов?

Проголосовало: 0

fx102 добавил 3-ю фотографию в альбом "Февраль 2012". Фев 14 2012, 14:09

Фильтр

Что искать
Тип постов
По людям В группе Дата
Наш канал