I'm not saying the fxDreema block codes, but how to change in mql5 code.
I need to manage by balance risk, but maximum volume is the result of fixed ratio.
See:
input double MMPorcento = 20; // MM Porcento
input double MMVolumeMaximo = 50; // MM Volume Maximo
input double MMRJUnidade = 0.01; // MM Ryan Jones Unidade
input double MMRJDelta = 200; // MM Ryan Jones Delta
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// fxDreema block #3 (Buy now) //
void block3(int _parent_=0)
{
if (block3==false || FXD_BREAK==true) {return;}
FXD_CURRENT_FUNCTION_ID=3;
//////////////////////
// Input parameters //
//////////////////////
string OrdersGroup=""; // Group # (empty=Default)
string SYMBOL=CurrentSymbol(); // Market
string VolumeMode="balanceRisk, fixedRatio"; // Money management
double VolumeSize=0.1; // Lot size
double VolumeSizeRisk=50; // Amount of money to risk
double VolumeRisk=MMPorcento; // Risk percent
double VolumePercent=100; // Volume size
double VolumeBlockPercent=3; // Block % of Balance
double FixedRatioUnitSize=MMRJUnidade; // Fixed Ratio: Unit size
double FixedRatioDelta=MMRJDelta; // Fixed Ratio: Delta parameter
double mmMgInitialLots=0.1; // Initial volume
double mmMgMultiplyOnLoss=2; // Multiply on loss
double mmMgMultiplyOnProfit=1; // Multiply on profit
double mmMgAddLotsOnLoss=0; // Add lots on loss
double mmMgAddLotsOnProfit=0; // Add lots on profit
int mmMgResetOnLoss=0; // Reset after how many losses?
int mmMgResetOnProfit=1; // Reset after how many profits?
double mm1326InitialLots=0.1; // Initial volume
bool mm1326Reverse=false; // Reverse 1-3-2-6?
double mmFiboInitialLots=0.1; // Initial volume
double mmDalembertInitialLots=0.1; // Initial volume
bool mmDalembertReverse=false; // Reverse D'Alembert
double mmLabouchereInitialLots=0.1; // Initial volume
string mmLabouchereList="1,2,3,4,5,6"; // List of numbers
bool mmLabouchereReverse=false; // Reverse Labouchere
double mmSeqBaseLots=0.1; // Base volume
string mmSeqOnLoss="3,2,6"; // Sequence on loss
string mmSeqOnProfit="1"; // Sequence on profit
double mmSeqReverse=false; // Reverse system?
double VolumeUpperLimit=MMVolumeMaximo; // Volume upper limit
string StopLossMode="dynamicLevel"; // Stop-Loss mode
double StopLossPips=10; // in pips...
double StopLossPercentTP=100; // % of Take-Profit
string TakeProfitMode="none"; // Take-Profit mode
double TakeProfitPips=10; // in pips...
double TakeProfitPercentSL=100; // % of Stop-Loss
double l0ca1_Slippage=Slippage; // Slippage
string MyComment="Long trade"; // Comment
Same procedure with the sell block.
I tried this but it didn't work. I believe there is something else that needs to be done in mql5 code.