Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

MQL4 Tutorial Bootcamp2 - 5 Check Any Trend Module

Автор: MQL4Tutorial

Загружено: 2016-02-26

Просмотров: 4795

Описание:

https://mql4tutorial.com/?s=expert

If we want to check several timeframes, it would be obviously a lot of work to create a separate module for each time frame so we want our module to handle all the time frames and we don’t want to recode it every time. And, we want people to be able to change the time frame in the expert advisor properties.



Please hit the F4 key to bring up Meta Editor and remove every occurrence of the time frame value. So now, we would call our module CheckAnyTrend. And we would now declare a variable called extern double TrendFrame with the value of 10080. If you mark the word extern, and hit the F1 key, you will see in the MQL4 reference that external variables are available from the properties window.



In the OnTick function, we want to call the CheckTrend function and handover the value TrendFrame to calculate the trend. Now, I open the CheckTrend MQ4 file and save it with the name CheckAnyTrend.MQ4. Right here, within the round brackets, it will receive the double value TrendFrame and it will now use the value TrendFrame to calculate the trend.



So we have no fixed numbers anymore and now, we would be able to use our module for each and every time frame. Don’t forget to save it, and I will also give the main expert advisor a new name. The compilation succeeded but we got warnings. The reason is: The iMA function expects an integer for the time frame and we have used the double value.
We are going to fix this in the next part. For now, hit the F4 key, select the new expert advisor and hit the Start button. Okay it works. In fact, the double value is more accurate than an integer value. This is the reason it says it’s a possible loss and it’s a warning so you should correct it, but you don’t absolutely have to, everything you absolutely have to correct would have created an error over here

MQL4 Tutorial Bootcamp2 -  5 Check Any Trend Module

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

MQL4 Tutorial Bootcamp2 - 6 Cleaning up the warnings

MQL4 Tutorial Bootcamp2 - 6 Cleaning up the warnings

MQL4 TUTORIAl BASICS - 90 SIMPLE LOW PRICE TREND LINE OBJECT

MQL4 TUTORIAl BASICS - 90 SIMPLE LOW PRICE TREND LINE OBJECT

MQL4 TUTORIAL BASICS - MQL4TUTORIAL.COM

MQL4 TUTORIAL BASICS - MQL4TUTORIAL.COM

REAL ODPADA Z 2-LIGOWCEM! SENSACJA, ABSURD, NIEMOŻLIWE! ALBACETE LEPSZE, CO ZA FALSTART ARBELOI

REAL ODPADA Z 2-LIGOWCEM! SENSACJA, ABSURD, NIEMOŻLIWE! ALBACETE LEPSZE, CO ZA FALSTART ARBELOI

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

MQL4 TUTORIAL  - SIMPLE MOVING AVERAGE SHIFT

MQL4 TUTORIAL - SIMPLE MOVING AVERAGE SHIFT

MQL4 TUTORIAL - SIMPLE AVERAGE TRUE RANGE EA 1

MQL4 TUTORIAL - SIMPLE AVERAGE TRUE RANGE EA 1

Find Upper and Lower Trend Lines with MQL

Find Upper and Lower Trend Lines with MQL

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Express Republiki 15.01.2026 | TV Republika

Express Republiki 15.01.2026 | TV Republika

Jesz to? Błąd - TRACISZ KOLAGEN (płacimy za to zdrowiem...)

Jesz to? Błąd - TRACISZ KOLAGEN (płacimy za to zdrowiem...)

This New Gemini Update is Massive! (New Features)

This New Gemini Update is Massive! (New Features)

WIĘZIEŃ-GENIUSZ Przeżył 30 lat w DRZEWIE i powrócił!

WIĘZIEŃ-GENIUSZ Przeżył 30 lat w DRZEWIE i powrócił!

I Read Honey's Source Code

I Read Honey's Source Code

Ekspert o dwóch scenariuszach ws. Iranu.

Ekspert o dwóch scenariuszach ws. Iranu. "Samo bombardowanie nic nie da"

MQL4 Tutorial Bootcamp 2 - Create a better trading robot

MQL4 Tutorial Bootcamp 2 - Create a better trading robot

MQL4 How to get your expert or indicator inputs from a file

MQL4 How to get your expert or indicator inputs from a file

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

12 stycznia 2026

12 stycznia 2026

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com