#рисует показатели акции прямо на графике. #TNTrader
input AvgVolume = {default "1", "0"}; #средний объем за 14 дней
input ATR = {default "1", "0"}; #Average True Range за 14 дней
input VolumePlay = {default "1", "0"}; #Сколько сегодня проторговалась акция своих средних объемов за 65 дней
input ATRPlay = {default "1", "0"}; #Сколько своих АТР акция прошла сегодня
input Volume_ = {default "1", "0"}; #Объем за сегодня
input PositionS = {default "1", "0"}; #позиция по текущей акции
input PositionM = {default "1", "0"}; #позиция по SPY
input PositionD = {default "1", "0"}; #позиция текущей акции по дневному графику за 6 месяцев.
выкладывал в ветке thinkorswim...там ищи
Июн 04 2013, 17:00#рисует показатели акции прямо на графике.
, 14 )-Average(low(period = "DAY"
,14 )),2);
-low(period = "DAY"
)/iATR,1);
[1],14),0);
;
,65),1);
-low(symbol="SPY",period="DAY"
)/(high(symbol="SPY",period="DAY"
-low(symbol="SPY",period="DAY"
)*100,0);
,180))/(highest(high(period="DAY"
,180)-lowest(low(period="DAY"
,180))*100,0);
)/(high(period="DAY"
-low(period="DAY"
)*100,0);
Июн 04 2013, 17:22#TNTrader
input AvgVolume = {default "1", "0"}; #средний объем за 14 дней
input ATR = {default "1", "0"}; #Average True Range за 14 дней
input VolumePlay = {default "1", "0"}; #Сколько сегодня проторговалась акция своих средних объемов за 65 дней
input ATRPlay = {default "1", "0"}; #Сколько своих АТР акция прошла сегодня
input Volume_ = {default "1", "0"}; #Объем за сегодня
input PositionS = {default "1", "0"}; #позиция по текущей акции
input PositionM = {default "1", "0"}; #позиция по SPY
input PositionD = {default "1", "0"}; #позиция текущей акции по дневному графику за 6 месяцев.
AddLabel (yes,"TNTrader", color.DARK_GRAY);
def iATR = round((Average(high(period = "DAY"
AddLabel (!ATR,"ATR " + iATR, color.GRAY);
def iATRPlay = round((high(period = "DAY"
AddLabel (!ATRPlay,"ATRPlay " + iATRPlay, color.dark_green);
def iAvgVolume = round(Average (volume(period = "DAY"
AddLabel (!AvgVolume,"AvgVol " + iAvgVolume, color.GRAY);
def iVolume = volume(period="DAY"
AddLabel (!Volume_,"Vol " + iVolume, color.daRK_GREEN);
def iVolumePlay = round(iVolume/ Average(volume(period="DAY"
AddLabel (!VolumePlay,"VolPlay " + iVolumePlay, color.darK_GREEN);
def iPositionM = round((close(symbol="SPY"
AddLabel (!PositionM,"M " + iPositionM + "%", color.RED);
def iPositionD = round((close-lowest(low(period="DAY"
AddLabel (!PositionD,"D " + iPositionD + "%", color.LIGHT_ORANGE);
def iPositionS = round((close-low(period="DAY"
AddLabel (!PositionS,"S " + iPositionS + "%", color.PINK);
Спасибо...
Июн 04 2013, 17:43