![Orchard Forex](/img/default-banner.jpg)
- Видео 303
- Просмотров 1 770 308
Orchard Forex
Австралия
Добавлен 7 апр 2014
Use a trailing stop based on recent highs and lows
This video is to set the trailing stop based on recent high and low values. It is based on an earlier video showing a general purpose trailing stop function and this video is all about how to calculate the trailing stop and not how to perform the update. See the earlier video for the update functions.
Links:
Trailing stop functions: ruclips.net/video/dX0TA2HL2XA/видео.html
New Bar function: ruclips.net/video/pDEGO8iwsk0/видео.html
and some much earlier trailing stop videos
Trailing stop methods MT5: ruclips.net/video/Nrs2EKjDrI8/видео.html
Trailing stop methods MT4: ruclips.net/video/lfY2R_ikPO0/видео.html
Expanding trailing stop: ruclips.net/video/B--GDiEEDj4/видео.html
I probably get some kind ...
Links:
Trailing stop functions: ruclips.net/video/dX0TA2HL2XA/видео.html
New Bar function: ruclips.net/video/pDEGO8iwsk0/видео.html
and some much earlier trailing stop videos
Trailing stop methods MT5: ruclips.net/video/Nrs2EKjDrI8/видео.html
Trailing stop methods MT4: ruclips.net/video/lfY2R_ikPO0/видео.html
Expanding trailing stop: ruclips.net/video/B--GDiEEDj4/видео.html
I probably get some kind ...
Просмотров: 423
Видео
How to hide your trailing stop
Просмотров 631День назад
I have some requests for trailing stop tutorials. To save time in those videos I want to fitst cover some utility functions to apply and update trailigns tops and this seems like a good time to show how to hide the trailing stop from your broker (because a lot of people ask about this). There is an earlier series covering several trailing stop methods and this is an update on those plus the hid...
How to calculate risk volumes and stop loss
Просмотров 66114 дней назад
This is an update video. I'm revisiting functions to calculate volume and stop loss based on a risk amount. The code has a slight update and my description may be a little better. Links: Normalise Volumes: ruclips.net/video/m_DBcaxXmZY/видео.html Join the discord group orchardforex.com/discord Looking for a broker? Support the channel by using this link. We receive a commission on your trades f...
Fixing invalid volume errors in MT5 and MT4
Просмотров 54021 день назад
Another useful utility function. Pass in a proposed trading volume to this function and the return value is adjusted for valid volume size and increments for the symbol. I included a very bad piece of code in a bollinger reversal strategy video recently but I did say at the time that it was a hack. This is the correct way to handle volumes. Links: Join the discord group orchardforex.com/discord...
How to detect a new candle starting in your experts
Просмотров 61328 дней назад
As I said earlier I am making a series of short videos describing individual useful functions so that I don't go over the same thing in each video where I use the functions. This is the first because I use it most often. I have covered the IsNewBar() function many times but this includes a modification to handle multi symbol and multi timeframe. You can skip to that using the chapters if you ha...
Bollinger Reversion expert for MT5
Просмотров 808Месяц назад
From a suggested strategy I received this is a complete although open to some improvement expert using reversion from the Bollinger Bands. This code uses a number of standard functions that I normally keep in a library. I didn't spend a lot of time discussing the standard functions to keep the video to a reasonable length. I plan a series of short videos where I go over these utility functions ...
Grid trader 11.2 - Partial average close
Просмотров 873Месяц назад
Taking the ideas of average close and increasing volume size and applying 2 variations to those, in the first part applying the volume increase without average close - with a surprising result, and in the second part applying a partial average close. If you have come into this video without the earlier code you don't need to see every video in the series to get to the starting point. Some go of...
Grid trader 11.1 - Average close plus martingale
Просмотров 1,1 тыс.Месяц назад
The second part of the suggestion for 2.020, close trades at an average profit and increase trade size as there are more levels. The code here increases trade size by a linear increment as each group of n trades are opened. If you have come into this video without the earlier code you don't need to see every video in the series to get to the starting point. Some go off into branches, Here is a ...
Grid trader 11 - Close at average profit
Просмотров 802Месяц назад
This is the first part of a new suggestion, to introduce close on average profit and increasing size as grid levels increase. This just covers closing at average profit. If you have come into this video without the earlier code you don't need to see every video in the series to get to the starting point. Some go off into branches, Here is a list to follow to get to the starting code used in thi...
Grid trader 10.1 - adding RSI range restrictions
Просмотров 1,1 тыс.2 месяца назад
Following the last 2 videos which used manually set price ranges and trend indicator values to limit trades this video shows the code to use limits based on oscillator type indicators. The indicator used here is RSI but it is easy to adapt. This video starts with the code from part 10. If you have come into this video without the earlier code you don't need to see every video in the series to g...
Grid trading part 10 - trend indicator range
Просмотров 7832 месяца назад
Following the last video which used manually set price ranges to limit trades this video shows the code to use ranges based on trend type indicators. The indicator used here is moving average but it is easy to adapt. The second part updates the code for compatibility with MT4 and MT5 If you have come into this video without the earlier code you don't need to see every video in the series to get...
Grid trading part 9 - manual range limits
Просмотров 7792 месяца назад
This variation introduces manually set ranges to the grid trader to avoid buying or selling at the top and bottom of the market. I also take the opportunity to make some general code improvements. If you have come into this video without the earlier code you don't need to see every video in the series to get to the starting point. Some go off into branches, Here is a list to follow to get to th...
Grid trading part 8 - profit by symbol and magic
Просмотров 6992 месяца назад
Finishing the variations on a grid trader that closes all trades on profit targets. With this code the profit is tracked for this expert only and ignores any other trading If you have come into this video without the earlier code you don't need to see every video in the series to get to the starting point. Some go off into branches, Here is a list to follow to get to the starting code used in t...
Grid Trading part 7 - Saving equity
Просмотров 8372 месяца назад
The last update to the grid trader added closing all trades on equity targets. This requires storing the starting equity which can be a problem if the terminal must be restarted. This video shows using gloabl variables to store the starting equity. There is also a situation where you may be running other experts or manually trading on the account and then just comparing equity movement is not s...
Grid Trader 6 - Equity Close
Просмотров 9682 месяца назад
This update is based on a suggestion to set equity profit targets and close all trades when the target is met. The result can reduce the total amount and time that trades are held open and save on swap but I can't determine if this offsets the reduced profit. Links: Playlist for the series: studio.ruclips.net/user/playlistPL0iqkWGt8zzlxmb2i5Afoc_BEurr3Qa9g/edit Looking for a broker? Support the...
Grid trading 3 - filter on timeframe movement
Просмотров 1,3 тыс.3 месяца назад
Grid trading 3 - filter on timeframe movement
Community Grid Trader part 2 - MQL4
Просмотров 1,1 тыс.3 месяца назад
Community Grid Trader part 2 - MQL4
Community input grid trader expert
Просмотров 2,8 тыс.3 месяца назад
Community input grid trader expert
How to Code an Expert Advisor Using an Indicator - Simple RSI Overbought - for MT5
Просмотров 3,5 тыс.Год назад
How to Code an Expert Advisor Using an Indicator - Simple RSI Overbought - for MT5
How to Code an Expert Advisor Using an Indicator - Simple RSI Overbought - for MT4
Просмотров 2 тыс.Год назад
How to Code an Expert Advisor Using an Indicator - Simple RSI Overbought - for MT4
Using an indicator to set chart background colour
Просмотров 1,3 тыс.Год назад
Using an indicator to set chart background colour
See this BEFORE you optimize in Metatrader
Просмотров 2,7 тыс.Год назад
See this BEFORE you optimize in Metatrader
EA for Beginners, set and forget breakout, code, optimisation, testing part 8/8
Просмотров 4,9 тыс.Год назад
EA for Beginners, set and forget breakout, code, optimisation, testing part 8/8
EA for Beginners, set and forget breakout, code, optimisation, testing part 7/8
Просмотров 3,4 тыс.Год назад
EA for Beginners, set and forget breakout, code, optimisation, testing part 7/8
EA for Beginners, set and forget breakout, code, optimisation, testing part 6/8
Просмотров 4 тыс.Год назад
EA for Beginners, set and forget breakout, code, optimisation, testing part 6/8
you so confusing man, why didn't you uninstall M5 from the beginning? and where does it say M4 in you acc, BS Vid , you both ACC are M5
I think you are the confused one. There is no need to uninstall MT5 and this is not about creating MT4 from MT5, it is about creating 2 installations of MT5 or 2 installations of MT4
Awesome
Thank you
Dear Orchard Forex, Wow I recently found your channel and the detail and pace of your videos are exemplary. This is very similar to something I was in the process of figuring out how to do and your end result is very fine indeed. However regardless of what I do I cant seem to get this to make any positive profits when backtesting it will do positive trades but no luck over long testing periods with net profit. I added a trailing stop instead of a take profit and got slightly better results could you please do a video where you demonstrate how this could be used in a profitable strategy? Thanks more requests to come as your delivery is fantastic and a lot of other tutorial channels are charlatans
In the long term you should be prepared to review experts regularly, adjust settings and even turn them on and off as market conditions change.
Excellent 👌
Thanks a lot 😊
I have some trading view indicator, can you conver in mt4 indicater pls. Can I get mail id or mobile number
I strongly oppose suck kind of strtrgy. 9.9 out of 10 time you will lose your own account. This is insane.
People seem to like it though. Anyway, all I do is show how.
@@OrchardForex But a professional you shall not promote such kind of strategy, because you never can be a successful trader with this kind of mind set.
You have an honest aura about you unlike so many other trading videos where arrogant people talk bs. Thank you for your common sense straight talking explanation, I look forward to seeing your other vids.
Thank you
Converting this example to use ATR bands isn't a big leap either. Great video!
Yes! Thank you!
Hi boss, r u going to upload this code??? thanks :-)
It really is only a few additional lines of code and I find when I make code like this available to download the view time drops to zero. View time pays the costs to make the videos.
@@OrchardForex true...no problem
@@OrchardForex I never new that. Glad you pointed it out
bro i am trying very hard since last full week to make a pine indicator to mql5 but i fail value are different help me please pinescrript indicator name :- SwingArm ATR Trend Indicator (vsnfnd) 4829
Hi, have you ever tested Greg Seckes T-Wave Strategy at all please?
No, I haven't. Actually, this is the first time I've heard of it.
So the more you lose the more the spread gets wide?
No. The spread is the difference between bid and ask. The more the spread widens the more you are losing as soon as you place the trade
@@OrchardForex oooooooooh so the more you lose the more the more it starts spreading wider
Hello sir don't show buy and sell single in this indicator
Showing cute little arrows or other indicators at the buy and sell points are just gimmicks to make some indicators look more appealing. The offer not added value over just observing the point where the trend line moves from above to below.
Thanks heaps @Arthur for the great video. Just a question please, any way we can loop through and draw all session boxes on all the previous bars (or x number of bars) during initialization of the indicator? Thanks heaps. Much appreciated.
In the OnInit function you could add a loop, going back day by day for a number of days, calling the function to draw the range for that day.
@@OrchardForex Thanks heaps Arthur for the response. A small sample code of a loop would be much appreciated as I am not very expert yet. Still learning by watching your videos. Thanks heaps once again. :)
@@OrchardForex So I am able to do it myself Arthur. I added a following variable as input: input int InpNumberOfDays = 200; // Loop through x number of days And then I took the ShiftNow and DrawRange functions inside the following loop: // Loop through the number of days specified by the input for(int i = 0; i < InpNumberOfDays; i++) { datetime shiftedTime = now - i * 86400; // Subtract i days (86400 seconds in a day) ShiftTime(shiftedTime); // Move to the specific time DrawRange(); // Draw range for the adjusted time } Just sharing as if anyone else might also need it. Thanks heaps for great stuff Arthur. You are a blessing :)
this system doesn't need hedging to work. actually, hedging just increases commissions and spread losses.
This is written to confrorm to the original specification. in practice if you are going to immediately open a new grid then don't close the trade at the current level.
@OrchardForex Exactly. And you don't even have to open the first hedge, when you start the code you can set two opposite limit orders in the opposite direction, two grid steps apart.
Correction: 11:32 I used cut and paste to copy the line for buy close price to the sell close price but forgot. Sell close price is the ASK, not BID.
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.
Thank you so much Sir Orchard. I learned a lot from you. ❤🎉
Thank you
Excellent, stopped me tearing out my hair and got the code working that I need thank you.
Glad it helped
I don't mean to nit pick, but the sell close price is symbol ask, not symbol bid.
Yes, looks like I didn't check well enough when I used cut and paste in the update function. Good pick up.
Thank you for sharing this incredible information
Glad it was helpful!
Hi Arthur, how are you doing? Can you suggest what changes need to be done in code, if one wants liner regression line of 3 or 5 Swing High and Swing Low points. In this case bars are not sequential like from 1 to 50 bars. They are say swingA index=10 swingB index=15 swingC index 25. How can I calculate their slope and rSquared values and projection at index1 (previous completed bar) Thanks in advance. Your tutorials are always handy for some special coding I am working for Price Action trading.
You would form an array with the values you want, which would be those specific bars, and calculate linear regression on the array. You would also need to decide how you want to handle the varying time gap between those points. I would suggest filling the gap with a simple linear interpolation between the observed values.
@@OrchardForex Thanks Arthur. Will try it out. I saw a tutorials on Linear Regression between swing points and it was using 'linregress' function in Python without generating values for intermediate bars. I was under impression that MQL5 could handle this way too.
thanks so much!! i have been looking a while for guidance on this question
Glad it was helpful!
Tracking trailing stops in GVs is no small task! That said, it's sad we even need to hide stops from our own brokers.
Well you have the function now. I don't think you really need to worry about brokers trying to cheat you on the stop loss but that's your choice.
What's the benefit to hide it???
I'm also curious of the benefit
Brokers hunt stops. You are who they trade against.
@@donbangert any other reason to hide them? I dont really believe brokers can manipulate the price that much unless it was already close to your stop and with around 90% of traders losing money they can afford to have a few losses from the handful of profitable traders
I think there is no benefit and I don't bother with my own trading but a lot of people think the broker will try to manipulate pricing to hit the stop loss if they know where it is. If your broker is so desperate that they need the few dollars from your account then it might be time for a new broker. Try my link in the description. They trade over 40,000,000,000 each month so I don't think they need to cheat for your small trades.
Agreed. Also it's a good idea have a sl placed, even if u trailing. Your VPS can drop, internet failure, etc, so if your sl is placed you're kind of safe.
Hope it want over cost
Sir pls help me code my strategy I am willing to pay sir..my strategy consist of 4 indicators and I don't have non source code
@popovichrush Hi, I can help you with your strategy to code it
Sir, For grid type where you buy & sell equal volume at each grid level,what pip distance do you suggest for different currency pairs & cross currencies.Say for a pair daily ATR is 100 pips,then what should be grid distance--50 or 70 pips?Draw down has to be kept under control.And how about grid trading for indices--as indices are more mean reverting after all.Any robots?
That would be making trading recommendations and I don't do that.
Thanks
Welcome
Thanks for the beautiful class! I'm trying to make an EA with entries and exits based on Renko charts, but without success! Mr. Could you give a tip on how to do this? I believe that with this video and a few tips, I will be able to make this EA work! Thank you in advance. I already subscribed to your channel!
These may help ruclips.net/video/QYCKf6v9l0c/видео.html ruclips.net/video/n9gFpbq7zs8/видео.html
@@OrchardForex Thank you for your attention and feedback! I will watch the recommended videos! Good work and may God bless you greatly!
"Your kindness and generosity never cease to amaze me" Thank You Sir
Thank you
Hello, thanks for this video, it’s a much tidier solution than what I was using! I’m finding that lot sizes when using currencies with the Yen are about 100 times too big! Do I just divide my risk% by 100? Or is there a better way around this issue? Thanks for your videos, I’ve learnt a lot from them
If you are getting volumes like that thenh you haven't copied the code correctly. Maybe review where I set the example price delta and the comment there double stopLossDelta = 0.00567; // 567 points because I'm testing with a 5 digit symbol
Yes, I’ve checked - I think it may be a problem with my provider, something to do with their margin levels based on 100 Yen, not 1 Yen….i think! Thanks anyway, fantastic video
I can't remember which video, but I recall you showing a simple way to make the input content display as "*****" instead of the actual info. I would like to have a password as part of the input, but don't want to show the password on the screen. Is there a simple way to mask the input?
I don't think that was me, and I don't think there is a way to hide any standard inputs. You would have to use something like an API to open a windows (or other) dialog box
Amazing, best content thank you
Thank you
rapaz, é isso que sempre procurei, embora não entendo o que você fala no vídeo, mas entendo o que você quer dizer no vídeo, eu gostaria muito de adquirir esse robô, meu sobro é ter uma mesa proprietária de 100k, até hoje procuro um trader que possa me ajudar, pois eu sei operar, mas não tenho a grana pra fazer o dinheiro, porque deposito valores baixo, e logo tenho que sacar para pagar as dívidas, por favor, se vocÇe ler isso, me ajude a alcansar meu objetivo, obrigado e sucesso pra você..e a todos aqui nesse canal..
Having enough funds to trade properly is always a challenge. You could try starting with a cent account like robofx or a prop account like orchardforex.com/xrading
If you have a strategy with a positive expectation, simply take your losses and keep trading. This is the least risky and most profitable strategy. With zone recovery, not only is there a significant risk of busting your account - you're also tying up a lot of your capital attempting to head off a single loss over a period when you might have made a number of wins. So there's high risk and high opportunity cost. Not an attractive combination!
nice one can you convert the pine script to mt5 code? i have the code that I modified?
Converting pine script is more difficult than it is worth for me.
You will run out of leverage and blow your account.
Eventually that is almost inevitable.
int CountDecimalPlaces(double number) { // 100 as maximum length of number for(int i = 0; i < 100; i++) { double pwr = MathPow(10, i); if(MathRound(number * pwr) / pwr == number) return(i); } return(-1); }
OK, but this is not the correct way to round off volumes. They don't just round to a number of decimals.
Hi can u write a simple indicator for drawing in mt5, i need 2 trend line but in horizontal, for red and blue colour, and 2 rectangle
Dear Arthur, again this was a very helpful video, thank you! I would like to see something similar about the margin calculation and the calculation of the stop-out and margin-call distance.
Very clear as in, like a crystal clear. You sir orchard is a wholesome guru. Thank you for sharing your good knowledge. Just want to clarify sir, the volume is the input lotsize, is that correct? Just wanna ask, What if given a Risk of .05 percent of account balance or equity and With the given stoploss high or low either way. In order To get the exact lotsize, how to set a code for this? Again, Lots of thanks to you sir and blessings.
Volume is lot size. Positive or negative movement the calculation is the same but you need to use a positive price movement. If there is going to be a big price movement remember that the value of a single tick can vary over the range, but this should be close enough. For an exact volume maybe see this ruclips.net/video/m_DBcaxXmZY/видео.html
@@OrchardForex thank you so much sir for sharing. I watched.the video and now i know. I learned a lot from you. Hope you can make a video for a candle pattern formation once detected it will create a box if signal triggered and will place pending orders buy and sell limit where opposite side serves as SL without TP but when price in pips (ex. 50 or so. Or in profits), adjust trail stop will activate. Hope you can make one. Thank you again sir. More pip powers.
The risk function was what I have been thinking of to do since I add to trades in profit and need to be careful with on how much.. so is there an easy way to get the sum of all open trades? Thanks
Only by looping through all open trades.
You are amazing richard ❤
Thank you
If I wanted to place multiple Pending Orders (instead of only 1) equally spaced from each other, how would I do that?
You might consider creating an array of objects each containing the OCO pair.
Elegant solution. Thank you for sharing it. It's much appreciated.
Thank you
Best mql tutorials on internet
Thank you
Sensational mastery as usual! Wow
Many thanks
thanks for the video... hope we can see how read custom indicator values
Hello sir... Can i get your email address please?