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, I am looking for a experienced coder to develop me a EA. please follow the link to watch the video about the EA https://youtu.be/p-Zb8hGXvOg additional files will be attached here. if possible done by Friday before the market closes to test the EA would be greatly appreciated
I need a trading bot
30 - 300 USD
I need an ai trading bot that trades automatically no need to set anything up should be fully automatic and work looking for a specific developer who applied please apply if you see this need this ai and to ask further questions about it thanks
Ai trading bot for gold and forex
30 - 10000 USD
im looking for a very high end robot that trades using ai and self optimization that learns and adapts to market conditions im looking for a specific developer but they canceled there application if you find this please apply im still interested and anyone else
Hello, hope you’re doing well Below is the scope of work and responsibilities for the project, so we can finalize the agreement before starting development. Project Title: Development of a Signal-Only Expert Advisor (EA) for MetaTrader 5 based on Smart Money Concepts (Order Block + CHoCH + Engulf) Main Objective: To build an analytical and signal-generating EA (no live trading) that automatically analyzes market
Orionis EA
30+ USD
Title: Ultimate MT4 Gold Scalper — Bank-Grade Strategy + Secure Serial-Key Licensing + Advanced HUD Description: I want a powerful, professional MT4 Expert Advisor for XAU/USD (M1) built like institutional systems (Wall Street / commercial banks): a single, robust strategy — no random trades, no spam entries. The EA must be commercializable and include a secure serial-key licensing system so only keys I register can
TOS Watchlist column
30 - 45 USD
I want to make a TOS watchlist column, if you are interested send me a sample of the previous Thinkorswim watchlist column, i still have more project anyone who does the job well will be a long term working partner
Got it. Here’s a clean, developer-ready Genesis X / Retail AI Specification that captures everything we locked. It’s written so a dev (or you) can implement the logic and infrastructure without exposing proprietary internals. No code—just exact behavior, numbers, and guardrails. WealthFoundryX – Trading AI Spec (Developer Handoff) 0) Scope & Roles Products: Genesis X (Institutional) – seed/master, not sold. Retail
Portfolio website development
50+ USD
Hello, I need a portfolio website design. I want a website where my trading results and orders will be uploaded manually, not by an EA. My budget is 50$, kindly send a DM if you can get this done. SEND A DM AND I WILL PROVIDE YOU THE REQUIREMENT I WANT THE MOST ACTIVE PERSON WHO CAN GET STARTED IMMEDIATELY AND DELIVER IN THE NEXT 4 DAYS I WILL SHARE THE FULL DETAILS WITH YOU IN THE CHAT SECTION
Portfolio website design
50+ USD
Hello I posted something like a portfolio website design, but I was unable to log in That is why I created a new one. If you are sending an application and you are among those who sent yesterday, kindly signify I want a website where my trading results and orders will be uploaded manually, not by an EA. My budget is 50$, kindly send a DM if you can get this done SEND A DM AND I WILL PROVIDE YOU THE REQUIREMENT
Safe Monthly Profit Strategy
30 - 60 USD
Manage my live forex account with a disciplined, low-risk approach that produces steady monthly income. My priority is capital protection, so each trade must be sized conservatively, anchored by firm stop-loss orders, and designed to keep drawdown minimal. High-risk tactics such as martingale, grid systems, or excessive leverage are off the table; a measured, rules-based strategy is essential. I will connect the
Informazioni sul progetto
Budget
30+ USD
Per lo sviluppatore
27
USD
Scadenze
da 1 a 2 giorno(i)