ক্রস সহ কিজুনসেন লাইন

লেখক:চাওঝাং, তারিখ: ২০২২-০৫-১০ ১৬ঃ০৭
ট্যাগঃট্রেন্ডস

কিজেন সেন ইচিমোকু ট্রেডিং সিস্টেমের স্বাধীন লাইন

আর্থিক বাজারের অনেক ট্রেডার ট্রেন্ড সনাক্ত করতে ইচিমোকু উপাদান ব্যবহার করে, এজন্যই আমি এই সূচকটি প্রকাশ করেছি।

ব্যাকটেস্ট

img


// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © dilan1999

//@version=5
indicator('KijunSen Line With Cross', overlay=true)
n = input(26, 'Length')
h = ta.highest(high, n)
l = ta.lowest(low, n)
value = (h + l) / 2



showCross = input(true, title='Show Candle Cross?')
crossUp = ta.crossover(hl2, value)
crossDown = ta.crossunder(hl2, value)

//Show Cross
plotshape(showCross and crossUp, text='*', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.small)
plotshape(showCross and crossDown, text='*', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.small)

//Drawline
plot(value, color=(hl2 > value ? color.lime : color.red), linewidth=2)
if showCross and crossUp
    strategy.entry("Enter Long", strategy.long)
else if showCross and crossDown
    strategy.entry("Enter Short", strategy.short)


সম্পর্কিত

আরো