import pandas as pd # فرض کنید دادههای قیمت یک سهم را در یک DataFrame داریم
data = pd.DataFrame({'close': [100, 105, 102, 108, 110]}) # یک استراتژی ساده: خرید وقتی قیمت از میانگین متحرک 5 روزه بالاتر رفت
data['SMA_5'] = data['close'].rolling(window=5).mean()
data['signal'] = np.where(data['close'] > data['SMA_5'], 1, 0) # نمایش سیگنالها
print(data)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Candle Analysis Report:
This script helps traders understand the distribution and range of candles in a specific period, which can be useful for making trading decisions such as determining which historical values to use for Take Profit or Stop Loss.
Author: Enrique Enguix