- 精华
- 0
- 在线时间
- 47 小时
- UID
- 223937
- 积分
- 17
- 帖子
- 15
- 阅读权限
- 10
- 注册时间
- 2015-11-26
- 最后登录
- 2016-3-31
- 精华
- 0
- UID
- 223937
- 积分
- 17
- 帖子
- 15
- 主题
- 0
- 阅读权限
- 10
- 注册时间
- 2015-11-26
- 最后登录
- 2016-3-31
|
你的分型代码没有问题,但是你提出的问题我没有看懂。
如何实现“上分形在中间,左边一是一个下分形,右边一个下分形”。
以你代码给出的上分型为例
if(High[3]>high[4] and high[3]>high[5] and high[3]>high[2] and h[3]>h[1] )// and //and
{
myn1=h[3];
CurrentBar1=CurrentBar-2 ;
PlotString("a",Text(CurrentBar1),h[3]+15,red,4); PlotString("myn1",Text(myn1),h[3]+5,red,4);Commentary("2="+text(CurrentBar1[1]));
}
先确定顶分型的currentbar和价格 再和前后2个底分型的currentbar和价格分别比较,才能确定这个顶分型的Value2[1]是否满足你图中的意思,再来写买入条件 |
|