커뮤니티

수정부탁드립니다. 오류가 너무 많네요.;.ㅠㅠ

프로필 이미지
룽퐈
2025-09-10 06:06:38.0
65
글번호 193860
답변완료
Inputs: ADX_Period(14), ADX_Level(25), RSI_Period(14), RSI_Overbought(70), RSI_Oversold(30), Vol_Period(20), OI_Period(20), Bids_Period(5), Asks_Period(5), Profit_Target(200), Stop_Loss(100); Vars: ADX_Value(0), RSI_Value(0), Vol_Avg(0), OI_Avg(0), Bids_Avg(0), Asks_Avg(0); ADX_Value = ADX(ADX_Period); RSI_Value = RSI(RSI_Period, 1); Vol_Avg = MA(V, Vol_Period); OI_Avg = MA(OI, OI_Period); Bids_Avg = MA(bids, Bids_Period); Asks_Avg = MA(asks, Asks_Period); ConditionBuy_1 = ADX_Value > ADX_Level; ConditionBuy_2 = RSI_Value < RSI_Overbought; ConditionBuy_3 = Bids_Avg > Asks_Avg; ConditionBuy_4 = V > Vol_Avg; ConditionBuy_5 = OI > OI_Avg; if ConditionBuy_1 AND ConditionBuy_2 AND ConditionBuy_3 AND ConditionBuy_4 AND ConditionBuy_5 Then Buy(); ConditionSell_1 = ADX_Value > ADX_Level; ConditionSell_2 = RSI_Value > RSI_Oversold; ConditionSell_3 = Asks_Avg > Bids_Avg; ConditionSell_4 = V > Vol_Avg; ConditionSell_5 = OI > OI_Avg; if ConditionSell_1 AND ConditionSell_2 AND ConditionSell_3 AND ConditionSell_4 AND ConditionSell_5 Then Sell(); if MarketPosition == 1 Then { if ADX_Value < ADX_Value[1] Then ExitAll(); if C - EntryPrice >= Profit_Target * PriceScale Then ExitAll(); if C - EntryPrice <= -Stop_Loss * PriceScale Then ExitAll(); } if MarketPosition == -1 Then { if ADX_Value < ADX_Value[1] Then ExitAll(); if EntryPrice - C >= Profit_Target * PriceScale Then ExitAll(); if EntryPrice - C <= -Stop_Loss * PriceScale Then ExitAll(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-09-10 10:22:04.0

안녕하세요 예스스탁입니다. Inputs: ADX_Period(14), ADX_Level(25), RSI_Period(14), RSI_Overbought(70), RSI_Oversold(30), Vol_Period(20), OI_Period(20), Bids_Period(5), Asks_Period(5), Profit_Target(200), Stop_Loss(100); Vars: ADX_Value(0), RSI_Value(0), Vol_Avg(0), OI_Avg(0), Bids_Avg(0), Asks_Avg(0); var : ConditionBuy_1(False),ConditionBuy_2(False),ConditionBuy_3(False),ConditionBuy_4(False),ConditionBuy_5(False); var : ConditionSell_1(False),ConditionSell_2(False),ConditionSell_3(False),ConditionSell_4(False),ConditionSell_5(False); ADX_Value = ADX(ADX_Period); RSI_Value = RSI(RSI_Period); Vol_Avg = MA(V, Vol_Period); OI_Avg = MA(OI, OI_Period); Bids_Avg = MA(bids, Bids_Period); Asks_Avg = MA(asks, Asks_Period); ConditionBuy_1 = ADX_Value > ADX_Level; ConditionBuy_2 = RSI_Value < RSI_Overbought; ConditionBuy_3 = Bids_Avg > Asks_Avg; ConditionBuy_4 = V > Vol_Avg; ConditionBuy_5 = OI > OI_Avg; if ConditionBuy_1 AND ConditionBuy_2 AND ConditionBuy_3 AND ConditionBuy_4 AND ConditionBuy_5 Then Buy(); ConditionSell_1 = ADX_Value > ADX_Level; ConditionSell_2 = RSI_Value > RSI_Oversold; ConditionSell_3 = Asks_Avg > Bids_Avg; ConditionSell_4 = V > Vol_Avg; ConditionSell_5 = OI > OI_Avg; if ConditionSell_1 AND ConditionSell_2 AND ConditionSell_3 AND ConditionSell_4 AND ConditionSell_5 Then Sell(); if MarketPosition == 1 Then { if ADX_Value < ADX_Value[1] Then ExitLong(); if C - EntryPrice >= Profit_Target * PriceScale Then ExitLong(); if C - EntryPrice <= -Stop_Loss * PriceScale Then ExitLong(); } if MarketPosition == -1 Then { if ADX_Value < ADX_Value[1] Then ExitShort(); if EntryPrice - C >= Profit_Target * PriceScale Then ExitShort(); if EntryPrice - C <= -Stop_Loss * PriceScale Then ExitShort(); } 즐거운 하루되세요 > 룽퐈 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. 오류가 너무 많네요.;.ㅠㅠ > Inputs: ADX_Period(14), ADX_Level(25), RSI_Period(14), RSI_Overbought(70), RSI_Oversold(30), Vol_Period(20), OI_Period(20), Bids_Period(5), Asks_Period(5), Profit_Target(200), Stop_Loss(100); Vars: ADX_Value(0), RSI_Value(0), Vol_Avg(0), OI_Avg(0), Bids_Avg(0), Asks_Avg(0); ADX_Value = ADX(ADX_Period); RSI_Value = RSI(RSI_Period, 1); Vol_Avg = MA(V, Vol_Period); OI_Avg = MA(OI, OI_Period); Bids_Avg = MA(bids, Bids_Period); Asks_Avg = MA(asks, Asks_Period); ConditionBuy_1 = ADX_Value > ADX_Level; ConditionBuy_2 = RSI_Value < RSI_Overbought; ConditionBuy_3 = Bids_Avg > Asks_Avg; ConditionBuy_4 = V > Vol_Avg; ConditionBuy_5 = OI > OI_Avg; if ConditionBuy_1 AND ConditionBuy_2 AND ConditionBuy_3 AND ConditionBuy_4 AND ConditionBuy_5 Then Buy(); ConditionSell_1 = ADX_Value > ADX_Level; ConditionSell_2 = RSI_Value > RSI_Oversold; ConditionSell_3 = Asks_Avg > Bids_Avg; ConditionSell_4 = V > Vol_Avg; ConditionSell_5 = OI > OI_Avg; if ConditionSell_1 AND ConditionSell_2 AND ConditionSell_3 AND ConditionSell_4 AND ConditionSell_5 Then Sell(); if MarketPosition == 1 Then { if ADX_Value < ADX_Value[1] Then ExitAll(); if C - EntryPrice >= Profit_Target * PriceScale Then ExitAll(); if C - EntryPrice <= -Stop_Loss * PriceScale Then ExitAll(); } if MarketPosition == -1 Then { if ADX_Value < ADX_Value[1] Then ExitAll(); if EntryPrice - C >= Profit_Target * PriceScale Then ExitAll(); if EntryPrice - C <= -Stop_Loss * PriceScale Then ExitAll(); }