// สัญญาณ Moving Average Crossover maCrossover = ta.crossover(fastMA, slowMA) // Fast MA ข้าม Slow MA ขึ้น (สัญญาณ Buy) maCrossunder = ta.crossunder(fastMA, slowMA) // Fast MA ข้าม Slow MA ลง (สัญญาณ Sell)
// เงื่อนไขการเทรดด้วย Volume Profile volumeProfileFilter = close > vpLow and close < vpHigh // ราคาปิดอยู่ในโซน Volume Profile
// เงื่อนไขการเทรด if (maCrossover and rsiBuySignal and volumeProfileFilter) strategy.entry("Buy", strategy.long) label.new(bar_index, low, text="Buy", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
if (maCrossunder and rsiSellSignal and volumeProfileFilter) strategy.entry("Sell", strategy.short) label.new(bar_index, high, text="Sell", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.