EA for Beginners, set and forget breakout, code, optimisation, testing part 4/8

Поділитися
Вставка
  • Опубліковано 12 чер 2023
  • Finally up to the point of placing trades. Going back to basics for a beginners coding guide, I'm writing a complete breakout expert based on a published strategy including tips and optimisation. This video covers handling the range start and end times.
    Part 4 of 8
    The strategy was published by TradePro and is a time range based breakout trading USDJPY with 3 stage take profit.
    As a beginners guide I'm taking things slowly so I have to break the tutorial down to multiple videos. This is the first part and there is a link to the playlist below. I will add further parts to the playlist in the coming days.
    The code is for Metatrader 5 but is almost the same for Metatrader 4 and I'll try to point out the differences as I go in the videos
    Looking for a broker? Support the channel by using this link. We receive a commission on your trades from the broker at no cost to you:
    orchardforex.com/live-account
    Links:
    Original Strategy Video: • 100 PIPS A DAY Highly ...
    Earlier range breakout: • Time Range Breakout Ex...
    Time entry formats: • Add this code to your ...
    Web Page: orchardforex.com/build-a-set-...
    Discord: orchardforex.com/discord/
    Playlist for this series: • Set and Forget Breakout
    #Breakout #Forex #metatrader #expert #finance
  • Розваги

