Calculate Lot Size and Trailling Stop – EA MetaTrader 5

Calculate Lot Size and Trailling Stop - expert for MetaTrader 5
I. Condition Buy-Sell 2. Backtest 1. Main function for calculate lot size //+——————————————————————+ //| caculate lot sisze Function                      | //+——————————————————————+ double calculate_lotsize(double sl, double price)   {   double lots=0.;   double lotstep= SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP); double ticksize = SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE);    double tickvalue = SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE);   double balance= AccountInfoDouble(ACCOUNT_BALANCE);   double point= SymbolInfoDouble(_Symbol,SYMBOL_POINT);   //double  loss=MathRound((MathAbs(price-sl)/ ticksize) * ticksize );   double  loss=MathAbs(price-sl)/point;  m_symbol.NormalizePrice(loss);   double Risk= initial_risk*balance;   if(loss!=0) … Read more

You can use a lot of combination of indicators in this EA – EA MetaTrader 4

You can use a lot of combination of indicators in this EA - expert for MetaTrader 4
Strategy Tester Report NTOqF V1 SIG-Demo.com (Build 225) Símbolo EURUSD (Euro vs US Dollar) Período Diário (D1) 2009.01.05 00:00 – 2009.08.11 00:00 (2009.01.01 – 2009.08.11) Modelo Pontos de controle (baseado no ponto mais próximo do periódo inferior com interpolação fractal) Parâmetros Lots=0.1; TakeProfit=78; StopLoss=6; useRSI=false; RSI=10; RSIPos=81; RSINeg=50; useSTO=true; STOK=5; STOD=5; STOL=3; useADX=true; ADX=4; useADXMain=true; … Read more

Lot Multiple – library MetaTrader 4

Lot Multiple - library for MetaTrader 4
This function calculates your lot size depending on definite conditions explained in input variables. extern string Multiple_disable=”0    =     Stop Use Multiple  “; extern string     FiboMultiple=”1    =     1,1,2,3,5,8,13,21,34, etc. “; extern string          Multi_X=”2    =     Last Close Lot X 2 “; extern string       Multi_Plus=”3    =     Last Close Lot + Lot “; extern    int    Enter_Choice = 2; Lot Multiple – library MetaTrader 4

lot lib – library MetaTrader 4

lot lib - library for MetaTrader 4
So, decide – what can be risked in each trade? There are many options, and selecting the correct one is not always easy. To solve this problem, I made the lot_lib.mqh libraryUsage: – download the lot_lib.mqh to the MetaTrader 4\experts\include folder; – add the following lines to the EA:// at the beginning: #include <lot_lib.mqh> // … Read more

Lot calculator – risk management tool – indicator MetaTrader 5

When €2000 available, risk is 191 pips, to risk the 2% you have to trade no more than 0.02 lots
Most of professional traders state that their success is based on strict risk management. This simple tool is designed to show the correct lot size to trade with respect to the following basic risk management rules: Risk only a fixed percentage of the total money on the account (e.g. 1-2%). Risk is measured by distance … Read more

Lot Check – script MetaTrader 5

Lot Check
Idea by: Airat Safin Code mq5 by: barabashkakvn This is a utility script. The lot size is set in the inputs. As a result, we obtain a correctly rounded lot, as well as auxiliary data, such as maximum lot size, lot step, and minimum stop size. You can specify a necessary symbol to run calculations for. https://www.mql5.com/ru/code/22785 … Read more