07/07/2023
Here's a breakdown of the strategy Evisu :
The EA uses the RSI indicator with a period of 14 and the 21-day simple moving average (SMA).
The input parameters allow you to customize various settings, such as lot size, take profit points, distance points, multiplier, and RSI period.
The OnTick() function is the entry point of the EA and gets executed on each tick of the price.
The EA calculates the current Ask and Bid prices and initializes variables for profit tracking and lot size determination.
It loops through all the open positions to calculate the total profit points and identify the highest lot size.
If the total profit points exceed the defined take profit points (TpPoints), it closes all open positions, resets variables, and deletes any pending orders.
If there are no open positions, the EA generates a trading signal based on the MA21RSI() function.
If the signal is "BUY," it places a buy order with the specified lot size and calculates the next buy price and sell price based on the distance points.
If the signal is "SELL," it places a sell order with the specified lot size and calculates the next sell price and buy price based on the distance points.
The EA then creates horizontal lines (objects) to represent the next buy and sell prices, sets their properties, and moves them as the price changes.
Finally, the EA displays the signal, next buy price, and next sell price in the chart's comment section.
Please note that while the strategy incorporates RSI and MA concepts, profitability and performance depend on many factors, including market conditions, instrument selection, and risk management. It's crucial to thoroughly test and validate the strategy before using it in live trading and to consider personal risk tolerance and investment goals.
Keep in mind that no trading strategy can guarantee 100 percent profitability, and it's essential to continuously monitor and adapt your approach based on market conditions and performance analysis.