Write 2 MT4 Expert Advisors with iCustom

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 89

  • @StockServer-k1u
    @StockServer-k1u 2 дні тому

    Nice clear instructions. Info I couldn't find anywhere else. Made my code with iCustom run 100x faster. I also like the template as a quick way to get an EA up and running.

  • @LorantNemeth
    @LorantNemeth 4 роки тому +10

    Your work is invaluable, finally some really cool videos about mql4. I'm glad especially for the OOP stuff! Thank you!

  • @marindraganov8765
    @marindraganov8765 3 роки тому +1

    Thanks, man, you made my day! Now I know how important is to find someone to explain the matter in my own words!

  • @StewartCoad
    @StewartCoad 3 роки тому

    Thank You very much ... I had a bug in iCustom and watching your video solved it for me ... again thank you !!!!

  • @YouWin3D
    @YouWin3D 2 роки тому

    I wish I could give you just 10 likes at once.
    This video is the right package. I was about to learn mql4 programming and nothing was more clear than your video so far.
    And man, my eyes thank you for the 1080p HD crystal clear screen recording.

  • @alexlove2012
    @alexlove2012 4 роки тому +1

    Thank you so much, was hard to find simple example.... I think when you teach something new to some1, the best way is always with simple examples... Thank you!

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

    I don't know how to give you 100 likes at once, but I can thank you 100 times

  • @bharat5648
    @bharat5648 3 роки тому

    one of the best explanations on every key concept.. many thanks!!

  • @davideggleton5566
    @davideggleton5566 4 роки тому +1

    I'm certainly both impressed and grateful for this video. Your matter-of-fact approach is refreshingly helpful.
    My main objective is to read the output from 3rd party custom indicators (which I bought), combining with several other criteria for my own automated trading strategies. This looks like the way forward -- thanks :)

  • @iliacademyforex
    @iliacademyforex 4 роки тому +3

    Excellent tutorial!

  • @ggtechnocracy6709
    @ggtechnocracy6709 4 роки тому +2

    thanks a lot, sir. you posted the video as I requested.

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

    Thank you so much for this great video. It was a blast to watch it. I have learned a lot.
    At the same time, I have a question, regarding the notation of the 1st letter of the following variables (capital and small letter):
    In the input part the variables "StopLoss" and "TakeProfit" are defined and in the "OnInit"-part calculated. In the "bool OrderOpen"-function you define "stopLoss" and "takeProfit" as double, but not giving them a value.
    --> Does this mean they are 0 OR do they have the same values as the "StopLoss" and "TakeProfit" of the input part?
    Hopefully, I could explain it well. 😀

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

      They are different variables, case sensitive. It just means I will give them a value later but before they are used.

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

      @@OrchardForex Thank you so much. This helps a lot. :) Please keep up your great work.

  • @BadarSyed
    @BadarSyed 3 роки тому

    Thank you for the wonderful video. Is it possible to extract value from indicator if SetIndexBuffer is not defined or the value is not set?

  • @spring3281
    @spring3281 3 роки тому +1

    I have an indicator with a lot of inputs, can I skip some of them? use default indicator ones and do I only need to set inputs that have number values
    Thank you.

    • @OrchardForex
      @OrchardForex  3 роки тому

      You can leave inputs at the end to default but not in the middle. So if there are 4 inputs you can supply 1 and 2 but not 1 and 3. Yes, you need to also supply strings, booleans, dates, etc.

  • @makeit707
    @makeit707 2 роки тому

    in the data window, value1 shows 1.000000, 0.000000
    If i print the value it is 1.0, how can i say it must buy at 1.0, 0.0 and if its 0.0, 1.0 then sell
    The biggest problem is the value returns 2 buffers in it, how do i compare if i want to buy, i know its 1.000000, 0.000000 but i cannot make use of this, please help

  • @osamak.baraja8565
    @osamak.baraja8565 2 роки тому

    iCustom indicator loading many time / every tick when I put write it in side "void OnTick()". how to fix it ?

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

    Bro...insted of Take profit fixed points, can we use Sell Condition for closing all Buy orders and vice versa....basically close all buy orders when sell signal comes and vice versa

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

      Yes, that just isn't part of this strategy but of course you can simply close trades when you get a reverse signal

  • @marclang2685
    @marclang2685 4 роки тому

    I have found these three videos very useful in understanding how to use iCustom in an EA and thank you for your efforts. My question is if I were trying to use a custom indicator for a two-lines cross indicator--such as an Aroon Up and Down--would I need to use two iCustom calls, one for the Aroon Up line and another for the Aroon Down line, to be able to compare the Up value to the Down value? Also would I have to find a custom indicator that uses an argument for the Up value or the Down value and another argument for the number of candles back so that my EA can determine when there has been a crossover of the Up and Down lines and the 50 line? Do you know if such Custom indicators are likely to exist and/or where one might look for them?

    • @OrchardForex
      @OrchardForex  4 роки тому

      2 values will require 2 calls. Use the buffer number to get different values from the same indicator.

  • @judycannon2627
    @judycannon2627 2 роки тому

    First, thank you so much for all of your videos. You are a fantastic coder and teacher! I implemented this iCustom idea using an indicator that gives buy and sell arrows, and it works great, but there is an issue I am having trouble with. When my indicator gives a buy or sell signal the EA waits for the current bar to close before making the trade. This results in losing profit since my TPs are low. I tried commenting out the call to NewBar() thinking this would make it take the trade immediately, but it is still waiting for the bar to close.
    Am I not understanding something about the OnTick event handler? How would I make it take the trade in the middle of a bar?

    • @judycannon2627
      @judycannon2627 2 роки тому

      I also tried changing the last parameter to iCustom() to 0 and -1 but that didn't work either...

    • @OrchardForex
      @OrchardForex  2 роки тому

      If you have removed newbar then the code runs at every tick. My code looks at bar 1 because I expect to only open a trade on a new bar you may want to change that. Does your indicator show the arrows in the middle of a bar or only at change of bar?

    • @judycannon2627
      @judycannon2627 2 роки тому

      @@OrchardForex The indicator prices in the buffer are right before (above or below) the opening of a bar. I modified the call to iCustom to send a 0 instead of 1 and it is taking the order mid-bar now. Thanks so much for your quick reply.

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

    I would not use the PSAR, but if I did I would exit the trade after 2 og 3 dots on the other side. Would that make the code more difficult?

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

      More difficult because it would require counting the number of candles since reversal but not extremely difficult.

  • @lxxVENGENCExxl
    @lxxVENGENCExxl 2 роки тому

    Been having trouble getting iCustom BBands to work in EA someone please explain it for me. At this point i dont have any error populating in journal or compiler however when i run tester it still will not show indicator and yes it does work as a stand alone indicator. it's very similar to the super trend indicator that you made.

  • @mohammadjoorsara8911
    @mohammadjoorsara8911 9 місяців тому

    Hi. I am search a whole week to find tutorial but result is nothing. Can you help and make a Tutorial for EA that, after confirm signal from indicator 1 cross wait for indicator 2 confirmation to open position? really need help, thank you, Best Regard

  • @taariq9331
    @taariq9331 3 роки тому +1

    Great video, some really good info. Was wondering if I could get in contact with you as I need some advice

    • @OrchardForex
      @OrchardForex  3 роки тому

      Use our contact form, www.orchardforex.com/contact-us/

  • @shahinsinv
    @shahinsinv 4 роки тому

    Thank's for your Educational &Informative Video. If you can please make Video for multi currency pair. Thanks

  • @cacofranca1969
    @cacofranca1969 4 роки тому

    Very good, excellent. Congratulations! Muito bom, excelente. Parabéns!.

  • @ronzkiecabzkie2575
    @ronzkiecabzkie2575 3 роки тому

    sir I followed your video and compile no error. when i backtested, it did not make any trade...whats wrong..?

    • @OrchardForex
      @OrchardForex  3 роки тому

      There are too many possibilities with not enough information here.

  • @progamergames5095
    @progamergames5095 2 роки тому

    Sar is not working,,,, working with to,and sl,but not with opposite trades close type Ea

  • @josephmorrison3634
    @josephmorrison3634 2 роки тому

    I keep getting "2022.10.10 09:17:46.823 2022.10.07 11:00:00 MACDCustom US30,H1: OrderSend error 130" can you tell me why I keep getting this error?

    • @OrchardForex
      @OrchardForex  2 роки тому +1

      Prices or lot sizes you are sending are invalid.

  • @c4shanu624
    @c4shanu624 3 роки тому

    Hi I am trying to get value from HMA but value is not coming exact like it is on chart there is a difference in values when I print it on chart

    • @OrchardForex
      @OrchardForex  3 роки тому +1

      I don't know exactly what you are doing but check that you are getting the values for the same candle numbers and using the same inputs. The data will be the same from icustom and the indicator if you use the correct arguments.

    • @c4shanu624
      @c4shanu624 3 роки тому

      @@OrchardForex Yeah I am getting values from index 1 its not a hard indicator just have 4 inputs I checked the inputs its ok but still the values are not coming same

  • @arseniocorres3619
    @arseniocorres3619 3 роки тому

    Hi to all in Orchard Forex. I don't know programming and am new to this MQL4 EA and enjoying learning from your videos. In MQL4 I only check one symbol at a time but with 5 charts of different TF. 15min, 1hr, 4hr, D and M. So to go to another Symbol, I have to drag it one at a time to each sheet. Is it possible to make a script or EA using a button with selection of the symbol and it will automatically change the current charts to the new symbol in one click? Thank you very much if you can arrange this. TMArcher

    • @OrchardForex
      @OrchardForex  3 роки тому

      If you are running an EA it should stop by default if you change currency. If you aren't asking about an EA and just want all of your charts to change to the same currency then see ua-cam.com/video/8gpOmQwJ9D8/v-deo.html

    • @arseniocorres3619
      @arseniocorres3619 3 роки тому

      @@OrchardForex Thank you very much. That is what I need. You are great.

  • @ultrasounds1842
    @ultrasounds1842 2 роки тому

    Hello how do I convert a Tradingview indicator to my meta trader editor I want to use it in my EA??

    • @OrchardForex
      @OrchardForex  2 роки тому

      Are you expecting me to say there is a magic button to do the cnversion? You have to go through the code and rewrite it.

  • @ggtechnocracy6709
    @ggtechnocracy6709 4 роки тому

    What if the indicator have some objects like triangle and square? To show double top and bottom

    • @OrchardForex
      @OrchardForex  4 роки тому +1

      You will have to read the object values with functions like ObjectGetDouble or ObjectGetInteger.

  • @orkayen
    @orkayen 3 роки тому

    is Icustom part of Orchard forex? is it free or do I need to pay to use Icustom to create a few EAs?

    • @OrchardForex
      @OrchardForex  3 роки тому

      iCustom is a built in Metatrader function

    • @orkayen
      @orkayen 3 роки тому

      @@OrchardForex I am using MT4 for forex trading. Where do I see Icustom in the menu? Could you please provide a path to icustom?

    • @OrchardForex
      @OrchardForex  3 роки тому

      iCustom is a programming function. It is not on a menu. See ua-cam.com/video/hXq5r7jy0HQ/v-deo.html

    • @orkayen
      @orkayen 3 роки тому

      @@OrchardForex Thanks.

  • @cfdProptrader
    @cfdProptrader 4 роки тому

    Hi Orchard Forex, could you let me know how to change the indicator name which was used for EA , i have MQL5 Source code for the EA , but how i can change the indicator name in the EA Please ? thank you

    • @OrchardForex
      @OrchardForex  4 роки тому +1

      Explained in this video at 10:05, 12:55. Functions are different in MT5 but the technique is the same

    • @cfdProptrader
      @cfdProptrader 4 роки тому

      Thank you But My Indicator is in the EA not in Indicator Folder. EA works fine, but I can see the Indicator name in the Top left hand side chart. I need to “rename” the Indicator which is included in the EA, I don’t have to place the Indicator in the Indicator Folder as EA has coded with Sources code of Indicator it works fine, please help me to change name of indicator shown in the Chart (EA loaded )Left Top corner. Cheers

  • @akhilks1884
    @akhilks1884 3 роки тому

    Great👌👍

  • @saintnarkoba
    @saintnarkoba 3 роки тому

    Can we combine 2 indicators in 1 EA?

    • @OrchardForex
      @OrchardForex  3 роки тому +1

      I have a number of videos doing just that. Try the latest here ua-cam.com/video/EdeO9yJSz9c/v-deo.html

  • @ankurgoplani2127
    @ankurgoplani2127 2 роки тому

    how did you copy script from direct indicator input menu

    • @OrchardForex
      @OrchardForex  2 роки тому

      I'm not sure what you're asking. I didn't copy script, the iCustom indicators I used are already suppplied as example files with MT.

    • @ankurgoplani2127
      @ankurgoplani2127 2 роки тому

      @@OrchardForex at minute 8.54 from where and how did you copy input there ??? What is the shortcut for that !!

    • @ankurgoplani2127
      @ankurgoplani2127 2 роки тому

      And also at 9.55 minutes

    • @ankurgoplani2127
      @ankurgoplani2127 2 роки тому

      And is it ok to get error while compiling that template I am getting 8 error coping your template

    • @ankurgoplani2127
      @ankurgoplani2127 2 роки тому

      And I can't see ticket = everything what you have written in the second last line at 8.25 and ticket is not defined one of the errors which I am getting there also only coping your template is that ok ? To get error in just template !

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

    Gold

  • @progamergames5095
    @progamergames5095 2 роки тому

    I mean close function is not working properly

    • @OrchardForex
      @OrchardForex  2 роки тому

      My copy from the video is working and you haven't given any information on the problem so I can't help

    • @progamergames5095
      @progamergames5095 2 роки тому

      @@OrchardForex sir please make a video of two different indicators cross over with each other,,on main chart,,,,,like a moving average and ichimoku,,,,crossover,, which is able to make trades on user input ichimoku lines,, and cloud's,,,,,,,

  • @williwefx_wepagweru4629
    @williwefx_wepagweru4629 2 роки тому

    Yessir really helpful Thank you. how can i contact you boss , are you on Instagram or telegram ?

    • @OrchardForex
      @OrchardForex  2 роки тому

      You can find us on discord orchardforex.com/discord

  • @hastiheakalamees
    @hastiheakalamees 2 роки тому

    Is it possible to decompile ex4 to MQ4?