股票学习网

股票入门基础知识和炒股入门知识 - - 股票学习网!

弘历bbd指标源码(BBD指标源码)

2023-06-07 07:46分类:BIAS 阅读:

股票投资,抄底很难,因为抄底要知道什么时间洗盘结束,就是知道洗盘结束,也不一定是买点。今天给大家提供一套主图和附图指标,供大家买卖股票的参考。

附图提示洗盘结束,主图线变红买入。

界面如下:

公式源码:

界面如下:

/usr/bin 对/bin目录的一些补充

图1-3

EMA21:=EMA(C,10),COLORYELLOW;

沪市上证指数 2010 年 1 月 6 日 BBD 指标出现负值之后,连续维持在负值 状况,股指连续 22 个交易日调整。见图 1-4。

VAR2:=LLV(LOW,10);

我喜欢用 Mod-p(一个 xmonad 中 dzen 菜单栏的快捷方式,但是在大多数传统的桌面环境中该功能的快捷键是 Alt-F2)来启动程序(LCTT 译注:xmonad 是一种平铺桌面;dzen 是 X11 窗口下管理消息、提醒和菜单的程序)。这个设置在不运行多个 emacs 们 (emacsen)时很方便,因为这样就不会在试图捕获另一个打开的文件时出问题。这中方法很简单:创建一个叫 em 的脚本并将它放到我自己的环境变量中。就像这样:

GJJ:=EMA(攻击流量,8);

三是,在AI领域,由于技术原因,更多的论文是开源代码的,一方面,促进了更多人参与进来改进迭代;另一方面,科研跟工程实现无缝连接,一篇论文可以拉动从核心代码到平台,到具体应用很大范围的价值扩散。一篇论文很可能就是一个领域,一条赛道,甚至直接驱动业务价值和客户价值的大幅提升。

DRAWICON(VAR5 AND 判断底>0,60,1);

1.断点调试,源码分析

可以从源码了解到,不仅仅支持flv,ts,还有mp3,AAC等格式。SrsLiveEntry表示是一一对应关系,url与source的映射关系。对应源码如下:

