หากคุณต้องการสร้างระบบการซื้อขายสำหรับการเก็งกำไรสกุลเงิน คุณต้องเรียนรู้คอมพิวเตอร์และความรู้ทางการเงินมากมาย (1) การโหลดข้อมูลStep 1: load dataset and generate featuresdef prepare_data(codes=['000300.SH', '399006.SZ'], start_time="20100101", end_time="20211231"): df = load_data(codes, start_time, end_time)df\["rsi"\] = ta.RSI(df.close, timeperiod=14) df\["to_buy"\] = "" df.loc\[df\["rsi"\] <= 30, 'to_buy'\] = True df\['to_buy'\] = df\['to_buy'\].astype('bool') df\["...