Alım Yeri
Alım Yeri
percent10FromLastBuy = na(lastBuyPrice) ? na :
lastBuyPrice * 0.90
if (secondBuySignal)
buyCount := 2
lastBuyPrice := close
array.set(buyPrices, 1, close) // 2. alım
fiyatını sakla
if (thirdBuySignal)
buyCount := 3
lastBuyPrice := close
array.set(buyPrices, 2, close) // 3. alım
fiyatını sakla
if (fourthBuySignal)
buyCount := 4
lastBuyPrice := close
array.set(buyPrices, 3, close) // 4. alım
fiyatını sakla
if (fifthBuySignal)
buyCount := 5
lastBuyPrice := close
array.set(buyPrices, 4, close) // 5. alım
fiyatını sakla
//######################## Label
###################################
f_draw_label(_cond,_x,_y,_textline,_boxcolor,_txtcolo
r,_style,_txtalign)=>
var label Label = na
Label := _cond==1?label.new(_x,_y,_textline,
color=_boxcolor, textcolor=_txtcolor,style=_style,
yloc=yloc.price, xloc=xloc.bar_time,
size=size.normal,textalign=_txtalign):na
label.delete(_cond==1?Label[1]:Label[0])
format_text(str) =>
str + "\n"
x= timenow + math.round(ta.change(time)*10*3)
y = high + 0.1*high
//######################## Label For Stock Screener
################
st_txt_head = st_sc==true ?
format_text('---------------------------------\nSTOCK
SCREENER RESULT\
n---------------------------------'):na
st_txt_list = st_sc==true ? format_text('LIST GROUP :
' + List):na
st_txt_info = st_sc==true ? format_text('CONDITION :
' + look_for):na
st_txt_symbols = st_sc==true ? format_text('SYMBOLS :
\n---------------------------------' ):na
st_txt01 = st_sc==true and s01 ? format_text(a1):na
st_txt02 = st_sc==true and s02 ? format_text(a2):na
st_txt03 = st_sc==true and s03 ? format_text(a3):na
st_txt04 = st_sc==true and s04 ? format_text(a4):na
st_txt05 = st_sc==true and s05 ? format_text(a5):na
st_txt06 = st_sc==true and s06 ? format_text(a6):na
st_txt07 = st_sc==true and s07 ? format_text(a7):na
st_txt08 = st_sc==true and s08 ? format_text(a8):na
st_txt09 = st_sc==true and s09 ? format_text(a9):na
st_txt10 = st_sc==true and s10 ? format_text(a10):na
st_txt11 = st_sc==true and s11 ? format_text(a11):na
st_txt12 = st_sc==true and s12 ? format_text(a12):na
st_txt13 = st_sc==true and s13 ? format_text(a13):na
st_txt14 = st_sc==true and s14 ? format_text(a14):na
st_txt15 = st_sc==true and s15 ? format_text(a15):na
st_txt16 = st_sc==true and s16 ? format_text(a16):na
st_txt17 = st_sc==true and s17 ? format_text(a17):na
st_txt18 = st_sc==true and s18 ? format_text(a18):na
st_txt19 = st_sc==true and s19 ? format_text(a19):na
st_txt20 = st_sc==true and s20 ? format_text(a20):na
st_txt21 = st_sc==true and s21 ? format_text(a21):na
st_txt22 = st_sc==true and s22 ? format_text(a22):na
st_txt23 = st_sc==true and s23 ? format_text(a23):na
st_txt24 = st_sc==true and s24 ? format_text(a24):na
st_txt25 = st_sc==true and s25 ? format_text(a25):na
st_txt26 = st_sc==true and s26 ? format_text(a26):na
st_txt27 = st_sc==true and s27 ? format_text(a27):na
st_txt28 = st_sc==true and s28 ? format_text(a28):na
st_txt29 = st_sc==true and s29 ? format_text(a29):na
st_txt30 = st_sc==true and s30 ? format_text(a30):na
st_txt31 = st_sc==true and s31 ? format_text(a31):na
st_txt32 = st_sc==true and s32 ? format_text(a32):na
st_txt33 = st_sc==true and s33 ? format_text(a33):na
st_txt34 = st_sc==true and s34 ? format_text(a34):na
st_txt35 = st_sc==true and s35 ? format_text(a35):na
st_txt36 = st_sc==true and s36 ? format_text(a36):na
st_txt37 = st_sc==true and s37 ? format_text(a37):na
st_txt38 = st_sc==true and s38 ? format_text(a38):na
st_txt39 = st_sc==true and s39 ? format_text(a39):na
st_txt40 = st_sc==true and s40 ? format_text(a40):na
st_cond =st_sc==true?1:0
f_draw_label(st_cond,x,y,st_final_text,lab_color,colo
r.white, _style = label.style_label_down, _txtalign =
text.align_left)
//######################## Alert
###################################
alertcondition(buy, title="BUY SIGNAL!", message="BUY
SIGNAL!")