Never Search for FVG (Fair Value Gaps) Again!! Free mql5 Indicator Coding Tutorial

Поділитися
Вставка
  • Опубліковано 14 лис 2023
  • *Complete MT5 Programming Course: en.bmtrading.de/mt5-masterclass/
    *Complete MT5 Martingale Class: en.bmtrading.de/mt5-martingal...
    *Recommended Broker: en.bmtrading.de/broker/
    *Free Trading Journal: en.bmtrading.de/tradebuddy/
    **FTMO Funded Trading: trader.ftmo.com/?affiliates=y...
    *These Links redirect to my webpage where you can find free or paid products and lots of useful information.
    **These Links are Affiliate Links. If you use this link you can support the channel because I will receive a commission form the company. You do not have any disadvantages of course!
    Learn about the benefits of automated trading. After programming trading strategies for a while I started teaching how to program expert advisors for the MT4 (MetaTrader 4) and MT5 (MetaTrader 5). Until now I only did videos in German but now I will start this channel with English videos to reach a larger audience of traders and help them improve their trading. There will be no fake trading on this channel and no lies. I show trading as it is - the good and the bad sides. Stay tuned and subscribe because you don't want to miss ;)
    Instagram: / rene_balke
    Trading in derivative products such as futures, options, CFDs, Forex and certificates involves a considerable risk. These products are not suitable for every investor. Investors could potentially lose all or more of the original investment. If anything, only money that equals personal risk capital and can be lost without jeopardizing financial security or lifestyle should be used. Partially or fully automated trading programs can only be used to support the trader. Past performance is not an indication of future results.

