• 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 1055 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: WW3 Countdown
The biggest problem the Russians face is that neit
Ogee, Tue May 13, 2025 7:08 pm
User avatar
Re: Traders joking (Memes, Jokes & anything funny
Screenshot 2025-05-13 071150.pngScreenshot 2025-05
Ogee, Tue May 13, 2025 7:01 pm
User avatar
Re: WPR Indicators for MT4
Summed indicators can be be a bit heavy on the C
Jimmy, Tue May 13, 2025 6:59 pm
User avatar
Re: News
China removes ban on Boeing deliveries after US tr
Ogee, Tue May 13, 2025 6:58 pm

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

Login




Register