• ClipSaver
  • dtub.ru
ClipSaver
Русские видео
  • Смешные видео
  • Приколы
  • Обзоры
  • Новости
  • Тесты
  • Спорт
  • Любовь
  • Музыка
  • Разное
Сейчас в тренде
  • Фейгин лайф
  • Три кота
  • Самвел адамян
  • А4 ютуб
  • скачать бит
  • гитара с нуля
Иностранные видео
  • Funny Babies
  • Funny Sports
  • Funny Animals
  • Funny Pranks
  • Funny Magic
  • Funny Vines
  • Funny Virals
  • Funny K-Pop

MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT скачать в хорошем качестве

MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT 1 год назад

скачать видео

скачать mp3

скачать mp4

поделиться

телефон с камерой

телефон с видео

бесплатно

загрузить,

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT
  • Поделиться ВК
  • Поделиться в ОК
  •  
  •  


Скачать видео с ютуб по ссылке или смотреть без блокировок на сайте: MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT в качестве 4k

У нас вы можете посмотреть бесплатно MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:

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

Скачать mp3 с ютуба отдельным файлом. Бесплатный рингтон MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT в формате MP3:


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT

https://mql5tutorial.com/?s=profit In this video we are going to calculate the history profit for positions that have been already closed, it will output the text: “My last profit was:” followed by the last profit from the first order in the history, as soon as one of the positions here is closed we will see that we get a value. Let’s speed that process up a little bit and here we are and now you can see the profit, the ticket number and the position and the direction of the trade and now we want to find out how we can create an Expert Advisor that is going to calculate the order profit for history trades. To do that please click on the little button here or press F4 on your keyboard and now you should see the Metaeditor and here you want to click on: “File/ New/ Expert Advisor (template)” from template, “Continue”, I will call this file: “SimpleOrderHistoryProfit” click on “Continue”, “Continue” and “Finish”, and now you can delete everything above the “OnTick” function and the two comment lines here. First we need to include the file: “Trade.mqh”, it contains several trading functions so now we can create an instance of the class “CTrade” that will be called: “trade” and we are going to use it to open positions later on. Inside of the “OnTick” function we are going to calculate the Ask price and the Bid price that is done by using “SymbolInfoDouble” for the symbol on the chart and we use “SYMBOL_ASK” or “SYMBOL_BID” to get the Ask or the Bid price. “NormalizeDouble” and “_Digits” will help us to calculate the right amount of digits behind the dot – this currency pair has 3 digits and this one has 5 digits – and if we don't have any open positions – so “PositionsTotal” would be less than one – we will use “trade.Buy” to buy 10 micro lot and “trade.Sell” to sell 10 micro lot to open two testing positions, so please don't do that on your real account but we need some positions to calculate the last profit. That will be done by calling the function: “GetLastProfit” but we have to code that. In the “OnTick” function we will use “Comment” to output the text: “My last profit was:” and in a new line the calculated profit that we are getting from the “GetLastProfit” function, so let's code that function now! It will return a string, the name is: “GetLastProfit” profit, we don't have any parameters here, first we need to create a few variables. MQL5 is a little bit complicated, there are deals, orders, positions and ticket numbers. What does it all mean? Well, if you want something that would be an order. The broker can decide if your order is executed or not, if it is it becomes a deal and in that case you will have an open position that will go in one direction or another, so let's figure that out! First we need to get the history by using “HistorySelect”, we want all the data up to the current time (TimeCurrent), now we go through all the deals, here we use an unsigned integer as counter and as long as it is less than the total number of deals (TotalNumberOfDeals) we will increase it. Now we need to look for a ticket number, that ticket number is the return value for the function: “HistoryDealGetTicket” but we need to use an “if” statement because as long as we have no closed position we don't have anything inside of the history. The order profit is calculated by using “HistoryDealGetDouble” for the ticket number and we use “DEAL_PROFIT”, we also need to get the order type by using “HistoryDealGetInteger” for the ticket number and this time we use “DEAL_TYPE”. Now we need to get the currency pair, this time we are using “HistoryDealGetString” for the ticket number and to get the symbol we use “DEAL_SYMBOL”. Let's get the deal entry type to check for close types! Once again “HistoryDealGetInteger” for the current ticket number in combination with “DEAL_ENTRY” will deliver the deal entry type. Now we want to know if the currency pair fits, so if the currency pair for order in the history is equal to the current currency pair on the chart and if we have a buy or a sell order – so if the order type returns “ORDER_TYPE_BUY” or “ORDER_TYPE_SELL” – and if the order was closed – so if “DealEntry” equals 1 – that is when we want to do something; we set the order type to sell (SELL-TRADE) if the closed type was buy. That sounds a little strange but when you look into the history you will see that we have buy and sell orders and whenever you open a buy order and take the profit that would be a sell, so if you open a buy order and close it that would be a sell trade.

