Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:代码转化问题

1楼
hpl1990 发表于:2018/7/1 20:21:04

inputs:

  Rlth(18),

  Rpnt(9.8),    

  Lots(1);

                    

variables:

  mhihest(0),

  mlesiow(0),

  Nechane(0),

  outprice(0);

  

mhihest=Highest(high,Rlth);

mlesiow  = Lowest(Low,Rlth);

Nechane = (mhihest - mlesiow)/((mhihest + mlesiow)*0.5)*100; 

 

If (MarketPosition<>1 And Nechane<=Rpnt) then

     buy Lots shares next bar at mhihest stop;

If (MarketPosition<>-1 And Nechane<=Rpnt) then

     sellshort Lots shares next bar at mlesiow stop;

2楼
fly 发表于:2018/7/4 9:37:43
请详细说明下面两句实现的目标。

If (MarketPosition<>1 And Nechane<=Rpnt) then

     buy Lots shares next bar at mhihest stop;

If (MarketPosition<>-1 And Nechane<=Rpnt) then

     sellshort Lots shares next bar at mlesiow stop;

3楼
FireScript 发表于:2018/7/4 9:40:17
 你这个是代码是TB的源码吗?还是别的其他软件的代码。
[此贴子已经被作者于2018/7/4 9:42:54编辑过]
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02344 s, 3 queries.