Page 1 of 1

Adding martingale to an expert advisor

Posted: Tue Mar 14, 2017 9:18 am
by tradre
Hello moderators and members ,
Please help me add martingale to my EA i dont want to use the one with multiplying factor i want to add the steps that the EA will take.Ive tried it but its not working check my code and tell me whats wrong

Re: Adding martingale to an expert advisor

Posted: Tue Mar 14, 2017 7:28 pm
by mladen
tradre wrote:Hello moderators and members ,
Please help me add martingale to my EA i dont want to use the one with multiplying factor i want to add the steps that the EA will take.Ive tried it but its not working check my code and tell me whats wrong
It already has martingale

Re: Adding martingale to an expert advisor

Posted: Tue Mar 14, 2017 7:53 pm
by tradre
Hello mladen,

i mean the martingale code that is there is not working.If you would help me with a sample code of martingale that doesnt include multiplying factor so that i can add the sizes manually on the extern input area

Re: Adding martingale to an expert advisor

Posted: Tue Mar 14, 2017 8:26 pm
by mladen
tradre wrote:Hello mladen,
i mean the martingale code that is there is not working.If you would help me with a sample code of martingale that doesnt include multiplying factor so that i can add the sizes manually on the extern input area
It is using the "step(nn)" parameters for that

Test it changing those parameters

Re: Adding martingale to an expert advisor

Posted: Tue Mar 14, 2017 11:31 pm
by tradre
i have tried but the it doesnt pass step 2 and i need it to be able to reach upto step 10

Re: Adding martingale to an expert advisor

Posted: Wed Mar 15, 2017 1:34 am
by mladen
tradre wrote:i have tried but the it doesnt pass step 2 and i need it to be able to reach upto step 10
I guess that it depends on the development of the order. If it goes in negative, then the new orders will be opened