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 - Розваги
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.
Brilliant vid. Excellent content. Keep it coming please !
Thanks, will do!
Thank you for sharing this 👏
My pleasure 😊
The best MQL4/MQL5 Channel in UA-cam. 😊
Thank you
This is great! Thanks for taking the time to explain the differences between MT5 and MT4 🙂👍
Glad it was helpful!
@@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 ?
@@thangnguyen3d Pending orders also have slippage.
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;
}
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.
Just download it form the web page and compare.
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?
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
@@OrchardForex Thanks a lot for your kind help by providing the link. Best Regards
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.
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?
thank u master... do u suggest to use MT4 or MT5? plz guide. thank u indeed
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?
@@OrchardForex thank you for responding
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
You just want martingale. I can't help you in comments with custom development.
@@OrchardForex any way thank you sir great content
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.
It is a series the code is not complete.
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
You spent 3 hours typing when you could've saved 3 hours and downloaded the source code on his website linked in the description 😂
@@addICTed_to_USD If you just download the code you learn nothing.
Abosolutely love your videos! Where can I get the source code?
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.
In the description, go to the web page
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?
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.
@@OrchardForex Thank you!
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.
I also explained it in #1
ありがとう 先生
What is the EA in the outro?
It is a backtest of one of my grid trading experts.
@OrchardForex can you share the ea for that or the tutorial for it please?
@@OrchardForex I would love to see the code for that EA as well.
@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?