srs_error_t SrsLiveStream::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r) { srs_error_t err = srs_success; string enc_desc; ISrsBufferEncoder* enc = NULL; srs_assert(entry); if (srs_string_ends_with(entry->pattern, ".flv")) { w->header()->set_content_type("video/x-flv"); enc_desc = "FLV"; enc = new SrsFlvStreamEncoder(); } else if (srs_string_ends_with(entry->pattern, ".aac")) { w->header()->set_content_type("audio/x-aac"); enc_desc = "AAC"; enc = new SrsAacStreamEncoder(); } else if (srs_string_ends_with(entry->pattern, ".mp3")) { w->header()->set_content_type("audio/mpeg"); enc_desc = "MP3"; enc = new SrsMp3StreamEncoder(); } else if (srs_string_ends_with(entry->pattern, ".ts")) { w->header()->set_content_type("video/MP2T"); enc_desc = "TS"; enc = new SrsTsStreamEncoder(); } else { return srs_error_new(ERROR_HTTP_LIVE_STREAM_EXT, "invalid pattern=%s", entry->pattern.c_str()); } SrsAutoFree(ISrsBufferEncoder, enc); // Enter chunked mode, because we didn't set the content-length. w->write_header(SRS_CONSTS_HTTP_OK); // create consumer of souce, ignore gop cache, use the audio gop cache. SrsConsumer* consumer = NULL; if ((err = source->create_consumer(NULL, consumer, true, true, !enc->has_cache())) != srs_success) { return srs_error_wrap(err, "create consumer"); } SrsAutoFree(SrsConsumer, consumer); srs_verbose("http: consumer created success."); SrsPithyPrint* pprint = SrsPithyPrint::create_http_stream(); SrsAutoFree(SrsPithyPrint, pprint); SrsMessageArray msgs(SRS_PERF_MW_MSGS); // Use receive thread to accept the close event to avoid FD leak. // @see https://github.com/ossrs/srs/issues/636#issuecomment-298208427 SrsHttpMessage* hr = dynamic_cast<SrsHttpMessage*>(r); SrsResponseOnlyHttpConn* hc = dynamic_cast<SrsResponseOnlyHttpConn*>(hr->connection()); // update the statistic when source disconveried. SrsStatistic* stat = SrsStatistic::instance(); if ((err = stat->on_client(_srs_context->get_id(), req, hc, SrsRtmpConnPlay)) != srs_success) { return srs_error_wrap(err, "stat on client"); } // the memory writer. SrsBufferWriter writer(w); if ((err = enc->initialize(&writer, cache)) != srs_success) { return srs_error_wrap(err, "init encoder"); } // if gop cache enabled for encoder, dump to consumer. if (enc->has_cache()) { if ((err = enc->dump_cache(consumer, source->jitter())) != srs_success) { return srs_error_wrap(err, "encoder dump cache"); } } SrsFlvStreamEncoder* ffe = dynamic_cast<SrsFlvStreamEncoder*>(enc); // Set the socket options for transport. bool tcp_nodelay = _srs_config->get_tcp_nodelay(req->vhost); if (tcp_nodelay) { if ((err = hc->set_tcp_nodelay(tcp_nodelay)) != srs_success) { return srs_error_wrap(err, "set tcp nodelay"); } } srs_utime_t mw_sleep = _srs_config->get_mw_sleep(req->vhost); if ((err = hc->set_socket_buffer(mw_sleep)) != srs_success) { return srs_error_wrap(err, "set mw_sleep %" PRId64, mw_sleep); } SrsHttpRecvThread* trd = new SrsHttpRecvThread(hc); SrsAutoFree(SrsHttpRecvThread, trd); if ((err = trd->start()) != srs_success) { return srs_error_wrap(err, "start recv thread"); } srs_trace("FLV %s, encoder=%s, nodelay=%d, mw_sleep=%dms, cache=%d, msgs=%d", entry->pattern.c_str(), enc_desc.c_str(), tcp_nodelay, srsu2msi(mw_sleep), enc->has_cache(), msgs.max); // TODO: free and erase the disabled entry after all related connections is closed. // TODO: FXIME: Support timeout for player, quit infinite-loop. while (entry->enabled) { // Whether client closed the FD. if ((err = trd->pull()) != srs_success) { return srs_error_wrap(err, "recv thread"); } pprint->elapse(); // get messages from consumer. // each msg in msgs.msgs must be free, for the SrsMessageArray never free them. int count = 0; if ((err = consumer->dump_packets(&msgs, count)) != srs_success) { return srs_error_wrap(err, "consumer dump packets"); } if (count <= 0) { // Directly use sleep, donot use consumer wait, because we couldn't awake consumer. srs_usleep(mw_sleep); // ignore when nothing got. continue; } if (pprint->can_print()) { srs_trace("-> " SRS_CONSTS_LOG_HTTP_STREAM " http: got %d msgs, age=%d, min=%d, mw=%d", count, pprint->age(), SRS_PERF_MW_MIN_MSGS, srsu2msi(mw_sleep)); } // sendout all messages. if (ffe) { err = ffe->write_tags(msgs.msgs, count); } else { err = streaming_send_messages(enc, msgs.msgs, count); } // free the messages. for (int i = 0; i < count; i++) { SrsSharedPtrMessage* msg = msgs.msgs[i]; srs_freep(msg); } // check send error code. if (err != srs_success) { return srs_error_wrap(err, "send messages"); } } // Here, the entry is disabled by encoder un-publishing or reloading, // so we must return a io.EOF error to disconnect the client, or the client will never quit. return srs_error_new(ERROR_HTTP_STREAM_EOF, "Stream EOF"); }

1 0x00000000004fde19 in SrsBufferWriter::write (this=0x7ffff7eb5860, buf=0x7ffff7eb5470, count=9, pnwrite=0x0) at src/app/srs_app_http_stream.cpp:506 2 0x000000000040e9e1 in SrsFlvTransmuxer::write_header (this=0xa71b10, flv_header=0x7ffff7eb5470 "FLV\001\005") at src/kernel/srs_kernel_flv.cpp:411 3 0x000000000040e90d in SrsFlvTransmuxer::write_header (this=0xa71b10, has_video=true, has_audio=true) at src/kernel/srs_kernel_flv.cpp:399 4 0x00000000004fd11a in SrsFlvStreamEncoder::write_header (this=0xa68b10, has_video=true, has_audio=true) at src/app/srs_app_http_stream.cpp:355 5 0x00000000004fd04f in SrsFlvStreamEncoder::write_tags (this=0xa68b10, msgs=0xa6da30, count=10) at src/app/srs_app_http_stream.cpp:340 6 0x00000000004ff0dc in SrsLiveStream::do_serve_http (this=0xa3d9d0, w=0x7ffff7eb5bd0, r=0xa91c00) at src/app/srs_app_http_stream.cpp:677 7 0x00000000004fe108 in SrsLiveStream::serve_http (this=0xa3d9d0, w=0x7ffff7eb5bd0, r=0xa91c00) at src/app/srs_app_http_stream.cpp:544 8 0x000000000049c86f in SrsHttpServeMux::serve_http (this=0xa11fe0, w=0x7ffff7eb5bd0, r=0xa91c00) at src/protocol/srs_http_stack.cpp:711 9 0x0000000000562080 in SrsHttpServer::serve_http (this=0xa11e00, w=0x7ffff7eb5bd0, r=0xa91c00) at src/app/srs_app_http_conn.cpp:300 10 0x000000000049d6be in SrsHttpCorsMux::serve_http (this=0xa3aa60, w=0x7ffff7eb5bd0, r=0xa91c00) at src/protocol/srs_http_stack.cpp:859 11 0x0000000000561086 in SrsHttpConn::process_request (this=0xa626e0, w=0x7ffff7eb5bd0, r=0xa91c00) at src/app/srs_app_http_conn.cpp:161 12 0x0000000000560ce8 in SrsHttpConn::do_cycle (this=0xa626e0) at src/app/srs_app_http_conn.cpp:133 13 0x00000000004d10fb in SrsConnection::cycle (this=0xa626e0) at src/app/srs_app_conn.cpp:171 14 0x0000000000509c88 in SrsSTCoroutine::cycle (this=0xa62a70) at src/app/srs_app_st.cpp:198 15 0x0000000000509cfd in SrsSTCoroutine::pfn (arg=0xa62a70) at src/app/srs_app_st.cpp:213 16 0x00000000005bdd9d in _st_thread_main () at sched.c:337 17 0x00000000005be515 in st_thread_create (start=0x5bd719 <_st_vp_schedule+170>, arg=0x900000001, joinable=1,stk_size=1) at sched.c:616

3.关于vhost配置

0 SrsLiveEntry::SrsLiveEntry 1 0x0000000000500ffa in SrsHttpStreamServer::http_mount (this=0xa11dc0, s=0xa3bf80, r=0xa3ae90) at src/app/srs_app_http_stream.cpp:907 2 0x00000000005620f5 in SrsHttpServer::http_mount (this=0xa118f0, s=0xa3bf80, r=0xa3ae90) at src/app/srs_app_http_conn.cpp:308 3 0x00000000004cd3cc in SrsServer::on_publish (this=0xa103a0, s=0xa3bf80, r=0xa3ae90) at src/app/srs_app_server.cpp:1608 4 0x00000000004e6a9b in SrsSource::on_publish (this=0xa3bf80) at src/app/srs_app_source.cpp:2466 5 0x00000000004d89f2 in SrsRtmpConn::acquire_publish (this=0xa30ce0, source=0xa3bf80) at src/app/srs_app_rtmp_conn.cpp:940 6 0x00000000004d7a74 in SrsRtmpConn::publishing (this=0xa30ce0, source=0xa3bf80) at src/app/srs_app_rtmp_conn.cpp:822 7 0x00000000004d5229 in SrsRtmpConn::stream_service_cycle (this=0xa30ce0) at src/app/srs_app_rtmp_conn.cpp:534 8 0x00000000004d4141 in SrsRtmpConn::service_cycle (this=0xa30ce0) at src/app/srs_app_rtmp_conn.cpp:388 9 0x00000000004d2f09 in SrsRtmpConn::do_cycle (this=0xa30ce0) at src/app/srs_app_rtmp_conn.cpp:209 10 0x00000000004d10fb in SrsConnection::cycle (this=0xa30d58) at src/app/srs_app_conn.cpp:171 ---Type <return> to continue, or q <return> to quit--- 11 0x0000000000509c88 in SrsSTCoroutine::cycle (this=0xa30f70) at src/app/srs_app_st.cpp:198 12 0x0000000000509cfd in SrsSTCoroutine::pfn (arg=0xa30f70) at src/app/srs_app_st.cpp:213 13 0x00000000005bdd9d in _st_thread_main () at sched.c:337 14 0x00000000005be515 in st_thread_create (start=0x5bd719 <_st_vp_schedule+170>, arg=0x700000001, joinable=1, stk_size=1) at sched.c:616

0 SrsLiveStream::SrsLiveStream (this=0xa3da40, s=0xa3bbd0, r=0xa3ad40, c=0xa3d520) at src/app/srs_app_http_stream.cpp:514 1 0x00000000005010bb in SrsHttpStreamServer::http_mount (this=0xa11fd0, s=0xa3bbd0, r=0xa3ad40) at src/app/srs_app_http_stream.cpp:912 2 0x00000000005620f5 in SrsHttpServer::http_mount (this=0xa11e00, s=0xa3bbd0, r=0xa3ad40) at src/app/srs_app_http_conn.cpp:308 3 0x00000000004cd3cc in SrsServer::on_publish (this=0xa11ea0, s=0xa3bbd0, r=0xa3ad40) at src/app/srs_app_server.cpp:1608 4 0x00000000004e6a9b in SrsSource::on_publish (this=0xa3bbd0) at src/app/srs_app_source.cpp:2466 5 0x00000000004d89f2 in SrsRtmpConn::acquire_publish (this=0xa30d00, source=0xa3bbd0) at src/app/srs_app_rtmp_conn.cpp:940 6 0x00000000004d7a74 in SrsRtmpConn::publishing (this=0xa30d00, source=0xa3bbd0) at src/app/srs_app_rtmp_conn.cpp:822 7 0x00000000004d5229 in SrsRtmpConn::stream_service_cycle (this=0xa30d00) at src/app/srs_app_rtmp_conn.cpp:534 8 0x00000000004d4141 in SrsRtmpConn::service_cycle (this=0xa30d00) at src/app/srs_app_rtmp_conn.cpp:388 9 0x00000000004d2f09 in SrsRtmpConn::do_cycle (this=0xa30d00) at src/app/srs_app_rtmp_conn.cpp:209 10 0x00000000004d10fb in SrsConnection::cycle (this=0xa30d78) at src/app/srs_app_conn.cpp:171 11 0x0000000000509c88 in SrsSTCoroutine::cycle (this=0xa30f90) at src/app/srs_app_st.cpp:198 12 0x0000000000509cfd in SrsSTCoroutine::pfn (arg=0xa30f90) at src/app/srs_app_st.cpp:213 13 0x00000000005bdd9d in _st_thread_main () at sched.c:337 14 0x00000000005be515 in st_thread_create (start=0x5bd719 <_st_vp_schedule+170>, arg=0x700000001, joinable=1, stk_size=1) at sched.c:616

3.总结

https://www.haobaihe.com

上一篇:股票价格计算(股票价格计算公式在线)

下一篇:环保概念股股市行情(浙江环保概念股)

相关推荐

返回顶部