• 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 1103 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:
1112 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:
1112 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:
1112 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: TMA - Triangular Moving Average indicators MT4
What indicator put the arrow ?
Mickey Abi, Tue Nov 25, 2025 7:43 pm
User avatar
⏰ Daily Downloads: Indicators & Trading Systems Of
November 25 2025 This is a Volatility Channel Sto
Jimmy, Tue Nov 25, 2025 7:31 pm
cinemachild90
Re: MT4 Indicator requests and ideas
Hi, I have one request: could you please modify t
cinemachild90, Tue Nov 25, 2025 6:06 pm
Nik123
Re: Trending trading system for breaking through e
Great!!!
Nik123, Tue Nov 25, 2025 5:55 pm

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

Login




Register