Specifiche
# Import necessary libraries
import pandas as pd
# Define parameters
stop_loss_percentage = 0.02 # Set stop loss percentage (2% in this example)
take_profit_percentage = 0.05 # Set take profit percentage (5% in this example)
# Read historical price data
df = pd.read_csv("historical_data.csv") # Replace with your historical data file or API integration
# Calculate moving averages
df['SMA_50'] = df['Close'].rolling(window=50).mean()
df['SMA_200'] = df['Close'].rolling(window=200).mean()
# Initialize variables
position = None
entry_price = 0.0
# Start trading loop
for i in range(200, len(df)):
current_price = df['Close'].iloc[i]
# Check for entry conditions
if position is None and df['SMA_50'].iloc[i] > df['SMA_200'].iloc[i]:
position = 'long'
entry_price = current_price
print(f"Enter long position at {entry_price}")
elif position is None and df['SMA_50'].iloc[i] < df['SMA_200'].iloc[i]:
position = 'short'
entry_price = current_price
print(f"Enter short position at {entry_price}")
# Check for exit conditions
if position == 'long' and current_price >= (1 + take_profit_percentage) * entry_price:
position = None
exit_price = current_price
print(f"Exit long position at {exit_price}")
profit = exit_price - entry_price
print(f"Profit: {profit}")
elif position == 'long' and current_price <= (1 - stop_loss_percentage) * entry_price:
position = None
exit_price = current_price
print(f"Exit long position at {exit_price}")
loss = exit_price - entry_price
print(f"Loss: {loss}")
elif position == 'short' and current_price <= (1 - take_profit_percentage) * entry_price:
position = None
exit_price = current_price
print(f"Exit short position at {exit_price}")
profit = entry_price - exit_price
print(f"Profit: {profit}")
elif position == 'short' and current_price >= (1 + stop_loss_percentage) * entry_price:
position = None
exit_price = current_price
print(f"Exit short position at {exit_price}")
loss = entry_price - exit_price
print(f"Loss: {loss}")
Con risposta
1
Valutazioni
Progetti
2
0%
Arbitraggio
1
0%
/
0%
In ritardo
2
100%
Gratuito
2
Valutazioni
Progetti
66
12%
Arbitraggio
12
58%
/
42%
In ritardo
1
2%
Gratuito
3
Valutazioni
Progetti
50
42%
Arbitraggio
3
33%
/
33%
In ritardo
4
8%
Gratuito
4
Valutazioni
Progetti
10
50%
Arbitraggio
6
17%
/
50%
In ritardo
3
30%
In elaborazione
5
Valutazioni
Progetti
4
50%
Arbitraggio
4
0%
/
75%
In ritardo
0
Gratuito
Ordini simili
I am looking for an experienced MQL4 developer to build a professional XAUUSD (Gold) grid recovery Expert Advisor for MT4. This is NOT a simple indicator or a basic grid EA. I am looking for someone with proven experience in grid / recovery / high-frequency trading systems, preferably on Gold (XAUUSD). GENERAL BEHAVIOR: - Symbol: XAUUSD only - Fixed lot size (no martingale, no lot multiplication) - High-frequency
//+------------------------------------------------------------------+ //| INDICES SCALPING BOT | //+------------------------------------------------------------------+ #property strict input double RiskPercent = 4.0; input int EMAtrend = 50; input int EMAPullback = 20; input int RSIPeriod = 14; input double ATRMultiplierSL = 3.0; input double ATRMultiplierTP = 2.5; double LotSize(double
Create a Profitable MT5 EA for XAUUSD(Gold)
30 - 200 USD
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and have a low drawdown. The developer will send a demo EA which I can test for myself. I am looking for more of a partnership with an experienced developer. Please no EA on demo accounts. The EA must be verifiable on real account
Profitable GOLD EA BOT
30+ USD
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and be verifiable on real account and have a low drawdown. The developer will send a demo of the EA which I can test for myself. I am looking for more of an experienced developer. Please no EA on demo account
Development Request – AI Precision Enhancement
30 - 72 USD
📌 Development Request – AI Precision Enhancement I would like to clarify my request clearly and precisely. The current trading strategy is strong, stable, and effective , and I do not want to modify or replace the core strategy logic in any way . The goal is only to enhance entry and exit precision , not to redesign the system. ✅ Scope of Work (Required) Please keep the existing strategy exactly as it is , and add
Oluwaleye Blessing Olumide
30+ USD
We're looking for a highly motivated and detail-oriented individual to fill a key position in our team. The successful candidate will be responsible for driving projects forward, analyzing complex data, and collaborating with cross-functional teams to achieve business objectives. The role requires exceptional problem-solving skills, effective communication, and adaptability in a fast-paced environment. If you're a
EA DEVELOPMENT
50+ USD
Hello, I’m interested in developing an Expert Advisor (EA). I will send you the details and examples of the type of EA I need. Please log in and review them so you can understand my requirements
Mt5 alert fix
40+ USD
i have a indicator on mt5 im using it right now , you can see the performance attached Am using the Ma filter to avoid false signals I developed this indicator myself But the signals are delaying in alerting Check if you can perfect and if you Can you work on it let me know Let me know if there anything you can do to make it perfect without lagging or delaying
Mt4 indicator
40+ USD
hello great developer Can you develop an MT4 indicator non repaint with accuracy of at least 70% for binary options trading, 1 minutes expiry time frame. Specifically on Quotex Something like this, check attached files Don't forget I trade 1Minutes expiry time frame on binary options Quotex
I already have an EA and willing to work together with a talented professional programmer so that we can make a profitable EA for the long-term. RazorQuant AI | Buy Trading Robot (Expert Advisor) for MetaTrader 5 RAZORQUANT AI v3.7 (MT5 EA) Purpose: Automated trading EA that combines classic technical filters with machine-learning signals and optional external AI (LLM) advice to decide BUY/SELL/HOLD and manage
Informazioni sul progetto
Budget
30+ USD
Scadenze
da 1 a 2 giorno(i)