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
Hello, After extensive testing, I have identified the key improvements needed to make the EA truly professional. Please find below the final specifications: 1. Core Issue to Fix (Most Important) The EA currently opens trades between support and resistance levels , not on actual breakouts. This must be corrected: Real Breakout Only : Price must close above/below level, not just touch it Candle Confirmation : Wait for
An EA based on 3 moving averages needed
80 - 100 USD
Hi, I looking for a developer to help me create an EA. The EA is using 3 moving averages system namely green,red and blue MA. The EA must work on this principles. For buy setup, red MA must close above blue MA. Bullish candlestick must close above green MA. For sell setup, green MA must close below blue MA. Bearish candlestick must close below red MA. The EA also must be able to use optimization parameters,news
Selling an account flipping ea
300 - 800 USD
Hello, im offering my Flip EA as a service. Real numbers. Live account. No BS. Verified Stats (live MT5): • Growth: +78–81% in days • Max Drawdown: 3.05% only • Best trade: +6,872% profit on single position Runs fully automated on XAUUSD 24/5. Small account friendly – built for fast, aggressive flipping with tight risk control. Tell me your capital, I’ll tell you what’s realistic
I saw this somewhere else - I want it too!
30 - 50 USD
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop
https://www.mql5.com/en/market/product/157084?source=Site+Profile+Seller . THE INDICATOR MUST read pairs on the market watchlist and be able to display them on the chart as inverted or non inverted. under settings Give an option to display the indicator on the main window or indicator window. *this is important* add a price line to the indicator please i am not accepting any concepts or anything similar. i want the
Automatic Level Detection Group]
30 - 100 USD
[Automatic Level Detection Group] - Enable Auto Detection: Yes/No - Number of Levels Required: (Number) 3-5 - Lookback Bars: (Number) 100-200 - Minimum Touches for Strong Level: (Number) 2 - Use Zig Zag Algorithm: Yes/No - Use Level Clustering: Yes/No - Max Cluster Distance (points): (Number) [Display and Drawing Group] - Resistance Line Color: (Color) - Support Line Color: (Color) - Show Info Labels: Yes/No - Lines
I am looking for a long-term collaboration.
30 - 100 USD
I am looking for a partner who can help scale an already working Forex trading system by bringing clients and capital. --------------------------------------- What I have: • Fully developed multi-pair Forex EA (28 pairs) • ~15+ years backtest data • ~2 years live trading • Strong convergence between backtest and live performance • Existing presence on copy trading platforms • Infrastructure to host trading terminals
Profitable EA for sell
200 - 1000 USD
I am having 2 very proven and profitable EA which will give you profit and at the end of week you are always in profit. 1 This bot is safe bot and it generates handsome amount of profit with very less drawdown and high accuracy of 75-85%. 2. This bot is very aggressive and will suggest to go with only when you are having big capital and wanted to take more risk. It can make your account multiple fold
* For Buy - Time = greater than _______ and Less than ______ Remove SL , Time = greater than _______ Replace SL At _______ and also Spread= Less than ( points) ________ ( Same condition for sell side also ) at opposite direction . * For Buy - Time = greater than ______ and price is Below _______ and spread is lower than ( points) _____ cut loss . ( Same condition for sell side also) At opposite direction
The strategy is already fully defined with exact logic, scoring system, entry rules, risk management, and execution protection (spread, slippage, deviation). The strategy is already fully defined with exact logic, scoring system, entry rules, risk management, and execution protection (spread, slippage, deviation). Please follow the specification strictly without any discretionary interpretation
Informazioni sul progetto
Budget
30+ USD
Scadenze
da 1 a 2 giorno(i)