ค้นหา
ผลิตภัณฑ์
ชุมชน
ตลาด
ข่าว
โบรกเกอร์
เพิ่มเติม
TH
เริ่มกันเลย
ดอลลาร์ออสเตรเลีย / ดอลลาร์สหรัฐฯ
21 ม.ค. 2024
Divergence
0
เลือกชาร์ตนี้
เลือกชาร์ตนี้
59
def divergence_indicator(price_data, oscillator_data):
signals = []
for i in range(1, len(price_data) - 1):
if (price_data
> price_data[i - 1] and oscillator_data
< oscillator_data[i - 1]) or \
(price_data
< price_data[i - 1] and oscillator_data
> oscillator_data[i - 1]):
signals.append("Bearish Divergence")
elif (price_data
> price_data[i - 1] and oscillator_data
> oscillator_data[i - 1]) or \
(price_data
< price_data[i - 1] and oscillator_data
< oscillator_data[i - 1]):
signals.append("Bullish Divergence")
else:
signals.append("No Divergence")
return signals
khusanboy1212
ติดตาม
Technical Indicators
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่
ข้อกำหนดการใช้งาน
Technical Indicators
khusanboy1212
ติดตาม
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่
ข้อกำหนดการใช้งาน