data_type: 我们需要在指标数组中存储的数据类型。SetIndexBuffer(0,haOpen,INDICATOR_DATA);SetIndexBuffer(1,haHigh,INDICATOR_DATA);SetIndexBuffer(2,haLow,INDICATOR_DATA);SetIndexBuffer(3,haClose,INDICATOR_DATA);SetIndexBuffer(4,haColor,INDICATOR_COLOR_INDEX);通过调用(IndicatorSetInteger)函数和调用变体,设置...
using this handle, you can receive data calculated by the corresponding indicator. The corresponding buffer data (technical indicators contain calculated data in their internal buffers, which can vary from 1 to 5, depending on the indicator) can be copied to a mql5-program using theCopyBuffer()...
在我们的指数中,它如下所示:void OnInit(){ SetIndexBuffer( 0, TrendBuffer, INDICATOR_DATA ); PlotIndexSetInteger( 0, PLOT_DRAW_BEGIN, MAPeriod );}SetIndexBuffer()指数将之前的数组声明绑定,我们将用一个指标缓冲区,把趋势值TrendBuffer[]存储在其中。我们只有一个指标缓冲区,其指标等于零。PlotIndex...
If I need to have synchronized data in the indicator, I perform a synchronization check. Unfortunately, if there is no next tick coming (e.g. on weekends), there is no further call to OnCalculate and the indicator is not calculated. I helped myself by calling the ChartSetSymbolPeriod func...
MQL5 函数列表 函数 功能 章节 HYPERLINK mk:@MSITStore:C:\\Documents%20and%20Settings\\Administrator\\Application%20Data\\MetaQuotes\\Terminal\\Help\\mql5_Chinese.chm::/accountinfodouble.htm AccountInfoDouble 返回相应账户属性的双精度值 HYPERLINK mk:@MSITStore:C:\\Documents%20and%20Settings\\Admini...
Hi, I have this sample code for the MTF RSI indicator. The first thing we check in onCalculate is whether the number of bars calculated by the RSI handle matches the number of bars in the selected timeframe. If they don’t match, the function returns zero. This works well in the open...
21 K tradingview.com TradingView is a powerful platform designed for traders and investors to analyze financial markets in real-time. With its advanced charting tools, users can create custom indicators and strategies, share ideas with a vibrant community, and access a wealth of market data. Wheth...
Added topic CopyBuffer still not work for no-first buffer of Custom Indicator ? I want to get 2nd buffer of a Custom Indicator. in indicator SetIndexBuffer ( 0 ,IndMapBuffer1, INDICATOR_DATA ); PlotIndexSetInteger ( 0 , PLOT_LINE_STYLE , STYLE_SOLID ); 10 ok...
aws_ubuntu_user_data.sh- Working script for raising test agents on Ubuntu in AWS.The documentation is here. PythonDLL.mqh- Class forPythonDLL. RoffildPython/ Indicators/Roffild/ ToIndicator.mqh ToIndicator.mq5 ToIndicator_window.mq5
Data socket- Pushes data to client depending on the request via System socket. Live socket- Automatically pushes last candle when it closes. Streaming socket- Automatically pushes last transaction info every time it happens. Indicator data socket- automatically pushes indicator result values to the cl...