• Login
  • Register
    • Unanswered topics
    • Active topics
    • Forex Calendar
  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 1114 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:
1118 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:
1118 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:
1118 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: Phase-Space Stochastics (PSS) - Original Visua
Quick Settings Guide (starting points) 1) Balance
SENFX, Sat Jan 10, 2026 3:10 pm
User avatar
Phase-Space Stochastics (PSS) - Original Visualiza
Hello Forex Station members, My name is Senritsu-
SENFX, Sat Jan 10, 2026 2:51 pm
User avatar
Hello from Japan
Hello everyone, I am a trader from Japan and have
SENFX, Sat Jan 10, 2026 2:33 pm
srinarayani13
Re: Ultimate TDI indicators thread for MT4
Thank you so much God bless you abundantly
srinarayani13, Sat Jan 10, 2026 2:18 pm

  • Home
  • Who are we?
  • Media Kit
  • All times are UTC+11:00
  • It is currently Sat Jan 10, 2026 5:29 pm
Powered by phpBB® & Gramziu - Web Ops By SiteSplat, Forex Station ©2016 - 2026Your data is secure with us

Login




Register