Hello everyone, I developed an interesting robot for Trend Trading, as this is its nature, I recommend using it in assets that have this characteristic, such as stocks and indices.
Feel free to test, perform optimizations and share the results here
Trade Logic:
Closing Trades:
Feel free to test, perform optimizations and share the results here
Trade Logic:
- Buy Conditions (Long):
The robot buys when the price breaks above a certain level defined by a multiplier of the ATR value, signaling a potential uptrend. It only opens a buy if long positions are allowed and no sell position is open.
- Sell Conditions (Short):
The robot sells when the price breaks below a certain level, signaling a possible downtrend. The sell is executed only if short positions are allowed and no buy position is open.
Closing Trades:
- Closing Buy:
The buy position is closed if the price breaks below the lower level, indicating a reversal or either the take profit or the defined stop loss is reached, whichever happens first - Closing Sell:
The sell position is closed when the price breaks above the upper level, also signaling a reversal or either the take profit or the defined stop loss is reached, whichever happens first
Stop Loss, Take Profit, and Trailing Stop:
Stop loss and take profit levels are automatically set using ATR multipliers, which adjust according to market volatility. Additionally, a trailing stop feature moves the stop loss as the trade becomes profitable, helping to lock in gains.
Capital curve of the last 10 years in APPL H1
Below I will also attach the parameters used in this optimization
Attached File(s)
Attached File(s)