Specification
// Forex Strategy for Consistency in Profit
// Input parameters
input int FastMAPeriod = 10; // Period for the fast moving average
input int SlowMAPeriod = 30; // Period for the slow moving average
input double StopLossPips = 50; // Stop loss in pips
input double TakeProfitPips = 100; // Take profit in pips
// Global variables
int ticket = 0; // Order ticket number
// Indicator buffers
double fastMABuffer[];
double slowMABuffer[];
// Initialization function
int OnInit()
{
// Define indicator buffers
SetIndexBuffer(0, fastMABuffer);
SetIndexBuffer(1, slowMABuffer);
// Set indicator plot type
SetIndexStyle(0, DRAW_LINE);
SetIndexStyle(1, DRAW_LINE);
// Set indicator colors
SetIndexLabel(0, "Fast MA");
SetIndexLabel(1, "Slow MA");
SetIndexDrawBegin(0, SlowMAPeriod);
SetIndexDrawBegin(1, SlowMAPeriod);
// Set indicator parameters
SetIndexShift(0, 0);
SetIndexShift(1, 0);
SetIndexEmptyValue(0, 0);
SetIndexEmptyValue(1, 0);
// Return successful initialization
return INIT_SUCCEEDED;
}
// Trading function
void OnTick()
{
// Calculate moving averages
ArraySetAsSeries(fastMABuffer, true);
ArraySetAsSeries(slowMABuffer, true);
int fastMA = iMA(Symbol(), 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
int slowMA = iMA(Symbol(), 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
// Check for a crossover
if (fastMA > slowMA && fastMABuffer[1] <= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new buy position
ticket = OrderSend(Symbol(), OP_BUY, 0.1, Ask, Slippage, Ask - StopLossPips * Point, Ask + TakeProfitPips * Point, "Buy Order", 0, 0, Green);
}
else if (fastMA < slowMA && fastMABuffer[1] >= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new sell position
ticket = OrderSend(Symbol(), OP_SELL, 0.1, Bid, Slippage, Bid + StopLossPips * Point, Bid - TakeProfitPips * Point, "Sell Order
Responded
1
Rating
Projects
66
12%
Arbitration
12
58%
/
42%
Overdue
1
2%
Free
2
Rating
Projects
32
28%
Arbitration
5
60%
/
40%
Overdue
6
19%
Free
3
Rating
Projects
2
0%
Arbitration
1
0%
/
0%
Overdue
2
100%
Free
4
Rating
Projects
632
33%
Arbitration
39
38%
/
49%
Overdue
11
2%
Loaded
5
Rating
Projects
641
41%
Arbitration
25
48%
/
36%
Overdue
46
7%
Working
6
Rating
Projects
4
50%
Arbitration
4
0%
/
75%
Overdue
0
Free
Similar orders
Data Integrity
500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
1. General Objective Development of an Expert Advisor in MQL5 intended for Futures markets , based on an existing trading strategy that I will provide (described logic or precise rules). The main objectives are: Faithful implementation of the strategy , Full debugging of the EA, Validation of correct behavior through backtesting. 2. Markets and Instruments Markets: Futures Symbols: to be defined (e.g. indices
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this
hello every one i have a sample strategy i need a expert for automatical trade on vps pls let me know if every one can summer of expert : mixed 2 EMA and hicenashi + money managment i will need test befor pay
I need editing of EA
30+ USD
Am looking for am experience Programmer who can Edit and compile 2 Ea"s that i built with the help of CHATGPT. I need the job to be done within one day and I will prove the source code
AI SIGNAL GENERATING BOT
30 - 35 USD
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. 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
Task Title Implement Martingale Lot Scaling Sync Between Master and Slave MT4 Trade Copier Background I am using a local master–slave trade copier setup with: 1 Master MT4 4 Slave MT4 terminals Trades are currently copied correctly (entry, direction, symbol, SL/TP). Lot size handling currently copies either: the exact master lot, or a fixed base lot defined on the slave (e.g., always 0.01 or 1.0). Problem When the
Juniardy Meggi Tappi
30+ USD
Juniardy Meggi Tappi please help give for you many that for my wallect trading well my try may traiding forrex please...so i'm say so really thank you mybe just 30 usd
Robot Requirements Specification
30 - 100 USD
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
Project information
Budget
30+ USD
Deadline
from 1 to 30 day(s)