我正在尝试使用IntelliJ(最新版本的最终版本)使用Apache Axis2从java代码生成WSDL,但是下面的屏幕只是摇晃几秒钟而没有任何反应。这实际上有用吗?我的网络服务是一个简单的“回声”服务...... :(
答案 0 :(得分:2)
为了使Axis2 WSDL生成工作,您需要:
import talib
# ---------------------------------------------------
n1, n2, period, stock = 10, 21, 60, sid(24)
# ---------------------------------------------------
def initialize(context):
schedule_function(trade, date_rules.week_start(), time_rules.market_open())
def trade(context, data):
ob = 80 #"Over Bought Level"
os = -80 #"Over Sold Level"
if get_open_orders(): return
close = data.history(stock, 'close', period + 1, '1d').dropna()
low = data.history(stock, 'low', period + 1, '1d').dropna()
high = data.history(stock, 'high', period + 1, '1d').dropna()
ap = (high + low + close) / 3
esa = talib.EMA(ap, timeperiod=n1)
d = talib.EMA(abs(ap - esa), timeperiod=n1)
ci = (ap - esa) / (0.015 * d)
wt1 = talib.EMA(ci, timeperiod=n2)
record(wt1 = wt1[-1], ob = ob,os = os)
if data.can_trade(stock):
if wt1[-1] > os:
order_target_percent(stock, 2)
elif wt1[-1] < ob:
order_target_percent(stock, 0)
现在Settings > Tools > Web Services
选项Generate Java Code From Wsdl
可以正常使用。