- MONEY MANAGEMENT SCRIPT -
Add Roulette TRADER Money Management
to YOUR OWN Expert Advisors

MQL4 Money Management Source Code
for MetaTrader4 Expert Advisors










































Only $79 for current Robot customers!
Log in & refresh page to show the $79 button

Contact Don to pay by Crypto, Skrill or Neteller

Product Details

Now you can add Roulette TRADER Money Management to virtually any MT4 Expert Advisor created by other programmers. This code will over-write the EA's existing money management. The only requirement is that you have open access to the MQL4 source code file. If you don't have access to the EA source code, please see my Money Management Trade Copier EA.

The Money Management Script includes a 200-line block of source code, which you must copy and paste into the existing source code of your Expert Advisor. Simply paste it above all other active code in your EA, in addition to a minor change to the OrderSend code (Details below).

PLEASE NOTE: This script is NOT necessary for any Roulette Trader Expert Advisors sold on this website, as they already have Roulette Trader money management programmed into them.

Variables Included...

I loaded this script with all the features necessary to implement all variations of the Roulette TRADER Money Management System in a single EA, including the ability to switch between Negative & Positive Progression Money Management, and Consecutive or Cumulative Wins strategies with a simple True/False switch. Here is each variable explained...

  • FixedLots: The EA will use this setting when RT_Money_Management_Active = False.
  • RT_Money_Management_Active: Set to False to disable the money management and use the FixedLots setting.
  • Use_Negative_Progression: Set to False to use Positive Progression Money Management.
  • Use_Consecutive_Method: True = Consecutive Wins method, False = Cumulative Wins method.
  • Minimum_Lot: The smallest lot size your EA will open. Should not be larger than the "Unit_Size_Up" setting.
  • Unit_Size_Up: Increases your lots by this setting following "qualified" WINS in Positive Progression Mode.
  • Unit_Size_Up: Increases your lots by this setting following "qualified" LOSSES in Negative Progression Mode.
  • Unit_Size_Dn: Decreases your lots by this setting following "qualified" LOSSES in Positive Progression mode.
  • Unit_Size_Dn: Decreases your lots by this setting following "qualified" WINS in Negative Progression mode.
  • Maximum_Lot: The largest lot size your EA will open. This is your Cycle Target in Positive Progression mode.
  • Minimum_Pippets_for_a_Win: The minimum profit required to qualify for a lot adjustment on the next trade.
  • Minimum_Pippets_for_a_Loss: The minimum loss required to qualify for a lot adjustment on the next trade.
  • Stay_at_Max_Lots: In Positive Progression mode, a True setting will keep your trades at your "Maximum_Lot" during a winning streak until a loss occurs. A false setting will default back to Minimum Lot following a qualified win at your Maximum Lot setting.
  • Stay_at_Max_Lots: In Negative Progression mode, a True setting will keep your trades at your "Maximum_Lot" during a losing streak until a qualified win occurs. A False setting will default back to Minimum Lot following a qualified loss at your Maximum Lot setting.

Works in Back-Testing:

After you successfully add the script to your EA, the money management will work in the Strategy Tester so you can back-test your EA with the various Roulette TRADER Money Management strategies and variables until you find the best fit for your signal strategy.

Minimum Pippets (What is a pippet?)

These are very important settings. In order for the script to change the lot size on the next trade, a Win or Loss MUST be at least this large (in pippets). There are 2 settings for "Minimum Pippets". One for wins, and one for losses. This gives you a lot of flexibility with your money management. Please note that "pippets" are NOT pips, they are 1/10th of a pip. Therefore, 500 pippets = 50 pips and 50 pippets = 5 pips.

Installation Instructions:

1) Copy lines 1-200 of Money Management source code and paste it into the source code of your EA above all other active code. These 200 lines are labeled as "Block-1" in the code.

2) Locate the "OrderSend" command in your EA - then in its third field, replace any variable/word that is written there with " GetLots()".

Sample EAs:

In addition to the script (available for instant download) I will send you 2 different sample EAs that use a magic number that have already been converted with this script so you can compare your EA code to the ones already converted.

Pips or Dollars?

This money management script works with EAs that calculate Stops and Profit Targets in pips, NOT dollars. If your EA uses a dollar value to determine your stop-loss and profit target, the money management will not work properly with your EA since your EA would be closing trades at specific dollar values rather than pips and would interfere with the scaling effect of the money management.

Need Help?

If you need help, I will make your first EA conversion for FREE to the best of my ability. I will convert your 2nd and additional EAs for $29 each as a consulting fee. You may send me your EA source code prior to paying and if I cannot successfully convert your EA, I will let you know. Some programmers use non-standard code and in such cases, the "OrderSend" function may look different or be located in a library file that your EA references. In these cases, conversion may not be so straight-forward. If I am unable to successfully convert your EA, I can refer you to my programmer to make the conversion for you. His typical fee is $60 - $70 per conversion but you may request a quote for your specific EA.










































Convert Unlimited EAs!

You may use this source code script to add Roulette Trader Money Management to an unlimited number of Expert Advisors. I have tested it on various EAs and it works! The script comes inside a functioning Expert Advisor that buys every 10 candles, which you may use to test the money management functions in live trading and also in the strategy tester to backtest. The top 200 lines of code in that EA is what you need to copy and paste into your existing EA. These same 200 lines of code are also included in a text file included in your download file. Since this source code cannot be returned or disabled, all sales are final.

Copyright 2023, RouletteTrader.com - All Rights Reserved

Risk Disclosure: This website does not guarantee income at any time, nor success of the product beyond the specific 60-day performance guarantees for each product. There are many factors that can effect each person's individual results. Examples shown in this presentation do not represent an indication of future success or earnings but merely hypothetical historical performance based on specific trading models. Past performance is not indicative of future results. The company declares the information shared is true and accurate.

U.S. Government Required Disclosure - Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts.

The purchase, sale or advice regarding a currency can only be performed by a licensed Broker/Dealer. Neither us, nor our affiliates or associates involved in the production and maintenance of these products or this site, is a registered Broker/Dealer or Investment Advisor in any State or Federally-sanctioned jurisdiction. All purchasers of products referenced at this site are encouraged to consult with a licensed representative of their choice regarding any particular trade or trading strategy. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.

Clearly understand this: Information contained in this product are not an invitation to trade any specific investments. Trading requires risking money in pursuit of future gain. That is your decision. Do not risk any money you cannot afford to lose. This document does not take into account your own individual financial and personal circumstances. It is intended for educational purposes only and NOT as individual investment advice. Do not act on this without advice from your investment professional, who will verify what is suitable for your particular needs & circumstances. Failure to seek detailed professional personally tailored advice prior to acting could lead to you acting contrary to your own best interests & could lead to losses of capital.

*CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN

 

Copyright 2015 - Roulette Trader - All Rights Reserved