Smart Candle
- Experts
- Wanchai Phonphromchot
- Version: 1.20
- Mise à jour: 4 février 2025
- Activations: 5
Introduction
This EA is designed to survive the testing period of 1 year with low drawdown and high Sharpe ratio. There is something new in the concepts of calculation, but it is easily understood. And here are the best results.
On the test period of 1 year (Jan 2023 - Jan 2024), the profit at the end is about 1200% of the initial deposit with a maximum drawdown of 30%, and the Sharpe ratio is greater than 3.5.
Note that the 30% drawdown motioned above is the result from the strategy tester, which seems to use peak equity as a reference. Compare to the drawdown 10% result from this EA, which uses starting equity as a base. In this point of view, we will see the great performance of the EA. and the Sharpe ratio over 3.0 is categorized as a very good investment. Please see the attached video for the testing record.
Keys Concept of Program
The algorithm is composed of 4 main functions as follows:
1. Market Analyzing - The used method is extremely new but very simple, called "Smart Candle," that I developed by myself. It's like a normal candlestick, but the start and end of the bar are specified by the dump event (not by the time interval). By this way we will see the clarity of the movement of the price and also the support and resistance level.
2. Trading Strategy - The simple higher-high and lower-low are used to determine the trend (higher-high = buy, lower-low = sell). The overprice movement limit was used to activate the trading direction as a counter trend. The pending order is used to open the trade. The lot of trading will auto scale to match the situation. The scale factor is based on current price movement and the current accumulated lot on each side, which the composition of the equation is unrevealed. But the user can adjust the overall scale factor by the parameter called "Overall lot scaling factor.".
3.Close Positive Position - This is one of the most important things. We will close the positive position when the potential of price movement is switching (buy to sell, sell to buy). The concept to indicate the switching point is the curvature of the price movement, which is calculated by the ratio of the price area divided by the idealized triangle area. Imaginary of the uptrend line. The first thing we have is a price difference in the y-axis and a time difference in the x-axis. Multiply these two values and divide by 2; the result is an idealized triangle area. Then we consider the area above the trend line that is a sell area. Integrate the sell area over the time domain of the trend line. and then we can calculate the area ratio. After this, we need to trial the value of the area ratio to get the best actual closing price. (See the attached image for the concept of area ratio.)
4.Close Trading Round—the trading round starts at the first time of placing an order. Then all trading activity has a record. The trading round will close when all these three criteria are satisfactory. The first criterion is that the profit must reach the target profit. The second criterion is the risk-reward ratio must reach the target risk-reward ratio. and the last criteria is the lot amount after the close positive is switching from higher to lesser. When closing the trading round, that means all positions and orders will be cleared, and the profit round record will be reset.
Parameters
There are a total of 15 parameters that are split into 5 groups as follows.
1.General Parameter
- Magic Number
2.Auto Trade option
- Auto open order - select auto open order option. there is 4 choice ( Both ,Buy ,Sell and Manual ).
- Auto close positive position - select auto close position option. there is 4 choice ( Both ,Buy ,Sell and Manual ).
- Auto close trading round - select auto close trading round option. there is 2 choice - ( true or false ).
3.Trade option Control
- multiplier to minimum lot - The basic lot of trading is used to determine the actual lot trade.
- Minimum Price Gap between previous position (Point) - Control the spacing of each order. The recommended value is 300.
- Potential switching point defined by ratio of area - Determine the potential switching. The recommended value is 0.2-0.3.
- Pullback Ratio of Price Range - use to count the wave and tip switching not effect to algorithm trading but intent to guide the manual trading. the recommended value is 0.2-0.3.
- Overall lot scaling factor - use to adjust the trading lot.
4.Price Movement Identification
- Size of Dump event in point - specify dump event. the recommended value is 1000.*
- Rate of Dump event in point/minute - specify dump event. the recommended value is 100.*
- price over move limit in point - specify over move limit. the recommended value is 7000.
- Strong Bar define by ratio of current bar to chain of movement - specify the ratio of the current bar movement to the chain movement to identify the strong bar. The recommended value is 0.6.
5.Trading Round Control
- target profit dollar per lot base - targeting profit per lot base.
- target risk-reward ratio - targeting risk-reward ratio. The recommended value is 1.5.
Objects in chart area
1.The information panel is on the right side. There are many lines of information that split into five groups. as follows.
group 1 - Account Information
- Balance
- Equity
- Draw Down - The drawdown is calculated based on the previous equity record, which differs from the drawdown that is calculated by the tester, which references the peak equity.
group 2 - Trade Stat
- Round Count Record
- Profit Record - record of profit that separate by type of order (limit ,stop, or by user)
group 3 - Current Round Stat
- Total Position - current opened position
- Buy Lot - sum of current buy lot
- Sell Lot - sum of current sell lot
- Profit Round - sum of profit and loss of current position
- Max Risk - record of maximum risk and current risk-reward ratio
group 4 - Position Stat
- Buy Position - high and low of current buy position
- Sell Position - high and low of current sell position
- Lot Current - lot size after scaling for open order buy and sell.
group 5 - Price Movement Stat
- Potential Movement & Trading Side - potential movement of price determine by the area ratio method. trading side determine by the higher-high or Lower-low method
- Event Price Range - the range of price movement related to dump event which shown in blue arrow price in the chart area.
- Chain Price Range - the range of price movement related to chain of the same direction of candle bars.
- Wave Stat - wave stat id include wave side ,number of wave and number of side switching. these stat are not effect the trading algorithm but intent to guide manual trading.
- Price Change - the property of price change relate to high price and low price which shown in purple arrow price in the chart area.
- Price Level - the comparing of current bid price to the range of chain of price. the value is 0 to 1.0 which 0 is means bid price is the lowest price of chain and the value 1.0 is means bid price is highest price of chain.
2.The smart candlestick is shown on the chart in the format of a red-blue color. At the start, it may need some time, such as 2-3 minutes, for the complete construction of the smart candlestick. The smart candlestick is almost the same as the normal candlestick, with the difference being the width of the bar. The width of the smart candlestick is a reflection of the time period. The biggest advantage of smart candles is the clarity of the support and resistance level (and also the demand and supply zone).
User Guideline
the ways to use this EA.
1.If you have a large budget, such as 25000 dollars. There is nothing to worry about; you can run EA by the recommended value without any scaling down.
2.If you have no large budget, there are 3 options.
2.1 You may need alliance. Gather funds from your friends and trade as one account. The large budget is more chance to survive in the market.
2.2 You may need to scale down. trial on tester to find the proper scaling that matches your budget.
2.3 Only use this EA as an indicator and for manual trading. You can use the auto-close positive option to help you close the position at the best time.
Restriction
- EA was tested on paring of XAUUSD.
- EA was tested on low spread account type.
- EA must run on 1 minute chart.
Remark
The initial price of this EA is 50 dollars/month; that is the special promotion. After one year and so on, the price will be increasing by 2x per year until the price reaches 800 dollars/month.