请求高手帮我修改成通信达选股公式,要求是开盘价上穿横线为买入,下穿横线为卖出。谢谢老师。

JRH:=HHV(C,2);
JRL:=LLV(C,2);
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
红持股:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
卖:=IF(红持股,JRL,DRAWNULL);
明卖价:=卖,COLORFF99FF;
今卖价:=REF(卖,1)COLOR0000FF;
观望:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;
进:=IF(观望,JRH,DRAWNULL);
明进场价:=进,COLOR33AACC;
今进场价:=REF(明进场价,1),COLORFF0000;
AA:STICKLINE(ISLASTBAR AND (红持股 OR REF(红持股,1)=1),今卖价,今卖价,30,1),COLOR0000FF;
AB:STICKLINE(ISLASTBAR AND (观望 OR REF(观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;

这个指标的横线包括红横线和绿横线;如果开盘价只要大于横线就买入,选股公式为:
JRH:=HHV(C,2);
JRL:=LLV(C,2);
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
红持股:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC;
卖:=IF(红持股,JRL,DRAWNULL);
明卖价:=卖;
今卖价:=REF(卖,1);
观望:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18;
进:=IF(观望,JRH,DRAWNULL);
明进场价:=进;
今进场价:=REF(明进场价,1);
横线:=IF(ISLASTBAR AND (红持股 OR REF(红持股,1)=1),今卖价,IF(ISLASTBAR AND (观望 OR REF(观望,1)=1),今进场价,DRAWNULL));

买入:O>横线 AND REF(MAX(C,O),1)<=横线;

卖出则把最后一句改为:卖出:O<横线 AND REF(MIN(C,O),1)>=横线;

如果开盘价大于红横线才买入,选股把前面公式最后两句(横线处开始) 改为:买点:ISLASTBAR AND (红持股 OR REF(红持股,1)=1) AND O>今卖价 AND REF(MAX(C,O),1)<=今卖价;
如果开盘价小于绿横线才卖入,选股把前面公式最后两句改为:卖点:ISLASTBAR AND (观望 OR REF(观望,1)=1) AND O<今进场价 AND REF(MIN(C,O),1)>=今进场价;

这里定义的开盘价上穿横线是:昨日收盘开盘价都在横线下,今日开盘在横线上;这里定义的开盘价下穿横线是:昨日收盘开盘价都在横线上,今日开盘在横线下;不过感觉选股效果不是太理想的,还有问题请加:”定制选股公式群二“交流
温馨提示:内容为网友见解,仅供参考
无其他回答

请各位大侠帮忙写一“通信达”选股公式
A1:=MA(C,5);A2:=MA(C,10);A3:=MA(C,20);A4:=MA(C,30);A5:=MA(C,40);A6:=MA(C,60);A7:=MA(C,90);A8:=MA(C,120);A9:=MA(C,180);AA:=MA(C,240);TJ1:=O<=A1 AND O<=A2 AND O<=A3 AND O<=A4 AND O<=A5 AND O<=A6 AND O<=A7 AND O<=A8 AND O...

通信达选股公式
26,涨停开盘跌停收盘选股xg:h\/ref(c,1)>1.1 and ref(c,1)\/l>1.1;27,当天开盘价与收盘价相等的选股公式xg:c=o;28,5日均线向上 流通盘小于5000万 换手率大于3的选股公式lt:CAPITAL\/100<5000;换手:=VOL*100\/CAPITAL<3;w1:ma(c,5)>ref(ma(c,5),1);xg:lt and 换手 and w1;29,收下影线xg:c>...

请高手把我这个指标公式改成通信达选股公式,谢了
VAR1:=(C+H+O+L)\/4;--- 从某个角度说,比如交易日的14点32分钟,上式的 C H L 在日线都是不确定数,更不用说在周线,月线了,所以这三个是未来函数

...高手帮把一下主力持仓线公式改为选股公式,要求选到当日出现红柱子的...
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPE...

在通信达中将K线上的涨停涨10%的变色,变成黄色或紫色都可以的公式?_百 ...
把公式加到主图公式里,涨停涨10%的就会变色。ZF:=C\/REF(C,1)>=1.097 ;STICKLINE(ZF,C,O,3,0),COLOR0099FF。

我是新手入门,怎么炒股
新手在购买股票之前,需要开通股票账户,投资者可以去证券公司的营业部开通,也可以在网上开通,开通之后,转入资金,选择一只股票,记住交易代码,在交易软件里点“买入”,输入股数和希望成交的价格,点“确认”,等待成交即可。 买入卖出的股票数量必须是100股的整数倍;股票的交易时间是:交易日的上午9:...

相似回答