Source Code: #include int totalBars; ulong posTicket; CTrade trade; int OnInit(){ totalBars = iBars(_Symbol,PERIOD_D1);
return(INIT_SUCCEEDED); } void OnTick(){ int bars = iBars(_Symbol,PERIOD_D1);
if(totalBars < bars){ Print("Total bars changed to ",bars);
trade.PositionClose(posTicket); if(!PositionSelectByTicket(posTicket)){ double open = iOpen(_Symbol,PERIOD_D1,1); double close = iClose(_Symbol,PERIOD_D1,1);
if(open < close){ Print("last d1 candle is green");
This is definitely my new favorite channel. I like that you start every video as if it was the first. It helps when someone stumbles upon your videos and they can start with any of them and not feel lost. On the strategy tester backtest, there is a graph for "Profits and losses by hours" and it uses the times the trades are closed. Do you know if there's a way to compute this by the times the trade was opened? For example, so I could find what times are better or worse for my EA to take trades? Thanks for any insight and thank you for sharing your knowledge!
Good day @René Balke . I was trying to code the EA which trades any arrow indicator, I followed your video step by step but I'm getting errors. So it's not even compiling and your help will be appreciated. Kindly find the mql5 errors below... 'input' - unexpected token '=' -unexpected token '3' - some operator expected 'barsTotal' - undeclared identifier 'BufferSell' - undeclared identifier
Did you have any video for rentable bot for mt5? And how to install it? Also did you have a video of a bot that use chat gpt strategy? Thanks. Best regards
Congratulations for the videos, I am learning a lot. One question, how can I close a position based on the signals of 3 indicators, but not necessarily signals given at the same time?
Already trying to make an ea with this strategy for over a month now 😃. I am also adding simple moving average to only buy/sell if closes above/below. Could you maybe help me with that?
ปีที่แล้ว
Nice :) Just watch some other tutorials on this channel. I worked with the MA in many of them ;)
Hi Rene, best love your channel. I write in Mql4 but i am seeing some features in in mql5 i want to have. Can you advice what is the best reading material path to follow. e.g i am getting confused with the different classes to do trades. which one is the best one
ปีที่แล้ว
I don't really know. I would always recommend to just watch tutorials and maybe read the mql5 documentation.
@ Do you use mql5 storage for version control. What do you use for version control
ปีที่แล้ว
@@triniatlarge I don't use any version control because mql5 programs are usually really short and easy. Also I always work alone at programs so I don't really need it.
Rene, I just checked your ftmo. What happened? Did you not set the daily drawdown limit to less than 1000 USD and was it still 4000 USD? I really sorry for what happened.
ปีที่แล้ว +1
Challenge is lost.. But no worries it is fine. It is never guaranteed to win such a prop firm challenge. I think I will make a video (or a live) and make a little summary of the challenge in the next days :)
Source Code:
#include
int totalBars;
ulong posTicket;
CTrade trade;
int OnInit(){
totalBars = iBars(_Symbol,PERIOD_D1);
return(INIT_SUCCEEDED);
}
void OnTick(){
int bars = iBars(_Symbol,PERIOD_D1);
if(totalBars < bars){
Print("Total bars changed to ",bars);
trade.PositionClose(posTicket);
if(!PositionSelectByTicket(posTicket)){
double open = iOpen(_Symbol,PERIOD_D1,1);
double close = iClose(_Symbol,PERIOD_D1,1);
if(open < close){
Print("last d1 candle is green");
trade.Buy(0.1);
posTicket = trade.ResultOrder();
if(posTicket > 0) totalBars = bars;
}else if(open > close){
Print("last d1 candle is red");
trade.Sell(0.1);
posTicket = trade.ResultOrder();
if(posTicket > 0) totalBars = bars;
}
}
}
}
This is definitely my new favorite channel. I like that you start every video as if it was the first. It helps when someone stumbles upon your videos and they can start with any of them and not feel lost.
On the strategy tester backtest, there is a graph for "Profits and losses by hours" and it uses the times the trades are closed. Do you know if there's a way to compute this by the times the trade was opened? For example, so I could find what times are better or worse for my EA to take trades? Thanks for any insight and thank you for sharing your knowledge!
Thank you
@ Thank you!
Very Nice Explanation
Easy to understand
I will love to join your every video
Hi Rene, please make a video of how to create an EA that provides signals on a daily basis based on candlestick patterns and price movement
Thanks
Hey :) I made a series for candlestick patterns. You can find it here: th-cam.com/video/CKz9DewM2Vg/w-d-xo.html
Good day @René Balke . I was trying to code the EA which trades any arrow indicator, I followed your video step by step but I'm getting errors. So it's not even compiling and your help will be appreciated. Kindly find the mql5 errors below...
'input' - unexpected token
'=' -unexpected token
'3' - some operator expected
'barsTotal' - undeclared identifier
'BufferSell' - undeclared identifier
very nice class. Thank you
Did you have any video for rentable bot for mt5? And how to install it? Also did you have a video of a bot that use chat gpt strategy? Thanks. Best regards
Congratulations for the videos, I am learning a lot. One question, how can I close a position based on the signals of 3 indicators, but not necessarily signals given at the same time?
great video, thank you! I'll be watching more
thumbs up @renebalke your content is actually something I was looking for
Already trying to make an ea with this strategy for over a month now 😃. I am also adding simple moving average to only buy/sell if closes above/below. Could you maybe help me with that?
Nice :) Just watch some other tutorials on this channel. I worked with the MA in many of them ;)
Thanks Rene, very informative and useful!
Good day Mr Rene... Do you have any idea on how we can trade big moves like the news
Informative video 👌 thanks for sharing 👍
Can you code an EA with a rectangular support/resistance or supply and demand or order block? That would be most interesting
Honestly, you are a wonderful person, but I do not know programming. Can you help me in situations of many consecutive losses?
Great Video as always René
Where can find discussion on mql5 settings from a publisher...
Suuuuuper Du hast unterrichtet.
is mql4 same?!
very glad to see your video and channel.
Thanks!! :) Have a look at this to learn mql4: th-cam.com/video/NbwMUccj3Wg/w-d-xo.html
There are some differences compared to mql5..
Fantastic, my congratulations!!
Hi Rene how do we make the EA open a new trade only after the current trade has hit TP or STL
Hi Rene, best love your channel. I write in Mql4 but i am seeing some features in in mql5 i want to have. Can you advice what is the best reading material path to follow. e.g i am getting confused with the different classes to do trades. which one is the best one
I don't really know. I would always recommend to just watch tutorials and maybe read the mql5 documentation.
@ Do you use mql5 storage for version control. What do you use for version control
@@triniatlarge I don't use any version control because mql5 programs are usually really short and easy. Also I always work alone at programs so I don't really need it.
Perfect
i have a question , how can one get buffer of MA based of rsi data or any indicator on mql5 , like iMAOnArray on mt4
Guter Mann!
Rene, I just checked your ftmo. What happened? Did you not set the daily drawdown limit to less than 1000 USD and was it still 4000 USD? I really sorry for what happened.
Challenge is lost.. But no worries it is fine. It is never guaranteed to win such a prop firm challenge. I think I will make a video (or a live) and make a little summary of the challenge in the next days :)
I have idea for write ea then price break market structure use fibo fine retest price at lv 50,61.8 can you show some coding about fibo tool?
cool
Garcia Betty Lopez Lisa Rodriguez Matthew
Moore Kenneth Lee Daniel Garcia Steven
Robinson Linda White Dorothy Lopez Jason
Anderson Elizabeth Harris Scott Hernandez Linda
Can I be your friend?...like for real.
Bro it will be hard if you do not live in my neighborhood :D But we can be TH-cam friends for sure
@ cool cool😁😁
can you recommend a profitable EA for beginners?
No I am sorry but I cannot see the future (unfortunately :/)
Where can i contact you please.