加入 |登录

策略交易高峰会论坛EasyLanguage/PowerLanguage 策略语言研究 › 查看主题

373

查看

4

回复
返回列表

Rank: 3Rank: 3Rank: 3

go

[编程求助] 請教高手~

楼主
发表于 2012-2-19 23:24 | 只看该作者 | 倒序看帖 | 打印
請教高手~

Multicharts中

當天連續虧損兩次停止交易要如何表示?

認真研究~輕鬆交易
好文分享,是超英赶美的关键! QQ书签=>QQ书签 百度搜藏=>百度搜藏

Google书签=> Google书签 新浪Vivi=> 新浪ViVi

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

沙发
发表于 2012-2-22 08:43 | 只看该作者
可以试试这样的逻辑架构。
if date<>date[1] then
value1=0;

if EntriesToday=2 and positionprofit<0  and positionprofit(1)<0 then//控制连续亏损两次
value1=1;

if value1=0 then
开仓。。。

condition=

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

板凳
发表于 2012-2-22 08:53 | 只看该作者
可以试试这个逻辑:

if date<>date[1]then
value1=0;

if EntriesToday=2 and positionprofit<0 and positionprofit(1)<0 then
value1=1;

if value1=0 then 开仓

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

地板
发表于 2012-2-22 14:56 | 只看该作者
本帖最后由 jamil 于 2012-2-22 14:59 编辑

试试这个逻辑架构
if date<>date[1] thenvalue1=0;

if entrestoday=2 and positionprofit<0 and positionprofit(1)<0 then
value1=1;

if value1=0 and。。。。then
开仓

Rank: 3Rank: 3Rank: 3

5#
发表于 2012-2-25 23:17 | 只看该作者
回复 4# jamil 的帖子

感謝板大~

踹踹看~~謝謝囉^^
   
認真研究~輕鬆交易
高级模式 | 发表帖子
B Color Image Link Quote Code Smilies
验证问答 换一个

策略交易高峰会 |联系我们

GMT+8, 2012-5-20 05:12, Processed in 0.030267 second(s), 11 queries.

Powered by Discuz! X1

© 2001-2010 Comsenz Inc.