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

Size Highs And Lows – indicator MetaTrader 5

Fig.1. Size Highs And Lows indicator
When volatility of the financial instrument became lower than some level, the long-,middle- and short-term strategies may lose profit and became unprofitable. It depends how long will this “calm” – during these periods you may use scalper strategies based on hourly volatility. To find the patterns of market behavior you need a tools. The Size … Read more

Screenshot in the original chart size – script MetaTrader 4

Sample Screenshot
If you would like to take a screenshot of a script/EA/indicator you have to specify the chart size, because the MT4 can’t detect it. This script: calls the user32.dll to determine the chart’s size places labels in the top left and bottom left corners, that show the instrument’s name and the timeframe calls the kernel32.dll … Read more

Size of candles (text) – indicator MetaTrader 5

Size of candles (text) - indicator for MetaTrader 5
The indicator reflects the size of the bar. The size is calculated by the following formula: “minuend” minus “deduction”. “Minuend” and “deduction” can be any of four values (open, high, low or close). The number of bars for which the size is displayed can be limited in the input parameters (InpNumberOfBars). This number remains unchanged … Read more

Size of candles 2 (text) – indicator MetaTrader 5

Size of candles 2 (text) - indicator for MetaTrader 5
Version 1  Size of candles (text): Version 2. The indicator reflects the size of the bar. The size is calculated by the following formula: “minuend” minus “deduction”. “Minuend” and “deduction” can be any of four values (open, high, low or close). Added in version 2:  customizable colors for the text on bullish and bearish bars … Read more

Marking of candlesticks larger than the specified size – indicator MetaTrader 5

Marking of candlesticks larger than the specified size - indicator for MetaTrader 5
The indicator searches for candlesticks, which are larger than the specified size, and marks such candlesticks on the chart. It can also show an Alert message, once the current candlestick exceeds the preset size value. There are three adjustable parameters: Size level – candlestick size in points; Displays only last bar – only the current … Read more

Position Size Calculator – Based on VP Money Management rules – indicator MetaTrader 4

Example screen
Version 2.0 Uploaded – Version 1.xx users please update risk % This indicator is based on the Money Management approach used by VP from nononsenseforex.com It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk. Inputs Include … Read more