• 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 1097 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:
1108 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:
1108 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:
1108 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: Velocity, Momentum & ROC Indicators for MT4
Hello, on/off button added.
mrtools, Mon Nov 03, 2025 8:25 am
User avatar
Re: Velocity, Momentum & ROC Indicators for MT4
Hello dear @mrtools. Very nice obos zones! Could
ixion700, Mon Nov 03, 2025 7:24 am
User avatar
Re: Indicators with ON/OFF buttons
Many thanks Kvak!! Busy is good but rest is impor
DVanAssen, Mon Nov 03, 2025 7:17 am
User avatar
Re: 🍤 Food! (And recipes) for Traders
Phenomenal and easy, the only way I make any kind
Tradehunter, Mon Nov 03, 2025 7:00 am

  • Home
  • Who are we?
  • Media Kit
  • All times are UTC+11:00
  • It is currently Mon Nov 03, 2025 8:40 am
  • Forex Calendar
Powered by phpBB® & Gramziu - Web Ops By SiteSplat, Forex Station ©2016 - 2025Your data is secure with us

Login




Register