Dear Orchar Forex, thanks for this video too. Only a very small and not too important comment: #property script_show_inputs is already working in mql4 too.
Thanks for this video Sir, I would like to ask if we wanted to code so that if an X amount of bars failed to cross the trendline how would I be able to implement that? I apologize if my question isn't clear.
do u have a copy of the code, I started typing it out and managed to compile the 1st bit ( albeit with many typo's etc) so would be helpful if we could downlaod the code -thanks in advance
Grat video, many thanks for your work. I have a problem and maybe you can help me. I tray in part two simulate with dre previous draw line bur diring 3 days I have not been able to see the line durin simulation. What I'm doing wrong? When begin simulation it opens a new window but the line is not there. If need I can send you a video. Many thanks !!
SR lines depend on finding enough zig zag points at the same level. If you are using strategy tester there may not be any older or enough zig zag points. Add the zig zag indicator and see how many points have been drawn
Hi Orchard thanks for your tutorial it is great work I write mqh file in mt4 but it gives me 13 errors, is there any additional file I need to use. thanks again
@@OrchardForex I draw the trendline as usual on my chart and use its name in the input. I also tried drawing it on the chart which is opened by clicking "Open Chart" on the strategy tester. A new chart is also opened every time I start running the test and there is no trendline on the chart that is opened when I run it in visual mode.
@@OrchardForex see when using the iCustom function when interpreting the buffer number for the indicator? Instead of using an actual number for the buffer, I used the statement 'true'. Because the indicator has no buffers. Did I do it right? I got no errors or warnings, and it's working as it should.
Is there a way to get the max level of a sub window indicator so I can use that number within an indicator to generate signals based on the sub window levels?
Thanks a lot for your great work! I tried to do the same code at MT4, Complier yells at me when declaring the function outside using the scope opertor (ENUM_OFX_TREND_BREAK CTrendLevel::GetBreak(int index)) It tells me: "ENUM_OFX_TREND_BREAK, identifier already used" I don't understand why it seems the declaration of the enum above as a first usage and fail to build here, any idea?
one of my setups I trade is a double bottom on the other side of a trend line break. curious if you already have a tutorial on that which I can combine with this to practice a bit more mql coding? thx in advance and these videos are really good value. instant subscribe haha
No I don't have anything about double bottoms or double tops. There are several videos on detecting peaks that might help, check the channel link to see everything we have.
@@OrchardForex Thank you. ObjectName has individuality, Is there a way to retrieve objects going by only a part of the ObjectName. For example, indicators may draw objects with ObjectName Low1 for the 1st object, Low2 for the 2nd object and Low3 for the 3rd etc.... Is there a way of identifying only the "Low" part of the ObjectName? Thank you. Or maybe a way of using ObjectDescription. Because that can be repeated.
Thank you for the Lesson it's very helpful. Can the code be modified so that when the candles comes from above and touches the Trendline a buy order is executed and candles coming from below a sell is executed.
Hello, Thank you for these great tutorials and all other ones also, have helped me a lot in my trading, especially this one, I use it as an alert when price breakthrough support/resistance/trendlines, so as a beginner in programming, I've tried to tweak it to alert on multiple lines within the same chart, but failed miserably. Can you please guide me? I'm currently using it in multiple charts to alert on multiple lines.
Sir, Thank's for this Tutorial, I want to trade Higher TrendLine and Lower Trendline. Here we can see that when Price crosses TrendLine Prices is already High, can we make it when Price Breakup LowerTrendline we can Buy with Prev candle Low + some Pips and will be ready for sell at near Higher Trendline or cross. if You can Please Make One video Tutorial for that. And Further Please Put the Link Of this Video for Download this Source Code File. Thanks
I only ran the demonstration for breaking above but the code already has conditions for breaking below, The code triggers any time the price moves across the trend line in either direction. So far I haven't made this code available for download.
When trading trendline you trade after the retest. Enter at a close of the bullish candle that cancel out the sell.. or a break of the pullback structure.
Hi Orchard Forex, I greatly appreciate your videos. I have switched from TradingView to MT4. I have noticed there is a discrepancy between OHLC values and Volume when comparing both platforms. I understand that the tick data comes from different sources. Is there any way to change the live feed source in MT4? Maybe by creating an offline chart with a custom source?
If you can find another source there is no reason why you can't feed that into a history file and use the history file as an offline but you will still have to trade at the broker's price so I don't see the point.
Hey your link to the trendline break indicator for mt5 brings me to ic markets. .. can you Post the mt5 trendline break indicator as Dropbox or Google drive link. Awesome content Would be nice Best regards ben
Hey man Nice video ...i have a question ...How we can open Multiple Real Account with Different broker and Also with the same Broker ... And All Trade Just with one click without CopyTrading ... One master Acc Open trade And That trade also open with Different Account With one click ... Please
You can add as many accounts from as many brokers as you like to a single MT4 or MT5 (but I don't recommend it) but you can only have one open at a time, Copy trading would be the best option to trade multiple accounts at one time.
Thanks for these videos - amazing work! When I compile the indicator, I get no errors or warnings, but then try to run it in the Strategy Tester as you do, but it fails due to "Invalid pointer access" and points to the line ENUM_OFX_TREND_BREAK brk = TrendLevel.GetBreak(1); //Did the closed bar break I can't for the life of me spot where I've gone wrong - any help would be appreciated!
You are a Champion, exactly what I need for an EA I am working on.
You are amazing that you provide this free content. I WAS WONDERING IF YOU WOULD WRITE AN RSI DIVERGENCE CODE FOR MT4
Dear Orchar Forex, thanks for this video too. Only a very small and not too important comment: #property script_show_inputs is already working in mql4 too.
Thank you. I hadn't noticed that one.
Thank you for the great code!!
This is exactly the code i needed!!!
Thanks for this video Sir, I would like to ask if we wanted to code so that if an X amount of bars failed to cross the trendline how would I be able to implement that? I apologize if my question isn't clear.
You would have to loop through that number of bars and compare high/low to the trend value at each bar.
do u have a copy of the code, I started typing it out and managed to compile the 1st bit ( albeit with many typo's etc) so would be helpful if we could downlaod the code -thanks in advance
1:40 min there about that huge candle at the trendline. Divergence occurs there ?
It's only a 1 hour chart and that would have been a weekend price gap.
What should I change, if I want to this exact ea, but to buy exactly when it crosses the line, without the confirmation ?
Look for the first tick with price over the line.
@@OrchardForex Thank you very much !
Grat video, many thanks for your work. I have a problem and maybe you can help me. I tray in part two simulate with dre previous draw line bur diring 3 days I have not been able to see the line durin simulation. What I'm doing wrong? When begin simulation it opens a new window but the line is not there. If need I can send you a video. Many thanks !!
SR lines depend on finding enough zig zag points at the same level. If you are using strategy tester there may not be any older or enough zig zag points. Add the zig zag indicator and see how many points have been drawn
Many thanks for your feedback. !!
Thanks for this video. How did you load the Trend line ( yellow line ) to visual Tester?
When I try to test the indicator, I do not see my Trend line.
Draw the trend line first on a template. See ruclips.net/video/vfBDy52FZyM/видео.html
Hi Orchard thanks for your tutorial it is great work
I write mqh file in mt4 but it gives me 13 errors, is there any additional file I need to use. thanks again
You need the expert mq4 file and the trendlevel mqh file. If you take time to read the error messages they will tell you if you are missing any files.
Greetings Sir (would you mind creating another tutorial ,explaining how to draw Trendline per every 10-100 bars_)
Do you mean a line to find the trend over a specified number of bars?
@@OrchardForex yes sir.
Hi, thanks for sharing this! However, the trendline that I draw is missing when I run the strategy tester. Do you know any possible reason for this?
Yes. How are you drawing the trend line on the strategy tester?
@@OrchardForex I draw the trendline as usual on my chart and use its name in the input. I also tried drawing it on the chart which is opened by clicking "Open Chart" on the strategy tester.
A new chart is also opened every time I start running the test and there is no trendline on the chart that is opened when I run it in visual mode.
Thanks for this amazing video! I want to be able to draw more than one Trend Line and have the Expert check each trend line. What should I do?
Any line you draw on the chart is an object and has a name, you just have to search the objects.
@@OrchardForex Thank you
In terms of the indicator since it doesn't use any buffers, how would one use it with the iCustom function?
@@oratiletamalah4765 see 2:17
@@OrchardForex see when using the iCustom function when interpreting the buffer number for the indicator? Instead of using an actual number for the buffer, I used the statement 'true'. Because the indicator has no buffers. Did I do it right? I got no errors or warnings, and it's working as it should.
Is there a way to get the max level of a sub window indicator so I can use that number within an indicator to generate signals based on the sub window levels?
excellent
thanks for sharing
Thanks a lot for your great work!
I tried to do the same code at MT4, Complier yells at me when declaring the function outside using the scope opertor (ENUM_OFX_TREND_BREAK CTrendLevel::GetBreak(int index))
It tells me: "ENUM_OFX_TREND_BREAK, identifier already used"
I don't understand why it seems the declaration of the enum above as a first usage and fail to build here, any idea?
one of my setups I trade is a double bottom on the other side of a trend line break. curious if you already have a tutorial on that which I can combine with this to practice a bit more mql coding? thx in advance and these videos are really good value. instant subscribe haha
by double bottom I mean a W in price making higher lows for example
No I don't have anything about double bottoms or double tops. There are several videos on detecting peaks that might help, check the channel link to see everything we have.
Will do thank you
Thank you again!!! Great coding.... Is there a way to get the expert to rename the trendline rather than stop trading? Thank you again.
Try using ObjectSetString with argument OBJPROP_NAME
@@OrchardForex Thank you. I will try this, this coming week end....
@@OrchardForex Thank you. ObjectName has individuality, Is there a way to retrieve objects going by only a part of the ObjectName. For example, indicators may draw objects with ObjectName Low1 for the 1st object, Low2 for the 2nd object and Low3 for the 3rd etc.... Is there a way of identifying only the "Low" part of the ObjectName?
Thank you.
Or maybe a way of using ObjectDescription. Because that can be repeated.
@@jglazebrook8930 Just use substring compare
Thank you for the Lesson it's very helpful. Can the code be modified so that when the candles comes from above and touches the Trendline a buy order is executed and candles coming from below a sell is executed.
Fantastic!
Glad you like it!
Hello, Thank you for these great tutorials and all other ones also, have helped me a lot in my trading, especially this one, I use it as an alert when price breakthrough support/resistance/trendlines, so as a beginner in programming, I've tried to tweak it to alert on multiple lines within the same chart, but failed miserably. Can you please guide me? I'm currently using it in multiple charts to alert on multiple lines.
I found a way, maybe not practical but worked for me, I duplicated the function, and duplicated a separte class file
Thanks a ton!
Sir, Thank's for this Tutorial, I want to trade Higher TrendLine and Lower Trendline. Here we can see that when Price crosses TrendLine Prices is already High, can we make it when Price Breakup LowerTrendline we can Buy with Prev candle Low + some Pips and will be ready for sell at near Higher Trendline or cross.
if You can Please Make One video Tutorial for that. And Further Please Put the Link Of this Video for Download this Source Code File. Thanks
I only ran the demonstration for breaking above but the code already has conditions for breaking below, The code triggers any time the price moves across the trend line in either direction. So far I haven't made this code available for download.
When trading trendline you trade after the retest. Enter at a close of the bullish candle that cancel out the sell.. or a break of the pullback structure.
Hi Orchard Forex, I greatly appreciate your videos. I have switched from TradingView to MT4. I have noticed there is a discrepancy between OHLC values and Volume when comparing both platforms. I understand that the tick data comes from different sources. Is there any way to change the live feed source in MT4? Maybe by creating an offline chart with a custom source?
If you can find another source there is no reason why you can't feed that into a history file and use the history file as an offline but you will still have to trade at the broker's price so I don't see the point.
Orchard Forex I see what you are saying, thank you
Hey your link to the trendline break indicator for mt5 brings me to ic markets. .. can you Post the mt5 trendline break indicator as Dropbox or Google drive link.
Awesome content
Would be nice
Best regards ben
There is no link to download the code for this.
Good morning sir , like your works
Pls can you code me an Ea? I want to code my trading system into an Ea .
Can you please?
Hey man Nice video ...i have a question ...How we can open Multiple Real Account with Different broker and Also with the same Broker ... And All Trade Just with one click without CopyTrading ... One master Acc Open trade And That trade also open with Different Account With one click ... Please
You can add as many accounts from as many brokers as you like to a single MT4 or MT5 (but I don't recommend it) but you can only have one open at a time, Copy trading would be the best option to trade multiple accounts at one time.
where we get this script
you got it? because I need it too
Thanks for these videos - amazing work! When I compile the indicator, I get no errors or warnings, but then try to run it in the Strategy Tester as you do, but it fails due to "Invalid pointer access" and points to the line
ENUM_OFX_TREND_BREAK brk = TrendLevel.GetBreak(1); //Did the closed bar break
I can't for the life of me spot where I've gone wrong - any help would be appreciated!
Sounds like TrendLevel has not been created as an object yet.
@@OrchardForex Thank you!