Hello,
I am a long time user of Tradestation (TS) and EasyLanguage (EL) and have been trading my own automated futures strategies. Looking into trading Forex (not available through TS, although it has the historical datas to test) with MT4 (already have MT4 accounts with brokers).
I have created a strategy in EL that I am not MQL4 litterate enough to code.
My EL code will be integrally available to translate into an EA in MT4. But decribing the strategy and going by steps, you should not need to be EL litterate.
The strategy basics:
* Martingale (yeah, i know...)
* will trade long side and short side on two differents charts and will not have to talk to each other
* Trade multiple pairs (between 4 and 8) at the same time. 1 hour TF. No other EA running on same pair but magic number would still be needed just in case.
* will trade @market at end of a bar (if conditions are met), so basically @open of next bar
* conditions very straight forward (if C - C[1] >= "gap" {input} then sell @ market, reverse for buy side) for first entry after take profit or stop previously reached. Then, if first entry done, add to the position every time a bar closes "gap" down from the previous entry price (for longs) ie averaging down (yeah I know again...). Reverse the process for shorts.
* will of course pyramid into positions (multiple of previous entry #lots, no number of entries limit, number of total lots as an input) and exit all position at a take profit limit order
* average entry price for the whole position will be #lots affected of course, as lots increase every new position taken in the same initial position
* will have a stop loss (position based, $) based on pair traded, and a take profit "target" {input} from the VWAP of the whole position.
* will have a portfolio stop
* If target or stop hit, then restart to point 5 above.
Inputs that have to be tested/changed will be:
gap(pips), target(pips), stop($), start#lot(ex: 0.10),fact#lot(ex: 1.50), mart(0 or 1); portfstop(xx% of portfolio value with open positions P&L)
"mart" is a number that is used to test/trade which increase in the number of lots we use:
if mart = 0 then {add to previous position #lots} #lotsposition2 = #lotsposition1 + fact#lot
if mart = 1 then {multiply from previous position #lots} #lotsposition2 = #lotsposition1 x fact#lot
I attach a snap of a EURCHF chart with the system positions. "1000 lots" in TS means 0.01 lots in MT4.
Optionnaly, I'd like to have a code for an indicator that shows on a chart the average price of a position (white dots on my chart) and its target price (blue dots on my chart).
I hope I have explained simply and clearly the concepts. Of course, as said, my working EL code will be available. And we will have to clear out together all misunderstandings concerning the startegy behaviour before you start coding so you will not have to get back to previous code that would need re-writing to cater for misunderstandings or new features from my side. Been there, done that ;-)
Thank you for reading. Hope to work together.
Solicitudes similares
Good morning, I have a Gap Fill strategy and a 10 min opening range break strategy that trade on RTH ES Futures data I have been working on that seem to have some bugs while live trading. They have both been coded by ChatGPT so I would like someone that know how to properly code a strategy to go over each to proof and debug them. Would you be able to do this and could you possibly add some context or features that
I have attached the demo version of the EA and the performance graph Below run it on the strategy tester to confirm that it is working. It is based on order flow combined with a rigorously tested risk management system. It is going for $1000 , you will pay $150 now and $850 after 1 month (I am sure you will have made enough profits to cover the balance).Dm me if you have any questions
i need ninjatrader strategy, i want to buy this strategy, i mean an existing ninjatrader strategy, we can make deal after i have seen the backtest of the ninjatrader strategy, my budget is within 100 to $120
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 mechanisms
I am looking for an experienced MT4 (MQL4) developer to build a Harmonic Pattern Indicator with a PRZ (Potential Reversal Zone) detection system , similar to advanced harmonic scanners. Kindly apply if you can handle this project. Note: I don't want unprofessional developer
hello, i want a convertion of this trading view indicator FVG (NEPHEW_SAM_) to mql5 to be add later to an expert advisor. i want to access this data, gap data printed on current timeframe and multi timeframe that i choose (current, timeF1, timeF2, timeF3, timeF4)(gap time, gap value, top gap value, low gap value, gap type bull / bear, gap type iFVG or FVG). a function that check if the price is checking the gap at
I have developed a ready-made quantitative trading system for MetaTrader 5. The system uses an ensemble of machine learning models (XGBoost, LightGBM, Random Forest) combined with a market regime filter based on a Hidden Markov Model. Core features: - Automated trading for XAUUSD - Risk management and dynamic position sizing - Market regime detection (trend / range) - Volatility filter - Telegram monitoring interface
Hello, I am looking for an experienced MT5 (MetaTrader 5) developer to create a simple and reliable Forex trading EA. Broker: Skyriss Platform: MT5 Requirements: • EA should work only on Forex pairs (EURUSD, GBPUSD, USDJPY, USDCHF) • Around 1–2 trades per day is enough • Proper risk management with Stop Loss (SL) and Take Profit (TP) • Prefer low-risk trading with 0.01–0.03 lot depending on balance • No martingale or
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Key Requirements: Source Account: Connect to a Master account using Investor (Read-only) Password. Destination Account: Execute trades on a Live Slave account with full trading access. Currency Focus: The system must handle Currency Pairs accurately, including symbol mapping (e.g., EURUSD to EURUSD.m) between different brokers. Stealth Features: Remove/Disable all trade comments. Assign custom Magic Numbers to the