I am in Framework_2.04. I am following your tutorial and proud of myself for not having any error. Thank you so much. Please don't be tired of teaching and posting. All the best!
@@OrchardForex sir please send me.ur gmail.so that i.can.send.u my project,,,actually if i run this with only MA Crossovers like in the video,it runs successfully but when,,i tried this limited trade EA with trend combination ,,there is problem.....
@@wajahatkhan4010 Use our web contact form, but with free advice if the problem takes more than a few minutes you may not get a reply. orchardforex.com/contact-us/
@@wajahatkhan4010 Did you ever resolve this? I think it may be because the SignalCombination class isn't checking for SIGNAL_BOTH in the signals. for example SIGNAL_BOTH will never == mEntrySignal or mEntrySignal and the signal will always result in SIGNAL_NONE
Thanks for all these videos. It is tough to find such a detailed tutorial on RUclips and, best of all, for free. It is so helpful that I watch it repeatedly for some videos to custom the coding for my use. I have one question about this video, how can I make the trade limit variable that can I change in the tester? Currently, the only way I amend it is in the coding itself.
Hello Richard, What is wrong with this ontick() code lines? It is making multiple trades even though I specified the condition. When I compile it gives no error. { if(Close[1] > iMA(Symbol(),0,10,1,1,PRICE_CLOSE,0) && Close[2] < iMA(Symbol(),0,10,1,1,PRICE_LOW,0)) {
So I did everything and I didn't have any errors but when i run it on metatrader 4 nothing shows up in results and no trades where taken. i am on Framework_2.04. Do you by chance know why it would be doing that. Thanks
This video is only about preventing multiple trades, it is not about making trades. The idea is to take the technique from here and add it to your existing expert if needed.
@@OrchardForex Is your Crossover video have making trades. I am just trying to recreate the demonstration you have at the end of this video but i'm just so lost in the sauce right now. What videos do you recommend to watch to do that and that you have and what order. I really appreciate you responding I have been lost in the sauce for like three days now
@@collinowen2535 Try this as a starter for MA cross. ruclips.net/video/wlvMHOLYJXw/видео.html MA Cross is very simple and not really a good strategy. I use it as a base to demonstrate other code only because it is so simple and easy to adapt.
Did you resolve this? I think it is because the SignalCombination class isn't taking into consideration SIGNAL_BOTH so when it finds a signal with SIGNAL_BOTH, it sets mEntrySignal to SIGNAL_NONE as it doesn't match any of the other signals
hey so i ended up being able to build working eas with the tutorials but how do you optimize the ea afterwards? nothing shows if i try to run it in slow complete algo
@@OrchardForex so when i would try to test in the slow complete algo with different inputs in the mt5 and it would instantly be "done" and there's no results in the result tab. but I am able to backtest other eas that i did not create.
how would you code something like rsi divergence or macd divergence if that's even possible and more specific request would be if ma for example in the 1hr crossed and the rsi is above a certain level the bot would enter the trade on a RSI divergence on a lower timeframe like 15 min, and exit or reverse the trade bullish rsi divergence occurs on a specific tf.
For divergence or convergence first just create a class that gives a trend for the indicators, then a class that compares the trends of 2 indicator classes.
i actually dont quite understand. i am pretty new to the expert advisors. could you let me know what you mean by trend for indicators? can't find anything when i google that but indicators for trends
I am in Framework_2.04. I am following your tutorial and proud of myself for not having any error. Thank you so much. Please don't be tired of teaching and posting. All the best!
If all goes well I have a new framework coming next year.
@@OrchardForex Wishing you and your family a blessed Christmas and Happy New Year!
Works perfect with trend combination. Thank you for the all the time and effort you put in to educate us.
My pleasure!
@@OrchardForex sir please send me.ur gmail.so that i.can.send.u my project,,,actually if i run this with only MA Crossovers like in the video,it runs successfully but when,,i tried this limited trade EA with trend combination ,,there is problem.....
@@wajahatkhan4010 Use our web contact form, but with free advice if the problem takes more than a few minutes you may not get a reply. orchardforex.com/contact-us/
@@wajahatkhan4010 Did you ever resolve this? I think it may be because the SignalCombination class isn't checking for SIGNAL_BOTH in the signals. for example SIGNAL_BOTH will never == mEntrySignal or mEntrySignal and the signal will always result in SIGNAL_NONE
Thanks for all these videos. It is tough to find such a detailed tutorial on RUclips and, best of all, for free. It is so helpful that I watch it repeatedly for some videos to custom the coding for my use. I have one question about this video, how can I make the trade limit variable that can I change in the tester? Currently, the only way I amend it is in the coding itself.
Just add an input and compare that to the count of existing trades.
Hello Richard, What is wrong with this ontick() code lines? It is making multiple trades even though I specified the condition. When I compile it gives no error.
{
if(Close[1] > iMA(Symbol(),0,10,1,1,PRICE_CLOSE,0) && Close[2] < iMA(Symbol(),0,10,1,1,PRICE_LOW,0))
{
OrderSelect(0,SELECT_BY_POS);
OrderClose(OrderTicket(),0.1,Bid,100,clrWhite);
OrderSend(Symbol(),OP_BUY,0.1,Ask,100,0,0,NULL,0,0,clrForestGreen);
}
if(Close[1] < iMA(Symbol(),0,10,1,1,PRICE_CLOSE,0)&& Close[2] > iMA(Symbol(),0,10,1,1,PRICE_HIGH,0))
{
OrderSelect(0,SELECT_BY_POS);
OrderClose(OrderTicket(),0.1,Ask,100,clrWhite);
OrderSend(Symbol(),OP_SELL,0.1,Bid,100,0,0,NULL,0,0,clrForestGreen);
}
I don't see anything here to prevent this from trading on every tick once the condition is met.
@@OrchardForex Thanks. I thought the candle ref [2] prevents it.
@@OrchardForex Does your code "How to run MQL4 code only one time per each bar" resolve this issue?
@@orkayen No, they are different concepts. You can run once per bar and still place multiple trades.
So if I only wanted one trade running at a time my inputs would be 1,1,1 right?
So I did everything and I didn't have any errors but when i run it on metatrader 4 nothing shows up in results and no trades where taken. i am on Framework_2.04. Do you by chance know why it would be doing that. Thanks
This video is only about preventing multiple trades, it is not about making trades. The idea is to take the technique from here and add it to your existing expert if needed.
@@OrchardForex Is your Crossover video have making trades. I am just trying to recreate the demonstration you have at the end of this video but i'm just so lost in the sauce right now. What videos do you recommend to watch to do that and that you have and what order. I really appreciate you responding I have been lost in the sauce for like three days now
@@collinowen2535 Try this as a starter for MA cross.
ruclips.net/video/wlvMHOLYJXw/видео.html
MA Cross is very simple and not really a good strategy. I use it as a base to demonstrate other code only because it is so simple and easy to adapt.
Did you resolve this? I think it is because the SignalCombination class isn't taking into consideration SIGNAL_BOTH so when it finds a signal with SIGNAL_BOTH, it sets mEntrySignal to SIGNAL_NONE as it doesn't match any of the other signals
Good stuff, but wondering why the code is not in github repos?
Because I use Bitbucket
Master, do you have any groups in the study Telegram? Thanks in advance for passing on your great knowledge.
Jim uses the Telegam channel to post trading ideas from time to time but we don't have any active disciussion group on programming.
hey so i ended up being able to build working eas with the tutorials but how do you optimize the ea afterwards? nothing shows if i try to run it in slow complete algo
I don't know what you meany by nothing shows.
@@OrchardForex so when i would try to test in the slow complete algo with different inputs in the mt5 and it would instantly be "done" and there's no results in the result tab. but I am able to backtest other eas that i did not create.
how would you code something like rsi divergence or macd divergence if that's even possible and more specific request would be if ma for example in the 1hr crossed and the rsi is above a certain level the bot would enter the trade on a RSI divergence on a lower timeframe like 15 min, and exit or reverse the trade bullish rsi divergence occurs on a specific tf.
For divergence or convergence first just create a class that gives a trend for the indicators, then a class that compares the trends of 2 indicator classes.
i actually dont quite understand. i am pretty new to the expert advisors. could you let me know what you mean by trend for indicators? can't find anything when i google that but indicators for trends
Hello sir. how can I send you a personal message?
You can't. I don't do personal messages. If you have a suggestion there is a topic request page on our website.