金字塔决策交易系统

用户名  找回密码
 

微信登录

微信扫一扫,快速登录

帖子
查看: 180|回复: 1

这个指标在K线画面,无法显示,为什么

[复制链接]

4517

主题

4598

帖子

4623

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2025-3-6 15:39 | 显示全部楼层 |阅读模式
请教:这个指标在K线画面,无法显示,为什么

M1:=MA(c,5);
M2:=MA(c,10);
M3:=MA(c,20);
M4:=MA(c,30);


M1SJ:=M1-REF(M1,1);
M2SJ:=M2-REF(M2,1);
M3SJ:=M3-REF(M3,1);
M4SJ:=M4-REF(M4,1);

SS:=IF(M1SJ>0,11,0)+IF(M2SJ>0,22,0)+IF(M3SJ>0,30,0)+IF(M4SJ>0,37,0);

SS/100,POINTDOT,COLORWHITE,precis2;

if(SS=100 or SS=63,SS,0)+
if(SS=0 or SS=37,SS-100,0)
,color3d,precis0;

if(SS=89 or SS=78 or SS=70,SS,0)
,stick3d,colormagenta,precis0;

if(SS=11 or SS=22 or SS=30,SS-100,0)
,stick3d,colorgreen,precis0;

if(SS=67,70,0)
,stick3d,colorwhite,precis0;

if(SS=59,45,0)
,stick3d,colorwhite,precis0;

if(SS=52,20,0)
,stick3d,colorwhite,precis0;

if(SS=33,-70,0)
,stick3d,colorwhite,precis0;

if(SS=41,-45,0)
,stick3d,colorwhite,precis0;

if(SS=48,-20,0)
,stick3d,colorwhite,precis0;



100,dotline,colorgreen,precis0;
-100,dotline,colorgreen,precis0;
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

举报

37

主题

9844

帖子

5万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
wenarm
发表于 2025-3-6 16:28 | 显示全部楼层
本帖最后由 技术006 于 2025-3-6 16:41 编辑

代码修改如下,将绘制函数换成我们的即可

[PEL] 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
M1:=MA(c,5);M2:=MA(c,10);
M3:=MA(c,20);
M4:=MA(c,30);
 
 
M1SJ:=M1-REF(M1,1);
M2SJ:=M2-REF(M2,1);
M3SJ:=M3-REF(M3,1);
M4SJ:=M4-REF(M4,1);
 
SS:=IF(M1SJ>0,11,0)+IF(M2SJ>0,22,0)+IF(M3SJ>0,30,0)+IF(M4SJ>0,37,0);
 
SS/100,POINTDOT,COLORWHITE,PRECISION2;
 
 
if(SS=100 or SS=63,SS,0)+if(SS=0 or SS=37,SS-100,0),LINETHICK0,PRECISION0;
STICKLINE( 1,if(SS=100 or SS=63,SS,0)+if(SS=0 or SS=37,SS-100,0) , 0,15 , 0 );
 
 
if(SS=89 or SS=78 or SS=70,SS,0),STICK,colormagenta,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=89 or SS=78 or SS=70,SS,0), 0,15 ,0,colormagenta);
 
if(SS=11 or SS=22 or SS=30,SS-100,0),STICK,colorgreen,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=11 or SS=22 or SS=30,SS-100,0), 0,15 , 0 );
 
 
 
if(SS=67,70,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=67,70,0), 0,15 , 0 );
 
if(SS=59,45,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=59,45,0), 0,15 , 0 );
 
if(SS=52,20,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=52,20,0), 0,15 , 0 );
 
if(SS=33,-70,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=33,-70,0), 0,15 , 0 );
 
if(SS=41,-45,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=41,-45,0), 0,15 , 0 );
 
if(SS=48,-20,0),colorwhite,PRECISION0,LINETHICK0;
STICKLINE( 1,if(SS=48,-20,0), 0,15 , 0 );
 
 
 
100,POINTDOT,colorgreen,PRECISION0;
-100,POINTDOT,colorgreen,PRECISION0;
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

举报

您需要登录后才可以回帖 登录 | 微信登录

本版积分规则

手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )

GMT+8, 2025-4-28 17:00 , Processed in 0.142631 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表