// สัญญาณ 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)
ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.