RSI Strategy EA
- Experts
- Andrei Kuchynski
- Versione: 1.0
- Attivazioni: 20
This EA trades two strategies based on the RSI indicator signals, when the line crosses the overbought level 70 from top to bottom, a sell signal is triggered, also simultaneously a pending order in the opposite direction to buy is placed, when the line crosses the oversold level 30 from bottom to top, a buy signal is triggered and simultaneously a pending order to sell is placed. In this Expert Advisor, you can trade using one of two strategies separately, set the time for automatic removal of pending orders if they are not triggered, manage trades with customizable parameters for SL, TP, and lot sizes, and change the indicator period. There is also a trailing stop based on points and the Parabolic SAR indicator.
The Expert Advisor is structured to work with various market conditions and account conditions, making it adaptable to different trading scenarios. The RSI and Parabolic SAR indicators are automatically added to the chart when the Expert Advisor is launched. Input parameters The Expert Advisor allows users to set various input parameters, such as: - 'sltpInOrder' = true whether to include stop-loss (SL) and take-profit (TP) levels directly in the order, - 'auto5Digits' = true adjusts SL and TP for 5-digit brokers. Trading parameters: - lot = 0.01 the lot variable determines the size of the first position when using a fixed lot, - riskPerc = 10.0 the riskPerc variable determines the percentage of free funds used for the first trade, - useRisk = false the useRisk variable selects whether to use the lot variable (if false) or the riskPerc variable (if true) - stopLoss = 100
the StopLoss variable determines the amount of the stop loss in points, if the value is 0, the stop loss is not used, - takeProfit = 100 the TakeProfit variable determines the amount of the take profit in points, if the value is 0, the take profit is not used. RSI indicator settings, - rsiPeriod = 20, rsiPrice = Close price, shift = 0 . Parabolic SAR indicator settings, - Parabolic SAR Step = 0.02, Parabolic SAR Maximum = 0.2 . Position management settings: - buyCount = -1 the buyCount variable limits the number of buy positions, - sellCount = -1 the sellCount variable limits the number of sell positions, - totalCount = 1 the totalCount variable is the total number (the sum of buy and sell positions)
- OffsetPoints = 400 sets the distance in points from the price at which pending orders are placed. - InpHours = 48.0 sets the time in hours after which pending orders are automatically deleted.