КОМЕНТАРІ • 70

  • @mikelang4853
    @mikelang4853 7 місяців тому +10

    Great video! Love seeing classes, and structures implemented in coding
    “ICT” / “Smart money concepts “ is a worthwhile endeavor to learn and automate, so I really hope this series continues.
    Happy to discuss any questions you may have with it.

  • @Company_N
    @Company_N 7 місяців тому +3

    this is really great rene, i honestly been watching your videos since last year and without your channel i never would have been able to automate my strategy and work at the same time.

    •  7 місяців тому

      Woa thank you!!! Love the feedback

  • @EEMBMinecraft2442
    @EEMBMinecraft2442 7 місяців тому

    Good tutorial, i like how youre using the inlcude classes, makes the code more neat! thanks!

  • @siracidprime7917
    @siracidprime7917 12 днів тому

    I came back to this video Balke, a very poweful statement @31:12
    watcher_status = "I love this video"
    watcher_status = True
    serious_trader = "you should learn programming"
    not_serious_trader = "you are just playing around!"
    if not not_serious_trader:
    print(f"{serious_trader}")
    elif watcher_status == True:
    print(f"{serious_trader}")
    else:
    print("not_serious_trader ")
    😛

  • @oratiletamalah4765
    @oratiletamalah4765 7 місяців тому

    René thank you so much for this, I've been waiting for a video like this for such a long time!

    • @oratiletamalah4765
      @oratiletamalah4765 7 місяців тому

      I'd like to ask just a tiny question if you don't mind? Will there be the same video, but for Metatrader 4? I'm a beginner programmer, and there's a strategy that involves fair value gaps that I'm trying to develop.

    • @mikelang4853
      @mikelang4853 7 місяців тому

      @@oratiletamalah4765 MT4 is pretty much dead. Brokers moving away from it..

  • @mahdimaleki8836
    @mahdimaleki8836 7 місяців тому +1

    I'm not familiar with the indicator making side of mql , but this was really easy to understand thank you.

  • @henryvilladiegometal
    @henryvilladiegometal 7 місяців тому

    Thanks for your videos René!

  • @user-es1lm1kp9w
    @user-es1lm1kp9w 4 місяці тому

    Was ein Ehrenmmann du bist!! Dein Brain ist anders bro... War mein erstes mal auf deinem Channel und ich hab zwar nur Bahnhof verstanden, aber dank deiner Hilfe hab ich das wirklich hinbekommen... Wollte zwar eigentlich nur schnell den code kopieren, aber du hast mich gezwungen eine Nachtschicht durchzuziehen. Noch ein kleines extra feature für einen Alarm trigger wäre auch ein heftiges add on. Auf jeden fall danke vielmals für die Mühe dieses lange Video zu machen und dafür, dass du dein Wissen teilst! Werde ab jetzt deinen content mitverfolgen. Respekt!!

    •  4 місяці тому

      Danke Bro! Viel Spaß mit den anderen Tutorials ;)

  • @vegarroyset
    @vegarroyset Місяць тому

    Thanks, great tutorial 👍

  • @roydekoekkoek388
    @roydekoekkoek388 7 місяців тому

    Hi Renee,
    An incredibly welcome addition to the OOP and classes course. I'm still looking for an extra supplement to complete the circle of understanding.
    What if I want to create a combination of shaped child classes with the CObject and then generate (dynamic) new objects from them instead of just making adjustments? Take, for example:
    If 5 dogs (child classes) emerge in the market with a specific number within certain ranges, I want to place a kennel (square) around these dogs.
    If multiple dogs emerge in other areas, I want to build different (dynamic) kennels.
    Should I work with multiple classes for this, or can it be done in the same class with the CObject function? I hope that you might produce or add something like this to the course or YT someday.

  • @exploringavenues2269
    @exploringavenues2269 6 місяців тому

    Excellent. This video is what I have been looking for. Most videos use current time such as trading MA cross etc but this is using previous candle values which is what I want.
    I followed most and was able to get the code working but did get confused a bit when going back through the array to get the values. Originally I thought the second array was within the first but then realized the first wrote the array and the second used it.
    What would be good for a future video, as a follow on, would be to make an Expert using the array in this indicator. I don't use FVG but more to see how to use arrays for the buys and sells.
    I was originally planning to put the values into a database (I understand SQLite is best for mql5) and get data out with queries but it seems unnecessary then. What are your thoughts on using a file or database instead of array or do you still need to convert to an array anyway? Thanks!

  • @54Trades
    @54Trades 7 місяців тому +8

    next should be orderblocks

  • @oratiletamalah4765
    @oratiletamalah4765 6 місяців тому

    Hi Rene! I've learnt a lot from this video honestly, and I appreciate your content a lot! I just wanted to ask something regarding the 'Alert' function, I tried adding the Alert function within the 'Draw' function so I can be alerted when a new FVG has been created, but it seems I get alerts for every single FVG on the chart as soon as the initialization function begins, so is there a way to overlook the previous FVG's and just start alerting only on the newly created Fair Value Gaps? Pls help🙏🏼

  • @soheilxpell8897
    @soheilxpell8897 7 місяців тому +1

    Ty Mr rene

  • @SirLuke33
    @SirLuke33 6 місяців тому

    HI. Today I did some more tests, or rather attempts. I keep the FVG concept in mind and more or less know the basics. Do you think it makes more sense to use the delete command using low and high or close and open?
    From what I know and as I have seen in some pine codes the rectangle is not truncated or eliminated completely until the price closes beyond and not through the wick. In your opinion or others in the community, does it make more sense to use the wick or the body?
    Thanks to anyone who wants to give their opinion

  • @musicalharmonics9193
    @musicalharmonics9193 Місяць тому

    Thanks

  • @zemhana
    @zemhana 7 місяців тому

    Thank you for helping us to learn how develop strategies on Mt5, but I have one problem after testing the strategy on stratey tester how to download the result on excel sheet. I mean the trade details like entry date and time, win and loss, entry and exit price. Because those will help to analyze data. Yes there is Analysis page on Mt5 but I prefer to get the Raw data. So how i can down load the data. Waiting your opinion.

  • @victormike1075
    @victormike1075 6 місяців тому

    hi rene how do i get to mark swing lows that form inside of a fair value gap?

  • @DaniloBenda
    @DaniloBenda 2 місяці тому

    Oh great!!! But is it possible to remove rectangle if fvg is close?

  • @riazabdus
    @riazabdus 6 місяців тому

    Orderblocks / supply and demand

  • @minnoxdnb
    @minnoxdnb 7 місяців тому

    good tutorial, next one a strategy with using this indicator? :)

    •  7 місяців тому +1

      Yeah I will upload the tutorial for the ict silver bullet next. I will not use the indicator itself but the same concept to find fair value gaps ;)

  • @SirLuke33
    @SirLuke33 7 місяців тому +1

    HI. Like your other videos, this one is no different in terms of quality and explanation.
    I would like to ask for guidance on how to make a change.
    I'm not yet very familiar and good with mql5, not even 4. I know the basics of programming and can understand how it works in a basic way.
    I would like to stretch the rectangle with each update of the bar until it is passed beyond.
    Which way would you recommend?
    thanks so much

    •  7 місяців тому +1

      Thank you

    • @SirLuke33
      @SirLuke33 7 місяців тому

      @ HI. Thanks for the reply. I understand and will take the course in the future. I'm currently saving as much as I can to start at the beginning of the year. My English is a little too basic and I hope to be able to understand as much as possible from the video courses.
      Today I did a lot of testing and changed a parameter inside the if of the second for loop. I should find a way to limit the number of bar in the back because it stretches all the bar in the back to the current one and it's extremely slow

  • @cybergeld3575
    @cybergeld3575 7 місяців тому

    thank you for your work.
    in the line where you define bool isFvgUp shouldnt it be there as following?
    bool isFvgUp = low[i] - high[i+2] > FvgMinPoints * _Point && low[i] - high[i+2] < FvgMaxPoints * _Point;
    because you wrote:
    bool isFvgUp = low[i] - high[i+2] > FvgMinPoints * _Point && high[i+2] - low[i] < FvgMaxPoints * _Point;

  • @thabangpudiyamajane228
    @thabangpudiyamajane228 7 місяців тому

    Hi , can you please help me with fixing 2 errors on my EA code. The errors are 'DEAL_BUY' - undeclared identifier and 'ORDER_BUY' - undeclared identifier?

  • @KEEPITSIMPLEXX
    @KEEPITSIMPLEXX 6 місяців тому

    great video how about a gap indicator can you do that stuff also

    •  6 місяців тому +1

      Sure you can do almost everything with mql5 programming

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

      can you please do a video on gap indicator not fvg but real gaps @

  • @bigrichlegend5163
    @bigrichlegend5163 6 місяців тому

    Will there ever be a MasterClass Christmas Special?

    •  6 місяців тому

      Probably not :D I do not make a lot of promotions

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

    Hey Rene. I can only get the blue rectangles to display. I’ve been over the code so many times comparing to the instructions. I’ve got something wrong but cant pinpoint it. Any thoughts?

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

      Hard to tell without seeing the code. Make sure to compare everything again. There has to be a difference you did not spot yet

    • @ipadeolataiwo6448
      @ipadeolataiwo6448 20 днів тому

      I have same issue
      Still trying to figure it out I hope I do soon
      Thanks for this great tutorial bringing coding plus trading together is surely going to be a bomb I can't wait to take your masterclass soon..
      Thanks once more

  • @TheCryptoGod
    @TheCryptoGod 7 місяців тому

    How can we set a limit order on an FVG?

    •  7 місяців тому

      The CTrade class has a function for placing limit orders.

  • @TheCryptoGod
    @TheCryptoGod 7 місяців тому

    Can't seem to get FVG_DN to draw onto chart? Only FVG_UP is showing. Any advice?

    •  7 місяців тому

      Hard to tell without seeing the code. You should check the video again and make sure you copied everything correctly :)

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

      @ReneBalke I having the same issue and I copied it exactly to the same level of detail. I even watched this video 3 times to see what I missed but can’t seem to find it.

  • @ItsAmill
    @ItsAmill 7 місяців тому

    FVG or liquidity voild

  • @demetriushenok6520
    @demetriushenok6520 7 місяців тому

    Hi Rene,
    I tried following you step by step but i am getting an error, can you please send me the codes?

    • @afsalm4773
      @afsalm4773 4 місяці тому

      Did you get the finish results?
      I also got too much errors

  • @lepinecode4298
    @lepinecode4298 7 місяців тому

    Problem with FVG.time: that's not how FVG is traditionally drawn it should be drawn on the bar before so time[i+1] ;)

    • @lepinecode4298
      @lepinecode4298 7 місяців тому

      Otherwise it's excellent tutorial I know MQL4 but not MQL5

    •  7 місяців тому +1

      You will easily understand mql5 if you can code in mql4 already. It is really similar ;)

    • @lepinecode4298
      @lepinecode4298 6 місяців тому

      @ I'm trying to now have compatible code for both :)

    • @avmsys
      @avmsys 6 місяців тому

      fvg.time = time[i+2] and fvg.draw= time[i+2]
      will do the trick

  • @SP-wj1vy
    @SP-wj1vy 4 місяці тому

    Is it working in Backtest? When I press History - shows nothing

    •  4 місяці тому

      If you use the tester and select this indicator you should be able to use it in the tester yes.

  • @mattdaemon3284
    @mattdaemon3284 Місяць тому

    Where is the code sir?

  • @user-cg1kg4gn3h
    @user-cg1kg4gn3h 4 місяці тому +1

    There are too many FVG , how to choose ?

    •  4 місяці тому

      Bro I do not know :D ask ICT

  • @ayooooooooo
    @ayooooooooo 4 місяці тому

    can you share this code in a github? would be helpful

    •  4 місяці тому

      I deleted it already I am sorry :/

  • @54Trades
    @54Trades 7 місяців тому +2

    next should be orderblocks

    •  7 місяців тому

      Maybe. I am not sure if I will do more ICT stuff in the future. Do these orderblocks follow a strict rule set or is it more like interpretation stuff?

    • @mikelang4853
      @mikelang4853 7 місяців тому

      @ this is a fairly decent explanation of SMC / ICT style trading and rules.
      (There’s more to it to get even better results - news and other fundamentals)
      ua-cam.com/video/afpC431fNsI/v-deo.html
      There’s several types of Order blocks.. (OB) an OB is simply the price point that there is lots of trades (think volume profiles / support & resistance)
      To start with, I’d more focus on the OBs at the extremes (high / low trading structure). Look at the FVGs at those OBs for entry with SL a bit beyond the swing high / low.
      Finding areas of liquidity might be good as well.

    • @mikelang4853
      @mikelang4853 7 місяців тому +1

      Should be able to use what was show in Rene FVG video coupled with this video on OBs to make your own valid OB indicator.
      Pretty much the same stuff, just instead of calculating the FVG you calculate the OB. Then check for if it’s a valid one or not using the linked vid (or any other vid that discusses valid Ob rules)
      ua-cam.com/video/vqPsNCihUlc/v-deo.html

    • @cybergeld3575
      @cybergeld3575 7 місяців тому

      @ there are a some rules (like - the last down candle before an bos of an swing low defines an bearish ob).
      the thing is there are a lot of different obs (google pd-array matrix for more; breaker / mitigation / rejection ) and ict things allow discretionary scope ...

    • @avmsys
      @avmsys 6 місяців тому

      orderblocks on retail level are discretionary IMO. only large institution can surely tell where are these areas as they are the ones making it. for everyone else, it is simply support and resistance levels. OB were rebranded name only like FVG = imbalances.