阳光飞狐

【阳光飞狐__与财富同行】

 找回密码
 手机注册
查看: 2527|回复: 23
打印 上一主题 下一主题

求助会写飞狐公式的朋友,有个思路需要实现

[复制链接]
跳转到指定楼层
1#
发表于 2014-1-21 15:16:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
求助会写飞狐公式的朋友,有个思路需要实现

起点由用户调整设定,然后分别画出“自然数”及“自然数+0.5”的平方的水平线
例如,起点定为4,则向上分别画出3的平方9,3.5的平方12.25,4的平方16,4.5的平方20.25,5的平方25,5.5的平方30.25。。。。以此类推。。总水平线数可以自由设定,也能从高向下画线


这个是想实现一个交易思路:波段的顶底数多数都是一个自然数的平方


万分感谢!
2#
发表于 2014-1-21 18:45:20 | 只看该作者
.gif" smilieid="273" border="0" alt="" />
3#
发表于 2014-1-23 17:29:46 | 只看该作者
INPUT:N(4);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:kpos(5603);
partline(barpos>kpos,pow(n-1,2)),colorred;
partline(barpos>kpos,pow(n-0.5,2)),colorred;
partline(barpos>kpos,pow(n,2)),colorgreen;
partline(barpos>kpos,pow(n+0.5,2)),colorgreen;
partline(barpos>kpos,pow(n+1,2)),colorwhite;
partline(barpos>kpos,pow(n+1.5,2)),colorwhite;
........
..........
........
4#
发表于 2014-1-24 13:28:03 | 只看该作者
波段的顶底数多数都是一个自然数的平方
九方图
5#
发表于 2014-1-24 13:39:11 | 只看该作者
love you deeply
6#
 楼主| 发表于 2014-1-26 21:12:36 | 只看该作者
原帖由 ycng 于 2014-1-23 17:29 发表
INPUT:N(4);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:kpos(5603);
partline(barpos>kpos,pow(n-1,2)),colorred;
partline(barpos>kpos,pow(n-0.5,2)),colorred;
partline(barpos>k ...

ycng兄,好像不行呢,,不显示画线啊。。。能否改改?
多谢1
7#
发表于 2014-1-27 13:15:09 | 只看该作者
原帖由 logoslogos 于 2014-1-26 21:12 发表

ycng兄,好像不行呢,,不显示画线啊。。。能否改改?
多谢1


这是为了给你方便才这样设计
第一次执行后,你移动老鼠光标,这时你会看到白色的K线序号,当你移动到你要开始画线的K线位置,记下序号, 序号填入下面这列取代5603
input:kpos(5603);
或者你把老鼠移到飞狐K线图左上角的公式名称下面空白处,再按老鼠右键,这时屏幕会出现飞狐公式选单,你再选"调整指标参数",当"调整指标参数"的小窗口出现后直接输入刚才记下的K线位置序号,更改KPOS项目填空格成为你所要的序号(看来你还是飞狐生手吧)
8#
 楼主| 发表于 2014-1-28 16:46:22 | 只看该作者
首先多谢ycng兄。但有个问题。

我说的例如起点定为4,意思是指从2的平方4开始画线,然后向上分别画出3的平方9,3.5的平方12.25,4的平方16,4.5的平方20.25,5的平方25,5.5的平方30.25。。。。以此类推。。
能从高向下画线,意思是用户设定一个开始值,例如从169(13的平方数)开始,就能从高往下依次画出156.25(12.5的平方),144(2的平方),132.25(11.5的平方)。。。。。依次类推。。。

起点值由用户根据情况自由设定,

总水平线数可以自由设定,可以是6.7.或8条线。。。

再次感谢
9#
 楼主| 发表于 2014-1-28 16:48:55 | 只看该作者
您公式的开始是从某一个K线开始,是从那个K线的最高低价开始画线的意思吗?

我一点公式都不懂。。。见笑了。。
10#
 楼主| 发表于 2014-1-28 16:55:27 | 只看该作者
我实验了一下公式。。我觉得兄是否理解错了我的意思了。。呵呵
公式不是固定总是画3的平方9,3.5的平方12.25,4的平方16,4.5的平方20.25,5的平方25,5.5的平方30.25。。。。。。而是设定一个起点数值A后,依次画比A的平方根大0.5.1,1.5,2,2.5, 3, 3.5,4, 4.5.。等等。。的自然数的平方值水平线。。

这个意思能否实现?麻烦了
11#
发表于 2014-1-28 17:38:08 | 只看该作者
原帖由 logoslogos 于 2014-1-28 16:55 发表
我实验了一下公式。。我觉得兄是否理解错了我的意思了。。呵呵
公式不是固定总是画3的平方9,3.5的平方12.25,4的平方16,4.5的平方20.25,5的平方25,5.5的平方30.25。。。。。。而是设定一个起点数值A后,依次画比 ...


注意"起点"与kpos一样,须由你自行改到公式如N(64)里的64改为你要的起点,或依7楼的方法调整参数n与m

公式上涨

INPUT:N(64);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:kpos(5603);

partline(barpos>=kpos,pow(sqrt(n)+0.5,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+1,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+1.5,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+2,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+2.5,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+3,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+3.5,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+4,2)),colorwhite;

drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+0.5,2),pow(sqrt(n)+0.5,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+1,2),pow(sqrt(n)+1,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+1.5,2),pow(sqrt(n)+1.5,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+2,2),pow(sqrt(n)+2,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+2.5,2),pow(sqrt(n)+2.5,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+3,2),pow(sqrt(n)+3,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+3.5,2),pow(sqrt(n)+3.5,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+4,2),pow(sqrt(n)+4,2),2),colorwhite;


