İş tamamlandı
İş Gereklilikleri
My main objective is so that the EA can backtest multicurrency based on my strategy. the indicators are made from PineScript TradingView.
1. General Strategy Overview
- What is the primary objective of your EA? (e.g., trend-following, mean-reversion, scalping, swing trading)
Trend following swing mainly 1D timeframe, with option for 4H, possibility for expanding to other timeframes but later.
- Are there any specific market conditions it should work best in? (e.g., trending, ranging)
I have tested on excel the strategy and found the best, so my actual main purpose using mql5 or mt5 backtesting is to find the multi equity backtest since tradingview where I usually use and code the indicators with don’t have that feature AFAIK.
2. Indicators and Signals
- What indicators are central to your strategy? (e.g., RSI, Moving Average, MACD, custom indicators)
There are maybe around 10 indicators, custom, I have the txt file of the code which mostly based on version 4 or 5 of pinescript tradingview, so you might want to convert that before moving on into creating a whole EA.
- How are these indicators used for entry and exit signals?
So from those choices of indicators, I’m enacting a similar rule to NNFX (no nonsense forex) strategy but only take baseline (BL), confirmation 1 (C1), and confirmation 2 (C2).
baseline has its own set of indicators choices while confirmation has its own (choose 2).
- Are there any confirmation rules? (e.g., multiple indicators agreeing before taking a trade)
Similar answer above
3. Entry and Exit Rules
- What are the exact conditions for opening a trade?
So rule in simple terms is just an indicator cross.
All BL are similar to moving average concept. Entry when BL cross close price (or use current bar open price if its easier to backtest?).
confirmations different concept but similar, entry when cross. Some indicators have 2 lines cross, some 0 cross while some middle value (50) cross. Usually value ranging from 0-100 but can be any value depend on the indicator, just like RSI, macd, and such.
Close > BL is long status, close < BL is short status.
2 line confirmation has its own slightly different rule which you can ask or I can define which line above that signify a long status. For 0 or 50 or other value cross, simply that above that value is long status while under that value is short status.
- Do you have separate rules for long and short trades?
Similar just use opposite right?
here’s long trade:
any indicators, BL, c1, or c2 that cross above. Then check if others already in long status, enter trade.
For example, c1 and c2 already in long status while BL not yet, then next candle BL cross above the close price which is a long entry.
short just opposite.
Each strategy open 2 trades (A and B). both have same SL with different TP and trailing.
- What are the conditions for exiting a trade? (e.g., take profit, stop loss, trailing stop, indicator-based exit)
I use ATR for money management, will explain later. Which also used for exit trade.
So 2 exit scenarios:
Any BL, c1, c2 cross opposite (just 1 indicator hence I said ANY), exit trade. If that indicator cross again while other still same status, reentry again. The entry ATR14 value is used quite a lot so need to keep this in mind.
Or, ATR14 x 1.5 SL is hit. Both trades (A and B) have the same SL. Trade A TP is ATR14 x 1.0, trade B TP is ATR14 x 6.0
Trade B when profit ATR14 x 2.0, trailing atr14 x 1.5. option to put trailing on or off
4. Risk and Money Management
- How much risk per trade? (e.g., percentage of account balance, fixed lot size)
I want input to take a custom balance and then the risk % from that custom balance.
So, if the custom balance input value is 10000. Input risk% is 1. Meaning that risk is 1% of 10000 which is 100. Fixed lot size and account balance calculation also available as dropdown choices.
- Are there any position sizing rules? (e.g., increasing size after wins/losses, grid or martingale elements)
Sizing depend following custom balance or the balance calculation mentioned above, other than that, no other strategy.
- Do you want features like break-even or partial close levels?
Add option later but optional.
5. Trade Management
- Should the EA manage multiple trades at once, or just one?
Multiple trades, there are different combinations that can be chosen for each category.
4 category: forex, crypto, commodities, indicies.
Each category can choose each BL, c1, and c2 choices.
So need 4 input spaces to manually (better this way since different brokers sometimes different symbols names) input the pairs into the category.
for example:
Forex: eurusd, usdjpy
Crypto: btcusdt, ethusdt
Commodities: xauusd, xtiusd
Indicies: spx500
- Do you want trailing stops or dynamic stop losses?
Mentioned above, but put it as optional so there is a Boolean choice of on/off trailing
- Are there any specific time-based restrictions? (e.g., only trade during specific hours, days of the week)
Later I want to implement news trading, only keep this in mind, no need to implement now, I want to test the basics first.
6. Timeframe and Market
- What timeframe will the EA operate on? (e.g., 1-minute, 1-hour, daily)
mainly 1D timeframe, with option for 4H, possibility for expanding to other timeframes but later.
- Which markets and symbols will it trade? (e.g., EUR/USD, indices, commodities)
Mentioned above, all but categorized.
7. Backtesting and Optimization
- Do you have historical data or parameters for backtesting?
Already backtested using tradingview chart data for the past 4-6 years and such. But all of them are individual per symbol, that’s why im creating mt5 version so that I can test multi currency.
- Would you like built-in optimization variables (for testing different parameter values)?
Yes let me know in advance.
8. Additional Features
- Do you want notifications (e.g., email, mobile) for trade executions or specific events?
Later, keep this in mind.
- Should it record data to files for further analysis?
Later, the results from mt5 backtest should suffice for now.
- Are there any special conditions or edge cases we need to consider?
Let me know follow up after you read this.
END RESULT INPUT
Fixed value on/off
indicators choices for each BL, c1, c2
Strategy choices (forex, crypto, commodities, indicies)
timeframe choices (4h or 1d)
SL and TP ATR multiplier input
risk management input