Termos de Referência
Designing and programming a trading strategy for an automated trading robot requires a comprehensive approach that involves several steps:
1. **Define Strategy**: Decide on the trading strategy you want to automate (e.g., moving average crossover, mean reversion, breakout strategies).
2. **Choose Platform**: Select a trading platform or framework that supports automated trading. Examples include MetaTrader (MQL), NinjaTrader (C#), or Python-based platforms like MetaTrader with Python API, or using Python libraries like `backtrader` or `pyalgotrade`.
3. **Coding the Strategy**: Write the code for your strategy. Here's a basic example in Python using the `backtrader` library:
```python
import backtrader as bt
class MyStrategy(bt.Strategy):
def __init__(self):
# Define indicators, parameters, etc.
self.sma_short = bt.indicators.SimpleMovingAverage(self.data.close, period=20)
self.sma_long = bt.indicators.SimpleMovingAverage(self.data.close, period=50)
def next(self):
if self.sma_short > self.sma_long:
# Buy signal
self.buy()
elif self.sma_short < self.sma_long:
# Sell signal
self.sell()
if __name__ == '__main__':
cerebro = bt.Cerebro()
cerebro.addstrategy(MyStrategy)
data = bt.feeds.YahooFinanceData(dataname='AAPL', fromdate=datetime(2020, 1, 1), todate=datetime(2023, 1, 1))
cerebro.adddata(data)
cerebro.run()
cerebro.plot()
```
This example defines a simple moving average crossover strategy and runs it on historical data retrieved from Yahoo Finance.
4. **Backtesting**: Backtest your strategy extensively using historical data to evaluate its performance and fine-tune parameters.
5. **Implement Risk Management**: Integrate risk management techniques such as position sizing, stop-loss orders, and portfolio allocation.
6. **Live Trading**: Once backtesting is satisfactory, connect your strategy to a live trading account through the API provided by your chosen platform.
7. **Monitor and Improve**: Continuously monitor the performance of your automated trading robot and make adjustments as necessary.
Remember, designing effective trading strategies requires a good understanding of both programming and trading principles. Always test thoroughly before deploying any strategy in live trading to mitigate risks.
Respondido
1
Classificação
Projetos
19
16%
Arbitragem
3
67%
/
0%
Expirado
0
Livre
2
Classificação
Projetos
259
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
3
Classificação
Projetos
193
58%
Arbitragem
10
80%
/
0%
Expirado
0
Livre
Publicou: 1 código
4
Classificação
Projetos
63
52%
Arbitragem
5
0%
/
40%
Expirado
1
2%
Livre
5
Classificação
Projetos
18
28%
Arbitragem
4
50%
/
50%
Expirado
1
6%
Livre
6
Classificação
Projetos
7
0%
Arbitragem
8
13%
/
75%
Expirado
3
43%
Livre
7
Classificação
Projetos
65
34%
Arbitragem
4
25%
/
50%
Expirado
9
14%
Trabalhando
8
Classificação
Projetos
6
33%
Arbitragem
7
0%
/
71%
Expirado
0
Livre
9
Classificação
Projetos
474
39%
Arbitragem
103
41%
/
23%
Expirado
79
17%
Ocupado
Publicou: 2 códigos
10
Classificação
Projetos
2
0%
Arbitragem
4
25%
/
75%
Expirado
1
50%
Livre
11
Classificação
Projetos
28
29%
Arbitragem
2
0%
/
50%
Expirado
1
4%
Livre
12
Classificação
Projetos
91
13%
Arbitragem
34
26%
/
59%
Expirado
37
41%
Livre
Pedidos semelhantes
ZigZag EA Upgrades & debbuging !
40+ USD
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Message to Developer + Request for Best Settings
30 - 50 USD
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Looking for a good EA
30 - 100 USD
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
Fractal break based indicator
30 - 75 USD
Hi, I need a custom MT5 indicator based on a multi-timeframe fractal break reversal. 1️⃣ The indicator should use two timeframes: Higher Timeframe (HTF) Lower Timeframe (LTF) (Timeframes should be adjustable in inputs, e.g., HTF = H1 and LTF = M5) 2️⃣ Use standard fractals to detect fractal highs and fractal lows. 3️⃣ Primary signal (HTF): When a Lower High fractal is formed and price breaks that Lower High in one
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy
Informações sobre o projeto
Orçamento
30 - 500 USD
Prazo
de 1 para 10 dias