公式下跌
INPUT:M(169);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:Lpos(5603);
partline(barpos>=Lpos,pow(sqrt(m)-0.5,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-1,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-1.5,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-2,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-2.5,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-3,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-3.5,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-4,2)),coloryellow;

drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-0.5,2),pow(sqrt(m)-0.5,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-1,2),pow(sqrt(m)-1,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-1.5,2),pow(sqrt(m)-1.5,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-2,2),pow(sqrt(m)-2,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-2.5,2),pow(sqrt(m)-2.5,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-3,2),pow(sqrt(m)-3,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-3.5,2),pow(sqrt(m)-3.5,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-4,2),pow(sqrt(m)-4,2),2),coloryellow;


若要更多行,可自行仿加
12#
 楼主| 发表于 2014-1-28 18:45:35 | 只看该作者
太好了。。非常感谢。。
13#
 楼主| 发表于 2014-1-28 23:22:56 | 只看该作者
还要麻烦Y兄改一下:
参数N能否最小值改为4,最大值改为10000,现在N最大值好像只能最大100,,,有时需要N值大于100,的。。。

再次感谢!!
14#
 楼主| 发表于 2014-1-28 23:43:55 | 只看该作者
好像我改一下对付能用了。。。
15#
发表于 2014-1-29 11:10:26 | 只看该作者
原帖由 logoslogos 于 2014-1-28 23:43 发表
好像我改一下对付能用了。。。


当你依照7楼的方式在小窗口调整参数N时,划线会随着一直变动,"""""""""""方便观查小浪顶的契合度""""""""""""""""

INPUT:N(4,4,10000);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:kpos(50,50,100000);

partline(barpos>=kpos,pow(sqrt(n)+0.5,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+1,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+1.5,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+2,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+2.5,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+3,2)),colorwhite;
partline(barpos>=kpos,pow(sqrt(n)+3.5,2)),colorgreen;
partline(barpos>=kpos,pow(sqrt(n)+4,2)),colorwhite;

drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+0.5,2),pow(sqrt(n)+0.5,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+1,2),pow(sqrt(n)+1,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+1.5,2),pow(sqrt(n)+1.5,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+2,2),pow(sqrt(n)+2,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+2.5,2),pow(sqrt(n)+2.5,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+3,2),pow(sqrt(n)+3,2),2),colorwhite;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+3.5,2),pow(sqrt(n)+3.5,2),2),colorgreen;
drawnumber(barpos>=kpos and barpos-kpos=10,pow(sqrt(n)+4,2),pow(sqrt(n)+4,2),2),colorwhite;

