• Login
  • Register
    • Unanswered topics
    • Active topics
  1. Home
  2. Board index
  3. Coding Help

Adding martingale to an expert advisor

Post Reply Attachments 1
  1. Home
  2. Board index
  3. Coding Help
6 posts
Display posts from previous
Sort by
  • Print view
tradre
tradre
Inactive Member
Posts:
18
Joined:
February 2017
Been thanked:
1 time

Adding martingale to an expert advisor

1 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
UniversalEA.mq4 Downloaded 1057 times 12.41 KiB
  • Quote
  • Tue Mar 14, 2017 9:18 am


User avatar
mladen
Founder
Posts:
2205
Joined:
February 2017
Location:
N/A
Platform:
MetaTrader 4 & 5
Indicator:
All
Been thanked:
1096 times

Re: Adding martingale to an expert advisor

2 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
  • Quote
  • Tue Mar 14, 2017 7:28 pm
tradre
tradre
Inactive Member
Posts:
18
Joined:
February 2017
Been thanked:
1 time

Re: Adding martingale to an expert advisor

3 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
  • Quote
  • Tue Mar 14, 2017 7:53 pm
User avatar
mladen
Founder
Posts:
2205
Joined:
February 2017
Location:
N/A
Platform:
MetaTrader 4 & 5
Indicator:
All
Been thanked:
1096 times

Re: Adding martingale to an expert advisor

4 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
  • Quote
  • Tue Mar 14, 2017 8:26 pm
tradre
tradre
Inactive Member
Posts:
18
Joined:
February 2017
Been thanked:
1 time

Re: Adding martingale to an expert advisor

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


User avatar
mladen
Founder
Posts:
2205
Joined:
February 2017
Location:
N/A
Platform:
MetaTrader 4 & 5
Indicator:
All
Been thanked:
1096 times

Re: Adding martingale to an expert advisor

6 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
  • Quote
  • Wed Mar 15, 2017 1:34 am


6 posts
Post Reply Attachments 1

Return to “Coding Help”

User avatar
Re: Priestley-Chao-Kernel / Gasser–Müller-Kernel
MT5 is the same it's even more complicated. so i
ionone, Sat May 17, 2025 12:22 am
User avatar
Re: 🔺 MT5 XARD - Simple Trend Following Trading Sy
Try this solution my friend.
RollerAndTrading, Fri May 16, 2025 11:01 pm
User avatar
Re: What kind of music do you listen to during tra
https://youtu.b
vvFish, Fri May 16, 2025 10:44 pm
User avatar
Re: What kind of music do you listen to during tra
https://youtu.b
vvFish, Fri May 16, 2025 10:35 pm

  • Home
  • Who are we?
  • Media Kit
  • All times are UTC+10:00
  • It is currently Sat May 17, 2025 1:19 am
Powered by phpBB® & Gramziu - Web Ops By SiteSplat, Forex Station ©2016 - 2025Your data is secure with us

Login




Register