Quote:
|
Originally Posted by leshammond
For instance in the 5_6_03, by changing the figure next to MaximumRisk under General Settings, lots traded compared to Acct balance is managed automatically. On a Mini Acct, a setting of 5.1 would trade Approx 25%, 2.04 would trade 10%, etc. A standard Acct would get the same result by moving the decimal place to the left as .51 and .204. Is there a simple way to duplicate these settings in 5_7_2a?
Thanks, Les
|
MaximumRisk is the same as U_MaxRisk
The money management section changed a little in 5.7.1 . The fields remain the same and work same way. Only the name of the fields changed.
You can find the old names below and the new names above.
5.7.2a
extern string C_Function_Y = "====== U_MM Money Management decreases lotsize in a losing streak =====";
extern bool U_MM = true; //Money management
extern double U_Lots = 1; //Money management will override setting
extern double U_MaxRisk = 0.05; //
extern int U_DecreaseFactor = 0; //
extern bool U_AccIsMicro = false; //Micro means 0.01 lot size is allowed
5.6.03
extern double Lots = 1;
extern double MaximumRisk = 0.05;
extern int DecreaseFactor = 0;
extern bool MM = true;
extern bool AccountIsMicro = false;
What changed.
In 5.7.1 and carried on into 5.7.2a
This code from 5.6.3
if(lot<0.1 && AccountIsMicro==false) lot=0.1;
if(lot<0.01 && AccountIsMicro==true) lot=0.01;
if(lot>99) lot=99;
was replaced with this code
if(lot<U_MinLot) lot=U_MinLot; //Dmitry_CH Add 5.7.1
if(lot>U_MaxLot) lot=U_MaxLot; //Dmitry_CH Add 5.7.1
It should behave the same , but the 5.6.3 code occasionally had errors.
extern double U_MinLot = 00.01; //Set to be micro safe by default, maybe this should change
extern double U_MaxLot = 99.00; //Set to previous max value by default