-------------------------------------------------
INPUT:M(4,4,10000);
drawnumber(sysparam(1)=barpos,h*1.05,barpos,0),colorffffff;
input:Lpos(50,50,100000);
partline(barpos>=Lpos,pow(sqrt(m)-0.5,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-1,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-1.5,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-2,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-2.5,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-3,2)),coloryellow;
partline(barpos>=Lpos,pow(sqrt(m)-3.5,2)),colormagenta;
partline(barpos>=Lpos,pow(sqrt(m)-4,2)),coloryellow;

drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-0.5,2),pow(sqrt(m)-0.5,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-1,2),pow(sqrt(m)-1,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-1.5,2),pow(sqrt(m)-1.5,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-2,2),pow(sqrt(m)-2,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-2.5,2),pow(sqrt(m)-2.5,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-3,2),pow(sqrt(m)-3,2),2),coloryellow;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-3.5,2),pow(sqrt(m)-3.5,2),2),colormagenta;
drawnumber(barpos>=Lpos and barpos-Lpos=10,pow(sqrt(m)-4,2),pow(sqrt(m)-4,2),2),coloryellow;

评分

1

查看全部评分

16#
 楼主| 发表于 2014-2-4 23:46:35 | 只看该作者
非常感谢!!可以用了。。
17#
 楼主| 发表于 2014-2-4 23:46:46 | 只看该作者
How good are the astrological aspects to predict the market?

By Alphee Lavoie



        I have been looking at astrology with the market for a very long .  Back in the 70’s I tried to calculate Donald Bradley’s planetary barometer by hand.  The involved wasn't worth it.  In 1978 I bought my first RadioShack computer and the first thing that I programmed was a Bradley barometer.  It took 48 hours to calculate just one week of the read out.  But in 1982 the Leading Edge computer came out and I could calculate the Bradley pretty easily.

I was always interested in astrological research. In 1982, as far as I know, I the first to write an astrological research program.  I named it ARP (astrological research package) and matrix sold under it the name of ARM (astrological research module).  In 1987 I started writing astrology programs to work with the market.  Since then I have spent hours testing the market with astrological techniques.  In my office I have three computers hooked up to one monitor and one computer is completely devoted, 24/7,  to research astrology and the markets.

There are many things in astrology that work well in predicting the market.  I remember reading George Bayer’s book entitled, “Stocks and Commodities Trader Handbook”.  In rule three he states that when Mars and Mercury has a speed differential of 59 minutes we are due for a down trend in wheat.  Of course, he was right.  That blew my mind because as a counseling full-time astrologer since 1965, I never ever conceptualized  using astrology in this manner. But it did help me to change my astrological mind set to this new application.

My feeling is that if you use techniques and concepts that astrologers use to predict the market, you might end up broke.

        I know that Gann said that you cannot predict the market with two planets in aspect; you need a third one to activate the energy.  MAYBE !

        I will make a statement here that a lot of astrologers may not with but I've done my homework to prove this concept.  I don't think that you can predict the market with any astrological aspect used by astrologers.  (I am referring to aspects such as the Ptolemy aspects or any of the minor aspects.)

In my line of Market Trader Software that Sergey Tarassov and I put together we use some excellent artificial intelligence mathematics.  To be exact four them and each one uses different mathematics.  So if two or three of them point to the same turning day you can take your money to the bank.

These artificial intelligence modules are programmed to educate the program with past historical stock prices.  You can use all types of different astrological criteria.  The program will go to the first day of your historical price, check if any of the criteria were working on that day, and then the program will give weights to this criteria based on whether or not the stock went up or down.  It will continue to go back and forth on the price, readjusting the weights for each criteria.  The program will continue showing you the accuracy of the artificial intelligence by the fit of the curve.



In the next example I worked with Qwest telephone stock.  I used a first trade chart analyzing every 30° aspects (0,60, 90, 120, 150, 180, 210, 240, 270, 300, 330) and ran it through the artificial intelligence. The artificial intelligence couldn't educate itself more than 53.7%.  In other words, if I used these buy and sell signals to trade I would have made 903 good trades and 780 bad trades.  If you had bought and held them for that entire period of time you would of made 73% of your money.  Remember that a good model always exceeds the buy and hold strategy.





As you can see by the following graph produced by the artificial intelligence, it found some aspects causing turning points.  So it's not a total loss.  But it was far from giving you good results.

  




The black line is the historical price and the blue line is the results of the artificial intelligence.

          On the other hand if I don't use aspects at all but instead I analyze every degree of the zodiac using variable orb for each planets the results are outstanding.



In other words I will analyze every degree from the Sun, Mercury, Venus.  For each of these planets I will analyze 1° of Aries 2° of Aries 3° of Aries and so on to 29° of Pisces.  I analyze every 30 minutes for Mars.  I will vary the orb down for each planet and for Pluto I analyzed every five minutes of the zodiac. When I do that I get a curve fitting with an accuracy of 87% indicating that I would have 1214 good trades and 187 bad ones.  (That would be if I buy and sell according to the signal.)

My results can be near perfect if I keep an eye on it.




This kind of approach is much more accurate than using the astrological popular aspects.



By using this technique if they are points that keeps repeating with a stock regardless if it's a planet, midpoint, planetary picture or other astronomical criteria, the artificial intelligent will find it and make sure it gets a proper weight.

    This is theory that I use to rectify charts.  I did a lecture on this theory at the very first UAC many years ago.  It's an excellent way to find some points on the zodiac that repeat themselves at major events in your life.  If you choose events that have something to do with the ascendant, Ic, descendent, midheaven it is very good to give you an excellent clue the degrees & signs for any of these angular points.

    By using this technique the following graph shows how well that the artificial intelligence can precisely give weights to each criteria.





The black line is the actual price and the blue line is the artificial intelligence curve fitting.  As you can see at times the curve fitting is so good that you can't even see the black line.

In the next graph I used the same artificial intelligence but this time I use every degree of the zodiac variable orb (as previously explained) and transiting aspects to transiting aspects using the same variable orb. As you can see the results are good.




   


     There are some aspects that seem give good results with the Dow Jones.  Out of 324 transiting aspects analyzed only 50 of them can predict the market 65% of the time and only 30 of them can predict the market 80% of the time.  The following graphics are transiting to transiting planets that are important in the Dow Jones.












All of these aspects are by outer planets which move very slowly.  The top on this list is transiting Jupiter conjunct transiting Saturn.  While this aspect only happens every 19.9 years it is not a good indicator to predictive Dow.  The next one is transiting Saturn conjunct transiting Uranus.  This happens every 45.3 years and so again is not a good indicator.

If you take the conjunction between transiting Jupiter and transiting Saturn (even though it moves the market up eight times and down none) the biggest move was 5% up in eight days after the exact aspect of May 28, 2000.  You would have to wait 20 years to make money on this criteria. Not very good for day traders.



We all have to realize that we are in the computer age.  We all know that a well programmed computer can do things at lightning speed without any errors that will be next to impossible for human mind.

A computer with a well programmed artificial intelligence that can examine thousands of points on the zodiac and give the appropriate weight for the strength of these criteria or points is  perfect to predict the market.  You can spend hundreds of hours analyze and astrological aspects and fall short of your expectation.

My years of research definitely show that these techniques  offer a much more reliable way to happily wed astrology with the stock market.

Sergey and I have spent hundreds of hours of researching to bring you this kind of computer programs that gives you accurate results.

The Silver market trader software has one artificial intelligence.  The Gold has two artificial intelligence and the Titanium has four.

We have people all over the world successfully trading with these programs.  

Go visit our free online charts and more. Try our free stock rating module. It is amazingly accurate.
18#
 楼主| 发表于 2014-2-7 20:52:30 | 只看该作者
{◆价值排序}
市盈率:=if(FINANCE(33){每股收益}>0,C/FINANCE(33){每股收益},0),LINETHICK;
QL1:=if(DYNAINFO(39){市盈率}>0,市盈率,0);
潜力排序:QL1/FINANCE(37){净资产收益率},LINETHICK,PRECISION2,COLORMAGENTA;//==================排序
{用法:潜力<1 and 潜力>0,越小越好}

净资产:=FINANCE(34);
比值排序:市盈率/FINANCE(37){净资产收益率},PRECISION2,LINETHICK,COLORGREEN;//==================排序
{以市盈率除以公司的增长率即ROE(净资产收益率), 如果该值大于1,
则一般认为定价有点偏高,而如果该值小于1比较多,则认为价格很便宜.}