КОМЕНТАРІ • 45

  • @HenrieOliver
    @HenrieOliver 10 місяців тому

    I love this channel. Last time I coded was in 2009, its 2023. I've had very senior roles in Tech Risk, Enterprise Architecture and have lost the craft. As of recent I have been trying to get into coding again (other than Excel VBA), but failed because one needs purpose in all one does. This has sparked that purpose. THANK YOU ONE MILLION.

  • @shakeel2473
    @shakeel2473 Рік тому

    Brilliant vid. Excellent content. Keep it coming please !

  • @WasimZayed
    @WasimZayed Рік тому

    Thank you for sharing this 👏

  • @dhermanus
    @dhermanus Рік тому +1

    The best MQL4/MQL5 Channel in UA-cam. 😊

  • @jacknewzeland4913
    @jacknewzeland4913 Рік тому

    This is great! Thanks for taking the time to explain the differences between MT5 and MT4 🙂👍

    • @OrchardForex
      @OrchardForex  Рік тому

      Glad it was helpful!

    • @thangnguyen3d
      @thangnguyen3d Рік тому

      @@OrchardForex Can you help me on this Mr. Relate to slippage, Is there any difference between pending order and market order ? Pending order doesn't have slippage option when open new order in MT4, does it mean that pending order help to avoid opening slippage? then how about closing slippage of pending order ? What should I pass for slippage parameter when coding in mt4 when sending a pending order ? 0 or else, does it make any difference ?

    • @OrchardForex
      @OrchardForex  Рік тому

      @@thangnguyen3d Pending orders also have slippage.

  • @LastDayStudios
    @LastDayStudios 5 місяців тому

    Correct me if I'm wrong: I can see why you would do a function overload @13:09, but I don't believe it's necessary if you could just assign the variable "symbol" to the Symbol() function itself like so? :
    double D_CORRECT_PIP_CONVERSION (string symbol, double d_pips, double d_point)
    {
    symbol = Symbol();
    int i_digits = 0;

    d_point = SymbolInfoDouble(symbol, SYMBOL_POINT);

    i_digits = (int)SymbolInfoInteger(symbol, SYMBOL_DIGITS);

    if(i_digits==3 || i_digits==4 || i_digits==5)
    {
    d_pips = d_pips*10;
    }

    double pip_value = d_pips * d_point;

    return pip_value;
    }

  • @clearairtrading1591
    @clearairtrading1591 Рік тому

    This is certainly really good stuff. I have one request. Once you have finished a session is it possible for you to slowly scroll down the entire document so we can check our entries are the same. It would give us an opportunity to scroll, stop, check, correct and carry on. I am presently trying to work out why I am getting compiling errors and not being able to scroll the document from start to finish in order makes it very hard to determine the issue. Would be much appreciated, thanks for all you effort in putting these together.

    • @OrchardForex
      @OrchardForex  Рік тому

      Just download it form the web page and compare.

  • @ramapatidevi6637
    @ramapatidevi6637 Рік тому

    Thanks a lot for this detailed & informative knowledge video. I need your help. I want to change the font size & color of the text on left top portion of MT4 showing Scrip Name, Time frame & OHLC values. Can you kindly suggest which codes can I use for this purpose?

    • @OrchardForex
      @OrchardForex  Рік тому

      I don't think you can do that, not to change the system generated information. You would have to develop your own dashboard and then you can show whatever you like. ua-cam.com/video/9iLPNqcwGF8/v-deo.html

    • @ramapatidevi6637
      @ramapatidevi6637 Рік тому

      @@OrchardForex Thanks a lot for your kind help by providing the link. Best Regards

  • @samueltobung5577
    @samueltobung5577 3 місяці тому

    What is the minimum amount to trade with this EA? And also, what is the minimum equity you should have in your account in order to use this strategy? By the way, thank you for this tutorial.

  • @jonathanmiles3806
    @jonathanmiles3806 10 місяців тому

    I'm getting an error saying Open trade undeclared identifier. I've checked for typos, even went back and followed the video over again still no fix. Any suggestions?

  • @behzaddesign
    @behzaddesign Рік тому

    thank u master... do u suggest to use MT4 or MT5? plz guide. thank u indeed

    • @OrchardForex
      @OrchardForex  Рік тому +1

      Not that simple. It depends if the differences are important to you, like MT5 has more timeframes but if you don't need them then it is not a benefit. Mt4 is easier to code but if you need some of the new features then you need MT5. I have a number of high value clients who will not touch MT5. Mainly, after over 10 years it still gets frequent patches and you don't get an option to not take the update, what if it breaks something?

    • @behzaddesign
      @behzaddesign Рік тому

      ​@@OrchardForex thank you for responding

  • @STORM15
    @STORM15 Рік тому +1

    Hi sir
    I have a question
    I have my own ea and I want to add a new trick to it when a trade hits a stop loss
    Double the lot size of the next trade can you please help me with code

    • @OrchardForex
      @OrchardForex  Рік тому

      You just want martingale. I can't help you in comments with custom development.

    • @STORM15
      @STORM15 Рік тому +1

      @@OrchardForex any way thank you sir great content

  • @TheCyberklutz
    @TheCyberklutz Рік тому +3

    Have I just spent 3 hours typing along with you only to find out that you are not going to include the code to take the actual trade with MT4 as you said you would!? That's definitely not cool.

    • @gymlol
      @gymlol Рік тому +1

      It is a series the code is not complete.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      What I said was this is in MT5 and I would try to point out where the differences are to MT4. I should be able to cover the difference in placing a trade next time

    • @addICTed_to_USD
      @addICTed_to_USD Рік тому +1

      You spent 3 hours typing when you could've saved 3 hours and downloaded the source code on his website linked in the description 😂

    • @arthurmcalister1454
      @arthurmcalister1454 Рік тому

      @@addICTed_to_USD If you just download the code you learn nothing.

  • @buildit2931
    @buildit2931 Рік тому

    Abosolutely love your videos! Where can I get the source code?

    • @thangnguyen3d
      @thangnguyen3d Рік тому

      I don't think he will share the source code. it is normal because this channel, like other channels are for education purpose, not for free source code giving. I thank him for the valuable content, and I understand that there is no free cheese. he show me the way. I have to do the rest. I completed my own version of this EA already before he post these parts. Now I wait for the optimization part and see if I can learn any useful trick to improve it.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      In the description, go to the web page

  • @internetmoneygang
    @internetmoneygang Рік тому

    I was following along with mt4 but then got lost towards the end with the order execution and magic number. Is there a workaround for Ctrade and Cpositon?

    • @OrchardForex
      @OrchardForex  Рік тому

      CTrade and CPositionInfo are supplied with MT5 and won't work in MT4 without a lot of modifications. Just download the code from the web page.

    • @internetmoneygang
      @internetmoneygang Рік тому

      @@OrchardForex Thank you!

  • @markman8489
    @markman8489 Рік тому

    Because you are executing OpenTrade() 3 times with the 3 TP levels, wont you end up with 3 separate trades with a position size of 0.03? Thank you.
    You explained this in #6 - so no need to reply.

  • @hiro-sx6bc
    @hiro-sx6bc 10 місяців тому

    ありがとう 先生

  • @user-ch5yg9op4m
    @user-ch5yg9op4m Рік тому +1

    What is the EA in the outro?

    • @OrchardForex
      @OrchardForex  Рік тому

      It is a backtest of one of my grid trading experts.

    • @10xman9
      @10xman9 Рік тому

      ​@OrchardForex can you share the ea for that or the tutorial for it please?

    • @ipelengmekgwe834
      @ipelengmekgwe834 Рік тому

      @@OrchardForex I would love to see the code for that EA as well.

  • @skeetabomb
    @skeetabomb 5 місяців тому

    @OrchardForex wouldn't the 'Digits()' function be more useful/concise here?
    Also, would you be kind enough to tell me how to contact you about a paid coding request?