Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.02.15 13:28
Indicators

LoongMAx96 - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
4906
Rating:
votes: 22
\MQL5\Indicators\LoongMA\
cmybuffer.mqh (3.21 KB)view
fcolorinc.mqh (4.41 KB)view
loongmax96.mq5 (12.18 KB)view

Author:

Loong

Draws 96 line MAs with only 100 lines of code (uses MyBuffer class).

History: The idea is got from Rosh's topic

http://forum.mql4.com/ru/6100/page6
http://forum.mql4.com/c/codebase/2007/06/6_1.gif
http://forum.mql4.com/c/forum/2007/06/ma_1200.zip (seem be uploaded by 'dimontus')
http://forum.mql4.com/cn/6108/page2
http://forum.mql4.com/6130/page4
http://forum.mql4.com/6130/page5
http://forum.mql4.com/c/forum/2007/08/ma_1200.zip ('Rosh' copy and paste )

And the idea in Chinese name, called 'jun xian liu'.(That means "Moving Average Line Flow".) I wanted to simplify the multi-indicator template with a multi-line indicator. But it means many repetitive codes.

Or I need two-dimensional array, one dimensional for time index, another dimensional for MAs[] index. In MQL4, it is impossible. (And MQL4 support only 8 line indicator.) Then we had MetaTrader 5 and MQL5, them support class. And class can hide one dimensional. So I achieved the first version, at http://forum.mql4.com/27267 (notice: the old class named 'CIndicatorBuffer' conflicts with same name in Indicator.mqh)

Later, a newer version be discussed at https://www.mql5.com/en/forum/331/ (Thank 'Rosh' and 'investeo'!)

And now, the newest version is here.

Input parameters:

Parameters? forget it! It work fine without changing parameters.


LoongMAx96


TimerClosingPeriod TimerClosingPeriod

The indicator prints the time to close of the current timeframe, if it less than H1, it also prints the time to close of the current hourly bar.

ErrorDescription ErrorDescription

The library contains functions that returns description of runtime error codes and trade server return codes.

sChartsSynchroScroll sChartsSynchroScroll

The script provides a synchronous scrolling for all charts opened in the client terminal.

WININET_TEST WININET_TEST

Here is a simple example that shows how to download page(file) from Internet using the library wininet.dll.