安全排序:C/FINANCE(34),PRECISION2,LINETHICK,COLORRED;//=========================排序
{买价如果超过净资产的2.2倍,价格就高了.这个比值和倍数,能够防止你头脑发热,
贸然买入.而是发现价值被市场低估的股票.}

{竖线}
x:=SYSPARAM(2)=BARPOS-20;
k:=((SYSPARAM(3)-SYSPARAM(2))/100);
x1:=SYSPARAM(2)+ROUND(60*k)=BARPOS;
x2:=SYSPARAM(2)+ROUND(89*k)=BARPOS;
VERTLINE(x or x1 or x2 ),colorgray;
{横线}
DRAWLINE(x,x+0,x2,x2+0,0),colorgray;
DRAWLINE(x,x+30,x2,x2+30,0),colorgray;
DRAWLINE(x,x+60,x2,x2+60,0),colorgray;
DRAWLINE(x,x+90,x2,x2+90,0),colorgray;
DRAWLINE(x,x+120,x2,x2+120,0),colorgray;
{}
GDW0:=F10FIND('净资产收益率(%)',1000);
GDT2:=F10TEXT(GDW0+25,8);//第三季度
GDT3:=F10TEXT(GDW0+39,8);//第二季度
GDT4:=F10TEXT(GDW0+54,6);//第一季度
GDT5:=F10TEXT(GDW0+67,8);//第四季度
DRAWTEXT(x,22,'  第四季度净增产增长率(%) =   '+GDT5),COLORWHITE;
DRAWTEXT(x,52,'  第三季度净增产增长率(%) =   '+GDT2),COLORCYAN;
DRAWTEXT(x,83,'  第二季度净增产增长率(%) =   '+GDT3),COLORGREEN;
DRAWTEXT(x,113,'  第一季度净增产增长率(%) =    '+GDT4),COLORYELLOW;
DRAWTEXT(x1,113,' 潜力<1,越小越好,潜力大 '),COLORYELLOW;
DRAWTEXT(x1,83,' 比值<1,越小越好,价便宜 '),COLORYELLOW;
DRAWTEXT(x1,52,' 安全<2.2,越小越好,票低估 '),COLORYELLOW;

//
19#
 楼主| 发表于 2014-2-8 20:18:14 | 只看该作者
track transiting 'fortuna' (Point of Fortune) for intraday short term turns - although it's not part of traditional Vedic astrology, the calculation involves the Sun, Moon, & Asc so it's like a composite of 3 important energies.
20#
 楼主| 发表于 2014-2-8 20:18:49 | 只看该作者
Using MC or ASC gives you more intraday points to 'watch'. Fwiw, I find the MC more useful than the ASC
21#
 楼主| 发表于 2014-2-8 20:20:17 | 只看该作者
Rahu and ketu are the points where the path of the moon crosses the ecliptic - the nodes. The south to north cross or ascending node is Rahu and the descending node is Ketu. The moon's orbit crosses the ecliptic at a constantly shifting point westwards - motion of the nodes is retrograde and completes an orbit in about 18 years.
22#
发表于 2014-2-12 14:38:46 | 只看该作者
23#
 楼主| 发表于 2014-2-17 11:56:34 | 只看该作者
Y兄,你好。
我最近看书,从老外那里有学到一个找变盘日的思路,需要你的帮助,再麻烦编个飞狐指标:
指标叫能量线吧。公式:能量E=一个K线价格幅度 X 成交量的平方根
再画一条这个能量线的5日平均线,方便看 交叉点。
一个K线价格幅度={最高价-最低价}取绝对值。
24#
发表于 2014-2-18 11:59:56 | 只看该作者
Energy:abs(h-l)*sqrt(vol);
A_Energy:ma(energy,5);
您需要登录后才可以回帖 登录 | 手机注册

本版积分规则

QQ|小黑屋|手机版|Archiver|【阳光飞狐】 ( 网站ICP编号:京ICP备06013475号-7 )

GMT+8, 2024-11-24 11:52 , Processed in 0.300479 second(s), 19 queries .

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

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