
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
problem has been resolved in version Your_Lucky_v2c, and I have sent it to many email in my list ...
this the code you need :
extern int MinuteForClose = 1;
[/CODE]
bool TimeForNextOPBuy() {
bool OB=true;
RefreshRates();
if(TotalOpens()>0 && OrderOpenPrice()-Ask<PrFrLastOP()) OB=FALSE;
if(TotalOpens()>0 && TimeCurrent()-OrderOpenTime()<60*MinuteforNextOP) OB=FALSE;
return (OB);
}
//======================
bool TimeForNextOPSell() {
bool OS=true;
RefreshRates();
if(TotalOpens()>0 && Bid-OrderOpenPrice()<PrFrLastOP()) OS=FALSE;
if(TotalOpens()>0 && TimeCurrent()-OrderOpenTime()<60*MinuteforNextOP) OS=FALSE;
return (OS);
}[CODE]
RefreshRates();
if (BUY_Open3<1 && GetMidFractal(OP_BUY)==1 && GetMidEnvelope(OP_BUY)==1 && GetSignal_IT() && MA_M1<=0.25) {
if (SELL_Open3>0) {CloseSell_3();}
if (next_buy_3 && StopLastTrade()==true && Sell_Only()==0 && TimeForNextOPBuy() && BUY_OpenGetTime_ZZ_Dn()))
{
Ticket = OrderSend(Symbol(),OP_BUY,LotsBuy(),Ask,slp_X(),GetSL_Buy(), GetTP_Buy(), myOrderComment+"_3 "+Symbol(), MagicNumber3, 0, Blue);
//if (SELL_Open3>0) {CloseSell_3();}
next_sell_3 = true;
//next_buy_3 = false;
}
}the EA will not open if TimeForNextOPBuy()=false or TimeForNextOPSell()=false
for this case... is not a bug :
283355 2009.03.15 20:01 buy 0.10 eurgbp 0.92295 0.00000 0.00000 2009.03.15 20:020 .92276 -0.12 0.00 0.00 -0.27
283357 2009.03.15 20:02 buy 0.10 eurgbp 0.92276 0.00000 0.00000 2009.03.15 20:27 0.92283 -0.12 0.00 0.00 0.10
283392 2009.03.15 20:21 buy 0.10 eurgbp 0.92247 0.00000 0.00000 2009.03.15 20:27 0.92282 -0.12 0.00 0.00 0.49
you can see... the EA make buy order on 20:01 buy 0.10 eurgbp 0.92295
an then do it again on 20:02 buy 0.10 eurgbp 0.92276
if you set the PriceFromLastOP=2 and MinuteforNextOP=0...
the EA is doing the right thing according to logic in the script ... so what should be improved?
you only need to change
PriceFromLastOP=5; // or as you want
MinuteforNextOP=5; // or as you want
you can limit the number of orders you want to change the parameters:
extern int MaxTrades = 1;
PriceFromLastOP ?
for this case... is not a bug :
283355 2009.03.15 20:01 buy 0.10 eurgbp 0.92295 0.00000 0.00000 2009.03.15 20:020 .92276 -0.12 0.00 0.00 -0.27
283357 2009.03.15 20:02 buy 0.10 eurgbp 0.92276 0.00000 0.00000 2009.03.15 20:27 0.92283 -0.12 0.00 0.00 0.10
283392 2009.03.15 20:21 buy 0.10 eurgbp 0.92247 0.00000 0.00000 2009.03.15 20:27 0.92282 -0.12 0.00 0.00 0.49
you can see... the EA make buy order on 20:01 buy 0.10 eurgbp 0.92295
an then do it again on 20:02 buy 0.10 eurgbp 0.92276
if you set the PriceFromLastOP=2 and MinuteforNextOP=0...
the EA is doing the right thing according to logic in the script ... so what should be improved?
you only need to change
PriceFromLastOP=5; // or as you want
MinuteforNextOP=5; // or as you want
you can limit the number of orders you want to change the parameters:
extern int MaxTrades = 1;PriceFromLastOP is not in v2b...
release v2c
PriceFromLastOP is not in v2b...
PriceFromLastOP is same with range_OP in the picture...
release v2c
why do I have to do what you say ...
after you have a suspicious and ugly to think about me ?
I even completed the v3 is now working on the sideway and trending ...
do you want to told me to release it too ... and after a month and then you will say that I get from the pirate or decompile ? you are soo funny
This type of reaction makes me suspect even more ...
Selfish.
PriceFromLastOP is same with range_OP in the picture...
why do I have to do what you say ...
after you have a suspicious and ugly to think about me ?
I even completed the v3 is now working on the sideway and trending ...
do you want to told me to release it too ... and after a month and then you will say that I get from the pirate or decompile ? you are soo funnyWhat I said was that it seemed strange not to make any necessary changes.
And you see, just to share the changes with a few, and we leave to the other half with a version with failures and unresolved.
There are things that get you out this way. Good start and now this being selfish.
Selfish.
Many people in the forum help you Your_Lucky testing.
things difficult for me ...
I have a new computer since 1 week ago
and I lost all the data together with my old computer for 1 month, it's the reason why I did not answer...
I have to give my code and I believe many are able to understand and answer the questions that repeatedly in this thread...
after I give EA in this thread with the code you need to understand the logic that I use ... there is no reason for you to say I'm is selfish ...
Unbelivable
Hi,
I can't believe anyone would accuss rdb of all people as being selfish !!!
He has kindly shared a great EA with us and should be an inspiration to the forum. Have some gratitude for his work !
RDB - I have sent you a PM....
...
things difficult for me ...
I have a new computer since 1 week ago
and I lost all the data together with my old computer for 1 month, it's the reason why I did not answer...
I have to give my code and I believe many are able to understand and answer the questions that repeatedly in this thread...
after I give EA in this thread with the code you need to understand the logic that I use ... there is no reason for you to say I'm is selfish ...You could send the new version by mail, a few, but could not publish it on the forum?
Whatever.
message for RDB
Hi Rdb - thanks for your quick reply to my PM
Your inbox is full so please reply here...
Will you be making the v3 EA available on the forum or just to a few people ? If it is just to a few people I would love to be on the list to test it for you - you have my email address in my last message, Thanks again.
Bootlicker
Hi Rdb - thanks for your quick reply to my PM
Your inbox is full so please reply here...
Will you be making the v3 EA available on the forum or just to a few people ? If it is just to a few people I would love to be on the list to test it for you - you have my email address in my last message, Thanks again.Bootlicker