Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Advisor Based on RSI and Martingale - expert for MetaTrader 5

Views:
8083
Rating:
(5)
Published:
2023.09.12 13:46
Updated:
2023.10.14 20:22
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance


This advisor utilizes the RSI indicator and performs adaptive search for minimums and maximums to determine optimal entry and exit points in the market. The advisor analyzes the last `BarsForCondition` candles to gauge the current market condition.

Entry and Exit Strategy

Entry: The advisor opens a position based on signals from the RSI indicator.

  •   - Buy: if RSI reaches a minimum over the specified `BarsForCondition` bars.
  •   - Sell: if RSI reaches a maximum over the specified `BarsForCondition` bars. 

Exit: Positions are closed upon reaching TakeProfit or StopLoss levels, which are set in points via the `TakeProfit` and `StopLoss` parameters.

Signal Filtering

  • Time: The advisor trades only within the time interval specified between `StartTime` and `EndTime`.
  • News Avoidance: The advisor avoids trading during time periods specified in the `NewsTimeToAvoid` parameter.
  • Spread: Maximum allowable spread values are set through the `MaxSpread` parameter.

Additional Settings

Martingale: The advisor can employ a martingale strategy to increase the lot size during market reversals. This feature is activated by the `Upheaval` parameter and the `MartingaleMultiplier`.

Automatic Chart Refresher Automatic Chart Refresher

A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.

Stochastic code for beginners by William210 Stochastic code for beginners by William210

Stochastic beginner tutorial to learn how to code in MQL5

Wick Ratio Candlesticks Wick Ratio Candlesticks

Wick Ratio Candlesticks are recognized by its upper and lower wick ratio instead of open and close properties.

Hull Moving Average Hull Moving Average

Here is my implementation of a colored Hull Moving Average.