Rosh:
Such function does not exist. You may write any conditions into your code to limit your expert.
Such function does not exist. You may write any conditions into your code to limit your expert.
Thanks for your quick reply. It seems that I have a little expertise in such side of EA progamming. Could you please give me a hint what conditions should I use to limit exepert. just a demonstrating example. Would be very thankful.
best
No problem
if (!IsTradeAllowed()) {Print(TimeToStr(CurTime())," Trade is disabled"); return; } if (!IsDemo()&& !RealTrade) {Alert("На реале работа запрещена!!!");return;} //---- //first defence if (!IsTesting()) { Comment("Backtest only!!!"); return; } // first defence //second defence if ( (TimeMonth(CurTime())>8) && (TimeYear(CurTime())>=2007) ) { Print("Expirated"); return(0); } //second defence
miri_hussein:
Thanks for your quick reply. It seems that I have a little expertise in such side of EA progamming. Could you please give me a hint what conditions should I use to limit exepert. just a demonstrating example. Would be very thankful.
best
Many thanks indeed. Sound very nice. But I did not understand the:Rosh:
Such function does not exist. You may write any conditions into your code to limit your expert.
Such function does not exist. You may write any conditions into your code to limit your expert.
Thanks for your quick reply. It seems that I have a little expertise in such side of EA progamming. Could you please give me a hint what conditions should I use to limit exepert. just a demonstrating example. Would be very thankful.
best
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
miri_hussein:
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
Fixed
if (!IsTradeAllowed()) {Print(TimeToStr(CurTime())," Trade is disabled"); return; } if (!IsDemo()&& !RealTrade) {Alert("Only demo account!!!");return;} //---- //first defence if (!IsTesting()) { Comment("Backtest only!!!"); return; } // first defence //second defence if ( TimeYear(CurTime()>=2007) ) if ((TimeMonth(CurTime())=5 && TimeDay(CurTime())>22)|| TimeMonth(CurTime())>5) { Print("Expired"); return(0); } //second defence
Rosh:
Fixed
miri_hussein:
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
Fixed
if (!IsTradeAllowed()) {Print(TimeToStr(CurTime())," Trade is disabled"); return; } if (!IsDemo()&& !RealTrade) {Alert("Only demo account!!!");return;} //---- //first defence if (!IsTesting()) { Comment("Backtest only!!!"); return; } // first defence //second defence if ( TimeYear(CurTime()>=2007) ) if ((TimeMonth(CurTime())=5 && TimeDay(CurTime())>22)|| TimeMonth(CurTime())>5) { Print("Expired"); return(0); } //second defence
aboualhs:
Rosh:
Fixed
miri_hussein:
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
{Alert("На реале работа запрещена!!!");return;}
is the alert in Russian? Could that be in English
Print("Expirated"); do mean here "Expired".
Could you please do me that favour. It seems that you are professional. I would like to make a 14 days trial vresion of my EA. starting 8th May and expiring on 22nd May.
I am sorry for asking your alot of questions, But you are really a great help and this will be very kind of you.
best
Fixed
if (!IsTradeAllowed()) {Print(TimeToStr(CurTime())," Trade is disabled"); return; } if (!IsDemo()&& !RealTrade) {Alert("Only demo account!!!");return;} //---- //first defence if (!IsTesting()) { Comment("Backtest only!!!"); return; } // first defence //second defence if ( TimeYear(CurTime()>=2007) ) if ((TimeMonth(CurTime())=5 && TimeDay(CurTime())>22)|| TimeMonth(CurTime())>5) { Print("Expired"); return(0); } //second defence
Many Thanks for getting back to me. You are really a great help to the fourm. Should I include all all this as function. Or could starte just from the second defence.
best
Hi,
I have need a indicator or script to drow J-Chart on metatrader.
Is there any body to help me?
Best regards
Binazir
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I need your help in a single matter in coding my EA. I almost finished coding my EA which I will display in the forum soon. Still one problem, I don’t know what is the function to make the EA as trial version for let us say 7 day or 10 day. And how also make the EA locked to one account?
Your help will be very much appreciated.
Best