MQL Coding to trade in Time Ranges

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 21

  • @PatrickReilly-z5h
    @PatrickReilly-z5h Год назад

    Hello Arthur, Just wanted to say I really appreciate your efforts on this series. Being someone new to coding, this is a spectacular learning resource!!

  • @LifeStyleVideosSA
    @LifeStyleVideosSA 2 года назад

    can you please make a video of a imdicator that sends real time signalsnin the chart

  • @jesseliverless9811
    @jesseliverless9811 4 года назад

    It's interesting to see your approach. I always use a single line in my EAs, for example: if(Hour()>=10 {...} .

  • @omidabdolarazageian9106
    @omidabdolarazageian9106 3 месяца назад

    Hello master, I had a question about this coding, I want to use this code in mql 5, what should I change because the compiler gives me a warning, it doesn't give me any error, it just gives a warning, thank you for your guidance.

  • @TheEcherriman
    @TheEcherriman Год назад

    Thanks again Arthur. Sorry for such a dumb question, but how did you make the popup appear at 23:54 ? Is this just MT4 or MT5 as well please ?

    • @OrchardForex
      @OrchardForex  Год назад +1

      That's just the inputs to the expert. MT4 does it as a popup, MT5 uses a tab

  • @phillipdavies9179
    @phillipdavies9179 4 года назад +1

    When running the Back Tester using a chart template with an indicator attached , lets say an SMA period 10 -- I can see the SMA as the tester runs OK -- But say I change the EA settings to use a 20 SMA -- I still see the 10 period SMA as the tester runs, is there a way round this so sets the SMA to whatwever I have set it to in the EA config ?

    • @OrchardForex
      @OrchardForex  4 года назад +1

      Only if you want to have the EA also draw an indicator, but I don't recommend that. Just pause playback and change the indicator.

  • @bigrichlegend5163
    @bigrichlegend5163 4 года назад

    Hi Arthur, just wondering if you would be able to do a tutorial on ICHIMOKU indicator with the option to select the Applied Price and the MODE? thanks

  • @MrKiran1975
    @MrKiran1975 4 года назад

    How to make 2m, 3.5m,9m,11.5minutes and so on candle charts in mt4 ?

  • @johnskinner3145
    @johnskinner3145 3 года назад

    Hi, MT4 allows for the use of input and extern to accept user inputs. Can you please tell us the difference between the two and why you use input?

  • @samuelsamuelian6365
    @samuelsamuelian6365 3 года назад +1

    hi Arthur, and thanks for this useful video,but please write some function or class to have a Built-In "risk management" system on it.. for example open every trade based on 2 percent risk of account equity and use fixed Inpratio like 1:2 ,1:3,.. if you have time ,please make a video about it..Much Much Appreciate it

  • @aldainjoel2290
    @aldainjoel2290 4 года назад

    Hey like your videos. I was wondering how to use the icustom function with a arrow indicator . I have downloaded your simple ea template

  • @starlordbc2179
    @starlordbc2179 4 года назад

    Great video Arthur.
    Could you do a tutorial on how to add moving averages to separate window indicators, like RSI, CCI, TSi ect?

    • @OrchardForex
      @OrchardForex  4 года назад

      Does this have what you want? ruclips.net/video/KULmWjSm8Ns/видео.html

    • @starlordbc2179
      @starlordbc2179 4 года назад

      It's not exactly what I asked for. What I meant was we can apply Simple Moving Average to the first Indicators data. Basically RSI, TSI, CCI are one line indicators, adding moving averages to them we can change them into two line indicators.
      After that RSI has two lines first one RSI and second added signal line/moving average. That simple trick can be done in MT4, but I don't know how to code it.
      I hope that makes sense.

  • @hollandamericalinetravelers
    @hollandamericalinetravelers 3 года назад

    Can we expand the series EA Framework with a Multi Symbol version?

  • @MalindaDBRasingolla
    @MalindaDBRasingolla 3 года назад

    Hello arthur,
    Your tutorials are great. They helped me soo much. But in MT5 when i try to optimise the EA, it doesn't work. Can you explain how to avoid that situation?
    Thank you

    • @OrchardForex
      @OrchardForex  3 года назад

      I don't use the optimiser much in MT4 or 5 but what do you mean by doesn't work. The EA doesn't work or you don't get any optimised results? This EA or any?

  • @fcsc6381
    @fcsc6381 4 года назад

    Thank you for this tutorial..💥👍🏻 Can you make a simple mql4 tutorial how to detect a pattern like Head and Shoulder, Quasimodo?🙏🏻🙏🏻

  • @davidfortin3111
    @davidfortin3111 2 года назад

    Does anyone know how to change this code to only trade Tuesday - Thursday, and only trade from 9am - 2 pm server time?
    I am new to codes and I don't want to mess anything up on the current EA I am using.
    datetime LastOpenTradeTime()
    {
    datetime result = 0;
    for(int i = OrdersTotal()-1; i >= 0; i--)
    {
    if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue;
    if(OrderType() > 1) continue;
    if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
    {
    result = OrderOpenTime();
    break;
    }
    }
    return(result);
    }
    bool SelectLastHistoryTrade()
    {
    int lastOrder = -1;
    int total = OrdersHistoryTotal();
    for(int i = total-1; i >= 0; i--)
    {
    if(!OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) continue;
    if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
    {
    lastOrder = i;
    break;
    }
    }
    return(lastOrder >= 0);
    }
    datetime LastOpenTime()
    {
    datetime opentime1 = 0, opentime2 = 0;
    if(SelectLastHistoryTrade())
    opentime1 = OrderOpenTime();
    opentime2 = LastOpenTradeTime();
    if (opentime1 > opentime2)
    return opentime1;
    else
    return opentime2;
    }