|
Zorro loses control of MT5
#486520
09/01/22 07:30
09/01/22 07:30
|
Joined: Sep 2022
Posts: 7
Sunbuddy
OP
Newbie
|
OP
Newbie
Joined: Sep 2022
Posts: 7
|
|
|
|
Re: Zorro loses control of MT5
[Re: Sunbuddy]
#486528
09/01/22 13:12
09/01/22 13:12
|
Joined: Aug 2022
Posts: 65
alun
Junior Member
|
Junior Member
Joined: Aug 2022
Posts: 65
|
MT5 appears to be closing the trade first as the stop has been transmitted to the MT5 terminal and its faster than Zorro.... sounds legit, well, if it's trying to close already closed by SL trade that's sounds like a bug I've also started to connect it with MT4 and had quite a lot of issues - but managed to fix them https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=486526You could try with MT4 or wait from someone else's answers. I know that current last version of Zorro is not considered stable, but I'm not sure how to download the latest stable anyway.
|
|
|
Re: Zorro loses control of MT5
[Re: Sunbuddy]
#486529
09/01/22 13:23
09/01/22 13:23
|
Joined: Aug 2022
Posts: 65
alun
Junior Member
|
Junior Member
Joined: Aug 2022
Posts: 65
|
Also you're using this one right?
// Perfect martingale system ///////////////////
function run()
{
set(PLOTNOW);
// BarPeriod = 1440;
BarPeriod = 1;
Stop = TakeProfit = ATR(100);
Lots = pow(2,LossStreakTotal); // the martingale formula...
// wait until last stop/profit target was hit
if(NumOpenTotal == 0) {
if(random() < 0)
enterShort();
else
enterLong();
}
}
I'm a new to Zorro as well but it looks like it only sets up SL and TP and should delegate this to broker - don't manage the trade itself. Maybe there is some flag needed to set this up explicitly?
|
|
|
Re: Zorro loses control of MT5
[Re: Grant]
#486635
09/13/22 03:42
09/13/22 03:42
|
Joined: Sep 2022
Posts: 7
Sunbuddy
OP
Newbie
|
OP
Newbie
Joined: Sep 2022
Posts: 7
|
Well Ok I'll give it a go.
Last edited by Sunbuddy; 09/13/22 03:43.
|
|
|
Re: Zorro loses control of MT5
[Re: Sunbuddy]
#486640
09/13/22 10:40
09/13/22 10:40
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
Chief Engineer
|
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
Switching to MT4 will probably not help. All included scripts are only guaranteed to work when unmodified. When you modify parameters, like the bar period, you usually must also adapt other parameters, like the stop and TP distances. Or alternatively, set StopFactor = 0 to prevent that MT5 opens and closes a trade immediately, which is likely the problem reason here. Generally, whenever you change something, think about possible side effects.
If you cannot fix it this way, the problem might have a different reason. Then someone else has to look into it. Send us a bug report with all required data, especially the experts log and journal, and your MT5 broker name and version number.
|
|
|
|