Comments
  • MQL5 TUTORIAL - HOW TO COUNT BUY POSITIONS 1 год назад
    MQL5 TUTORIAL - HOW TO COUNT BUY POSITIONS
    Опубликовано: 1 год назад
  • Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3 1 год назад
    Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3
    Опубликовано: 1 год назад
  • Как защитить API: Уязвимости и решения 2 дня назад
    Как защитить API: Уязвимости и решения
    Опубликовано: 2 дня назад
  • Top 50 SHAZAM⛄Лучшая Музыка 2026⛄Зарубежные песни Хиты⛄Популярные Песни Слушать Бесплатно #84 2 месяца назад
    Top 50 SHAZAM⛄Лучшая Музыка 2026⛄Зарубежные песни Хиты⛄Популярные Песни Слушать Бесплатно #84
    Опубликовано: 2 месяца назад
  • ИЗУЧИТЕ ОСНОВЫ MQL5 В ВИДЕ УРОКЕ: 124 ПРОСТОГО ВРЕМЕНИ ЗАКРЫТИЯ ЗАКАЗА 4 года назад
    ИЗУЧИТЕ ОСНОВЫ MQL5 В ВИДЕ УРОКЕ: 124 ПРОСТОГО ВРЕМЕНИ ЗАКРЫТИЯ ЗАКАЗА
    Опубликовано: 4 года назад
  • Top 50 SHAZAM⛄Лучшая Музыка 2024⛄Зарубежные песни Хиты⛄Популярные Песни Слушать Бесплатно #216 1 год назад
    Top 50 SHAZAM⛄Лучшая Музыка 2024⛄Зарубежные песни Хиты⛄Популярные Песни Слушать Бесплатно #216
    Опубликовано: 1 год назад
  • LEARN MQL5 TUTORIAL BASICS - 78 SIMPLE MULTI CURRENCY ORDER 5 лет назад
    LEARN MQL5 TUTORIAL BASICS - 78 SIMPLE MULTI CURRENCY ORDER
    Опубликовано: 5 лет назад
  • LEARN MQL5 TUTORIAL BASICS - 94 SIMPLE SPREADSHEET FILE WRITER 5 лет назад
    LEARN MQL5 TUTORIAL BASICS - 94 SIMPLE SPREADSHEET FILE WRITER
    Опубликовано: 5 лет назад
  • Kubernetes — Простым Языком на Понятном Примере 6 месяцев назад
    Kubernetes — Простым Языком на Понятном Примере
    Опубликовано: 6 месяцев назад
  • Linear Model Predictive Control in MATLAB - Part 3 (Constraints on Controlled Variable) 4 дня назад
    Linear Model Predictive Control in MATLAB - Part 3 (Constraints on Controlled Variable)
    Опубликовано: 4 дня назад
  • RSI Trailing Stop Expert Advisor and Source Code (download for your own AI codebase) 6 месяцев назад
    RSI Trailing Stop Expert Advisor and Source Code (download for your own AI codebase)
    Опубликовано: 6 месяцев назад
  • Леонид Агутин - Лучшие Песни / Leonid Agutin - The Greatest Hits 11 лет назад
    Леонид Агутин - Лучшие Песни / Leonid Agutin - The Greatest Hits
    Опубликовано: 11 лет назад
  • Без России АЭС ОСТАНОВЯТСЯ? Шокирующая правда об уране в США 8 дней назад
    Без России АЭС ОСТАНОВЯТСЯ? Шокирующая правда об уране в США
    Опубликовано: 8 дней назад
  • Делягин и Хазин: ждать ли обрушения доллара, нового дефолта и взрывного роста цен 1 день назад
    Делягин и Хазин: ждать ли обрушения доллара, нового дефолта и взрывного роста цен
    Опубликовано: 1 день назад
  • Table Formatting in Java 4 дня назад
    Table Formatting in Java
    Опубликовано: 4 дня назад
  • Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности 6 месяцев назад
    Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности
    Опубликовано: 6 месяцев назад
  • ВОССТАНОВЛЕНИЕ НЕРВНОЙ СИСТЕМЫ 🌸 Нежная музыка, успокаивает нервную систему и радует душу #31 Трансляция закончилась 4 месяца назад
    ВОССТАНОВЛЕНИЕ НЕРВНОЙ СИСТЕМЫ 🌸 Нежная музыка, успокаивает нервную систему и радует душу #31
    Опубликовано: Трансляция закончилась 4 месяца назад
  • Trailing stop loss in mql5 | MT5 programming 3 года назад
    Trailing stop loss in mql5 | MT5 programming
    Опубликовано: 3 года назад
  • Нежная музыка, успокаивает нервную систему и радует душу - лечебная музыка для сердца и сосудов #18
    Нежная музыка, успокаивает нервную систему и радует душу - лечебная музыка для сердца и сосудов #18
    Опубликовано:
  • Perfect on paper... horrible in reality... 3 часа назад
    Perfect on paper... horrible in reality...
    Опубликовано: 3 часа назад

Контактный email для правообладателей: u2beadvert@gmail.com © 2017 - 2026

Отказ от ответственности - Disclaimer Правообладателям - DMCA Условия использования сайта - TOS



Карта сайта 1 Карта сайта 2 Карта сайта 3 Карта сайта 4 Карта сайта 5