Loong / Profile
Friends
Requests
Add friends via their profile or user search and you will be able to see if they are online
Outgoing
Loong
Published article The Drawing Styles in MQL5
There are 6 drawing styles in MQL4 and 18 drawing styles in MQL5. Therefore, it may be worth writing an article to introduce MQL5's drawing styles. In this article, we will consider the details of drawing styles in MQL5. In addition, we will create an indicator to demonstrate how to use these drawing styles, and refine the plotting.
Share on social networks · 3
19191
Loong
Published code DemoBufferPattern
To demo buffer-pattern: Candles + Fractals + ZigzagColor + ColorMaLine.
Share on social networks · 1
19046
4397
Loong
Added topic Build 257, Access violation read in visitting const string in a dual const struct array
Print ( "VisitIndiParam{for}, rcaIndiParam.aIndiParam[i].string_value=" +rcaIndiParam.aIndiParam[i].string_value); This code work well before Build 252, but cause "Access violation read" in Build 256 and 257. (I did not test Build 253
Loong
Added topic How to remove levels of a indicator at runtime?
If I set levels of a indicator, how to remove them at runtime? //--- set levels IndicatorSetInteger ( INDICATOR_LEVELS ,2); IndicatorSetDouble ( INDICATOR_LEVELVALUE ,0,20.0);
Loong
Added topic DoubleToString() digits default value is 0?
MQL5 document said the default value is 8, but seem actually set 0 as default. DoubleToString Converting numeric value into text string. string DoubleToString ( double value
Loong
Added topic question about Ichimoku
I change the example of Ichimoku indicator . It work well. However, there are two questions. How to fill the cloud between SpanA and SpanB with STYLE_DOT like the built-in indicator? How to make indicator support shift beyond series with
Loong
Added topic question about IndicatorSetXXX
Why there are not IndicatorGetXXX function ? How to get MAXIMUM or MINIMUM of a indicator? If I set MAXIMUM or MINIMUM of a indicator, how to clear them at runtime? If I set some levels of a indicator, how to delete these levels at runtime
Loong
Added topic three question from IndicatorCreate()
1. do not support "[]&" grammar In MQL5 Reference / Timeseries and Indicators Access / IndicatorCreate, there is: int IndicatorCreate ( string
Loong
Published code LoongMAx96
Draws 96 line MAs with only 100 lines of code (uses CMyBuffer class).
Share on social networks
11935
3112
Loong
Added topic How to publicize the m_data[], when derive a class from CArrayDouble?
I need a public buffer to use in CLoongIndiSelect::GetData(). I can define a public buffer, but there is a double m_data[]. So, why do not use it? // CLoongIndiBuffer << CIndicatorBuffer << CArrayDouble << CArray <<
Loong
Added topic tree optimize error!
If you compile this code, it will cause tree optimize error, and crash MetaEditor (5.0.0.244)! void TestMath6( long lParam) { //if directly assign value to lLocal, will cause //tree optimize
Loong
Added topic MathFloor(), MathCeil() return wrong value
MathFloor(any value) return 0. MathCeil (any value) return 1. MathRound() is right.
Loong
Added topic Maybe GetData() should return int?
Because CopyBuffer() return int. But I don't know how to deal the checking . Indicator.mqh bool CIndicator::GetData( int start_pos, int count, int buffer_num, double & buffer[]) bool CIndicator::GetData( datetime start_time, int
Loong
Added topic draw 96 line MAs with only 100 line code
Some time ago (at least before 2009.11.07), I can use a function to set plot line color, such as PlotIndexSetInteger(i,PLOT_LINE_COLOR,iColor); without explicit declare statement, such as #property indicator_color1 Red But
Loong
Added topic How to use two-dimensional array as buffer in SetIndexBuffer() of MQL5?
I want to show a lot of MA in a indicator. So, if I can use two-dimensional array as buffer, It will briefly written form of circulation. Like this: for ( int i = 0 ; i < 96 ; i + + ) {
: