您的位置:首页 > 洋酒洋酒

请求高手,把这个主力资金线金叉散户资金线的预警公式,改成30分钟金叉时候就会出现预警的通达信指标预警

admin2024-04-29人已围观

一、请求高手,把这个主力资金线金叉散户资金线的预警公式,改成30分钟金叉时候就会出现预警的通达信指标预警

C1:=C#MIN30;H1:=H#MIN30;L1:=L#MIN30;

VAR1:=(C1*2+H1+L1)/4;

VAR2:=EMA(VAR1,13)-EMA(VAR1,34);

VAR3:=EMA(VAR2,5);

散户资金线:=(-2)*(VAR2-VAR3)*3.8;

主力资金线:=2*(VAR2-VAR3)*3.8;

XG:CROSS(主力资金线,散户资金线);

二、求助啊,websocket,连不上

WS遇两问题: : 描述:能够功连并调用onopen并且能够收服务器推送消息send发送数据提示连接关闭1002:An unrecoverable IOException occurred so the connection was closed 环境:window7+chrome/360浏览器 websocket初始化: function WS(u, messageF) { var ws = null; var url = 'ws://localhost:8080/Auction/websocket'; if ('WebSocket' in window) { ws = new WebSocket(url); } else if ('MozWebSocket' in window) { ws = new MozWebSocket(url); } ws.onmessage = function(m) { messageF(m.data); }; ws.onopen = function() { messageF('Opened'); }; ws.onclose = function(e) { messageF(e.code + : + e.reason); }; ws.onerror = function(e) { for ( var p in e) { messageF(p + = + e[p]); } }; this.send = function(m) { ws.send(m); }; } 服务器WS: public void onOpen(Session session, EndpointConfig conf) { this.session = session; RemoteEndpoint.Basic remoteEndpointBasic = session.getBasicRemote(); session.addMessageHandler(new WSMessageHandler(remoteEndpointBasic)); String message = String.format(* %s %s, nickname, has joined.); try { session.getBasicRemote().sendText(message);//条信息页面能收 } catch (Exception e) { } } public void onClose() { String message = String .format(* %s %s, nickname, has disconnected.); System.out.println(message); } public void onError(Throwable t){ System.out.println(t.toString()); }

三、一个页面有多个产品,ajax怎么实现点击每个产品就会有相应的价格变化?

给你个例子 <br>如:<br>&lt;select name=&quot;Train_class&quot; size=&quot;1&quot; id=&quot;leibie&quot; onChange=&quot;ceshi()&quot; style=&quot;width:200px;&quot;&gt;<br>&lt;option value=1 selected&gt;1&lt;/option&gt;<br>&lt;option value=2 selected&gt;2&lt;/option&gt;<br>&lt;/selert&gt; <br>'AJAX返回的值 现在在ID = 'zhi' 里面<br> &lt;samp id=&quot;zhi&quot;&gt;&lt;/samp&gt;<br>调用方法<br>&lt;script language=&quot;javascript&quot;&gt;<br>// JavaScript Document<br>var xmlhttp;<br>var boid;<br>function ceshi()<br>{<br> try{<br>  xmlhttp=new XMLHttpRequest();<br> }catch(e){<br>  xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br> }<br> var t = document.getElementById(&quot;leibie&quot;); <br> var aaa= t.options[t.selectedIndex].value; <br> //创建请求结果处理程序<br> xmlhttp.onreadystatechange=getReady;<br> //打开连接,true表示异步提交<br> //alert(&quot;ceshi.asp?Bulletin_class=&quot;+aaa, true);<br>    //传值 地址<br> xmlhttp.open(&quot;get&quot;, &quot;ceshi.asp?Train_class=&quot;+aaa, true);<br> //当方法为post时需要如下设置http头<br> xmlhttp.setRequestHeader(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded;&quot;);<br> //发送数据<br> xmlhttp.send(null);<br>}<br><br>function getReady()<br>{<br>  //alert(xmlhttp.responseText);<br>  if (xmlhttp.readyState==4)<br>  {<br>   if (200==xmlhttp.status)<br>   {<br>    var Bodys=xmlhttp.responseText;<br>    document.getElementById(&quot;zhi&quot;).innerHTML=Bodys;<br>    //alert(Bodys);<br>   }<br>   else<br>   {<br>    //document.getElementById(boid).innerHTML=&quot;抱歉,装载数据失败&quot;;<br>   }<br>  }<br>}<br>&lt;/script&gt;<br><br>测试页面 ceshi.asp<br>写接收个值,然后输出对应的价格就哦了

很赞哦! ()

上一篇:进口的20欧元红酒能卖多少钱'>谈谈自媒体、新媒体和融媒体

下一篇:返回列表'>返回列表

随机图文