彩带飘飘副图红为短期买粉红为中长买
C1:=(((10000 * CLOSE) / INDEXC) * WINNER(CLOSE));H1:=(((10000 * HIGH) / INDEXH) * WINNER(HIGH));L1:=(((10000 * LOW) / INDEXL) * WINNER(LOW));O1:=(((10000 * OPEN) / INDEXO) * WINNER(OPEN));TJ:=((C1 > O1) OR ((C1 = O1) AND (C1 > REF(C1,1))));STICKLINE(TJ,H1,L1,0,0),colorred;STICKLINE(TJ,C1,O1,5,1),colorred;STICKLINE(NOT(TJ),H1,L1,0,0),colorgreen;STICKLINE(NOT(TJ),C1,O1,5,1),colorgreen;C11:=C1;A1:EMA((((EMA(C11,1) + EMA(C11,2)) + EMA(C11,3)) / 3),2);A2:EMA((((EMA(C11,2) + EMA(C11,3)) + EMA(C11,4)) / 3),2);A3:EMA((((EMA(C11,3) + EMA(C11,4)) + EMA(C11,5)) / 3),2);A4:EMA((((EMA(C11,4) + EMA(C11,5)) + EMA(C11,6)) / 3),2);A5:EMA((((EMA(C11,5) + EMA(C11,6)) + EMA(C11,7)) / 3),2);A6:EMA((((EMA(C11,20) + EMA(C11,21)) + EMA(C11,22)) / 3),2);A7:EMA((((EMA(C11,22) + EMA(C11,23)) + EMA(C11,24)) / 3),2);A8:EMA((((EMA(C11,24) + EMA(C11,25)) + EMA(C11,26)) / 3),2);A9:EMA((((EMA(C11,26) + EMA(C11,27)) + EMA(C11,28)) / 3),2);A10:EMA((((EMA(C11,28) + EMA(C11,29)) + EMA(C11,30)) / 3),2);A11:EMA((((EMA(C11,30) + EMA(C11,31)) + EMA(C11,32)) / 3),2);A12:EMA((((EMA(C11,32) + EMA(C11,33)) + EMA(C11,34)) / 3),2);彩1:IF((A1 > REF(A1,1)),A1,DRAWNULL),colorred;彩2:IF((A2 > REF(A2,1)),A2,DRAWNULL),colorred;彩3:IF((A3 > REF(A3,1)),A3,DRAWNULL),colorred;彩4:IF((A4 > REF(A4,1)),A4,DRAWNULL),colorred;彩5:IF((A5 > REF(A5,1)),A5,DRAWNULL),colorred;彩6:IF((A6 > REF(A6,1)),A6,DRAWNULL),colormagenta;彩7:IF((A7 > REF(A7,1)),A7,DRAWNULL),colormagenta;彩8:IF((A8 > REF(A8,1)),A8,DRAWNULL),colormagenta;彩9:IF((A9 > REF(A9,1)),A9,DRAWNULL),colormagenta;彩10:IF((A10 > REF(A10,1)),A10,DRAWNULL),colormagenta;彩11:IF((A11 > REF(A11,1)),A11,DRAWNULL),colormagenta;彩12:IF((A12 > REF(A12,1)),A12,DRAWNULL),colormagenta;彩13:IF((A1 < REF(A1,1)),A1,DRAWNULL),colorliblue;彩14:IF((A2 < REF(A2,1)),A2,DRAWNULL),colorliblue;彩15:IF((A3 < REF(A3,1)),A3,DRAWNULL),colorliblue;彩16:IF((A4 < REF(A4,1)),A4,DRAWNULL),colorliblue;彩17:IF((A5 < REF(A5,1)),A5,DRAWNULL),colorliblue;彩18:IF((A6 < REF(A6,1)),A6,DRAWNULL),colorblue;彩19:IF((A7 < REF(A7,1)),A7,DRAWNULL),colorblue;彩20:IF((A8 < REF(A8,1)),A8,DRAWNULL),colorblue;彩21:IF((A9 < REF(A9,1)),A9,DRAWNULL),colorblue;彩22:IF((A10 < REF(A10,1)),A10,DRAWNULL),colorblue;彩23:IF((A11 < REF(A11,1)),A11,DRAWNULL),colorblue;彩24:IF((A12 < REF(A12,1)),A12,DRAWNULL),colorblue;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
C1赋值:(((10000 * 收盘价) / INDEXC) * 收盘价计算的获利盘比例)
H1赋值:(((10000 * 最高价) / INDEXH) * 最高价计算的获利盘比例)
L1赋值:(((10000 * 最低价) / INDEXL) * 最低价计算的获利盘比例)
O1赋值:(((10000 * 开盘价) / INDEXO) * 开盘价计算的获利盘比例)
TJ赋值:((C1 > O1) OR ((C1 = O1) AND (C1 > 1日前的C1)))
当满足条件TJ时,在H1和L1之间画柱状线
当满足条件TJ时,在C1和O1之间画柱状线
STICKLINE(NOT(TJ),H1,L1,0,0),画绿色
STICKLINE(NOT(TJ),C1,O1,5,1),画绿色
C11:=C1
输出A1:EMA((((EMA(C11,1) + EMA(C11,2)) + EMA(C11,3)) / 3),2)
输出A2:EMA((((EMA(C11,2) + EMA(C11,3)) + EMA(C11,4)) / 3),2)
输出A3:EMA((((EMA(C11,3) + EMA(C11,4)) + EMA(C11,5)) / 3),2)
输出A4:EMA((((EMA(C11,4) + EMA(C11,5)) + EMA(C11,6)) / 3),2)
输出A5:EMA((((EMA(C11,5) + EMA(C11,6)) + EMA(C11,7)) / 3),2)
输出A6:EMA((((EMA(C11,20) + EMA(C11,21)) + EMA(C11,22)) / 3),2)
输出A7:EMA((((EMA(C11,22) + EMA(C11,23)) + EMA(C11,24)) / 3),2)
输出A8:EMA((((EMA(C11,24) + EMA(C11,25)) + EMA(C11,26)) / 3),2)
输出A9:EMA((((EMA(C11,26) + EMA(C11,27)) + EMA(C11,28)) / 3),2)
A10:EMA((((EMA(C11,28) + EMA(C11,29)) + EMA(C11,30)) / 3),2)
A11:EMA((((EMA(C11,30) + EMA(C11,31)) + EMA(C11,32)) / 3),2)
A12:EMA((((EMA(C11,32) + EMA(C11,33)) + EMA(C11,34)) / 3),2)
输出彩1:IF((A1 > 1日前的A1),A1,DRAWNULL),画红色
输出彩2:IF((A2 > 1日前的A2),A2,DRAWNULL),画红色
输出彩3:IF((A3 > 1日前的A3),A3,DRAWNULL),画红色
输出彩4:IF((A4 > 1日前的A4),A4,DRAWNULL),画红色
输出彩5:IF((A5 > 1日前的A5),A5,DRAWNULL),画红色
输出彩6:IF((A6 > 1日前的A6),A6,DRAWNULL),画洋红色
输出彩7:IF((A7 > 1日前的A7),A7,DRAWNULL),画洋红色
输出彩8:IF((A8 > 1日前的A8),A8,DRAWNULL),画洋红色
输出彩9:IF((A9 > 1日前的A9),A9,DRAWNULL),画洋红色
彩10:IF((A10 > 1日前的A10),A10,DRAWNULL),画洋红色
彩11:IF((A11 > 1日前的A11),A11,DRAWNULL),画洋红色
彩12:IF((A12 > 1日前的A12),A12,DRAWNULL),画洋红色
彩13:IF((A1 < 1日前的A1),A1,DRAWNULL),COLORLIBLUE
彩14:IF((A2 < 1日前的A2),A2,DRAWNULL),COLORLIBLUE
彩15:IF((A3 < 1日前的A3),A3,DRAWNULL),COLORLIBLUE
彩16:IF((A4 < 1日前的A4),A4,DRAWNULL),COLORLIBLUE
彩17:IF((A5 < 1日前的A5),A5,DRAWNULL),COLORLIBLUE
彩18:IF((A6 < 1日前的A6),A6,DRAWNULL), 画蓝色
彩19:IF((A7 < 1日前的A7),A7,DRAWNULL), 画蓝色
彩20:IF((A8 < 1日前的A8),A8,DRAWNULL), 画蓝色
彩21:IF((A9 < 1日前的A9),A9,DRAWNULL), 画蓝色
彩22:IF((A10 < 1日前的A10),A10,DRAWNULL), 画蓝色
彩23:IF((A11 < 1日前的A11),A11,DRAWNULL), 画蓝色
彩24:IF((A12 < 1日前的A12),A12,DRAWNULL), 画蓝色