Termos de Referência
//+------------------------------------------------------------------+
//| Emmanuels Bot |
//| Copyright © 2023 Emmanuel |
//| https://www.example.com |
//+------------------------------------------------------------------+
//|----------------------------------------------------|
//| Trading Strategy Parameters |
//|----------------------------------------------------|
input double Key_Value = 2.0; // Key Value to adjust sensitivity
input int ATR_Period = 10; // ATR Period
input double Lot_Size = 0.05; // Lot Size for orders
input int Take_Profit = 20; // Take Profit in pips
//|----------------------------------------------------|
//| Indicator |
//|----------------------------------------------------|
double xATRTrailingStop; // Trailing Stop value
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void OnTick()
{
double atr = iATR(_Symbol, _Period, ATR_Period, 0); // ATR value
double nLoss = Key_Value * atr; // Dynamic Loss value
double stopLoss = 0; // Stop Loss value
// Calculate the Trailing Stop
if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop))
{
xATRTrailingStop = MathMax(xATRTrailingStop[1], Close[0] - nLoss);
}
else
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
{
xATRTrailingStop = MathMin(xATRTrailingStop[1], Close[0] + nLoss);
}
else
{
if(Close[0] > xATRTrailingStop)
{
xATRTrailingStop = Close[0] - nLoss;
}
else
{
xATRTrailingStop = Close[0] + nLoss;
}
}
// Check for entry signal
if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop)
{
if(PositionsTotal() == 0)
{
// Open Buy Order
double stopLoss = xATRTrailingStop - nLoss;
double takeProfit = xATRTrailingStop + Take_Profit * _Point;
OrderSend(_Symbol, OP_BUY, Lot_Size, Ask, 3, stopLoss, takeProfit, "Buy Order", 0, 0, CLR_GREEN);
}
}
else
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
{
if(PositionsTotal() == 0)
{
// Open Sell Order
double stopLoss = xATRTrailingStop + nLoss;
double takeProfit = xATRTrailingStop - Take_Profit * _Point;
OrderSend(_Symbol, OP_SELL, Lot_Size, Bid, 3, stopLoss, takeProfit, "Sell Order", 0, 0, CLR_RED);
}
}
// Check for exit signal
if(PositionsTotal() > 0)
{
if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
{
// Close Buy Order
OrderClose(PositionGetTicket(0), Lot_Size, Bid, 3, CLR_GREEN);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
I NEED TO DEBUG THIS CODE
Respondido
1
Classificação
Projetos
308
15%
Arbitragem
20
40%
/
35%
Expirado
16
5%
Carregado
2
Classificação
Projetos
641
41%
Arbitragem
21
57%
/
29%
Expirado
47
7%
Trabalhando
3
Classificação
Projetos
3
33%
Arbitragem
0
Expirado
0
Livre
4
Classificação
Projetos
72
22%
Arbitragem
13
46%
/
15%
Expirado
5
7%
Livre
5
Classificação
Projetos
79
9%
Arbitragem
34
9%
/
53%
Expirado
6
8%
Carregado
6
Classificação
Projetos
1430
62%
Arbitragem
21
57%
/
10%
Expirado
43
3%
Livre
7
Classificação
Projetos
19
26%
Arbitragem
4
25%
/
25%
Expirado
1
5%
Livre
8
Classificação
Projetos
698
56%
Arbitragem
43
30%
/
33%
Expirado
113
16%
Trabalhando
9
Classificação
Projetos
514
33%
Arbitragem
26
38%
/
46%
Expirado
7
1%
Carregado
10
Classificação
Projetos
4
0%
Arbitragem
0
Expirado
1
25%
Livre
Pedidos semelhantes
Converting TradingView Strategy into MQL5 EA
40 - 60 USD
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
Robotics Artificial Intelligence
100+ USD
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
Ema crossover strategy
30+ USD
// @version= 5 strategy ( "EMA Crossover Strategy with 1:1.6 Risk-Reward" , overlay = true ) // Define the EMAs shortEma = ta.ema ( close , 10 ) longEma = ta.ema ( close , 20 ) // Plot the EMAs on the chart plot ( shortEma , color = color.blue , title = "10 EMA" ) plot ( longEma , color = color.red , title = "20 EMA" ) // Calculate the crossover conditions longCondition = ta.crossover ( shortEma , longEma )
Create Forex Robot
30+ USD
Make a 10000 plus script trading Expert advisor with detail and make it flawless with no errors no tiny mistakes and make it in mql 5 language. Make it adjustable for it to be able to trade on its own and not be disturbed and make it study the chart and be able to trade any currency pair. I have zero experience and I would just like to copy and paste the code in MetaTrader. Can you make it be compatible with both
Need stochadtic divergence EA
30 - 40 USD
Need ea according to stochastic divergence (both hidden and regular) plus candlestick flip .. need for experinced developers to complete my order with 99percent accuracy. So bet for it the budged is fixed and other plugins will be added in the v2
IBKR trades to MT5 copier
30+ USD
looking for help to get my ibkr automated, i have strategies already built in composer and have JSON for them, i really just need to he setup and explanation on how to maintain it and add new strategies
Money Management System
30 - 250 USD
// Define the properties input int ShortPeriod = 12; input int LongPeriod = 26; input double LotSize = 0.1; // OnTick function is called every time there is a price update void OnTick() { double shortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 0); double longMA = iMA(NULL, 0, LongPeriod, 0, MODE_SMA, PRICE_CLOSE, 0); double prevShortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
AI SIGNAL GENERATING BOT
30 - 33 USD
I need a AI signal generating bot for forex trading. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the arrow should be green and if it is
An EA based on Fibonacci
100 - 300 USD
I am in need of 2 EA based on Fibonacci re-tracement after a high or low is made,each EA will have a hedge trade on it.the hedge trade will be at the 38 percent of the Fibonacci..this will be present on the 2 EA, the 2 EA will have different levels of re-tracement, while the hedge trade will be a continuation (buy/sell stop), while the re-tracement trades will be (buy/sell limit)This EA must work on timeframe ranging
DJANGO EA
30 - 1000 USD
I need smart, professional, and fast programmer for doing this project quickly, that have experience in EA with minimum 500 projects finish, and have good review and reputation from their client Share your link review, if you not qualified, dont apply! I will bidding the programmer from experience, review, reputation, price, and days working My EA using Moving Average, Average True Range, and using consecutives
Informações sobre o projeto
Orçamento
30+ USD
IVA (19%):
5.7
USD
Total:
35.7
USD
Desenvolvedor
27
USD