1) Idea
Based on all of the most recent x (e.g. 30) number of bars, (x = input variable)
Calculate at start of each bar:
MaxOpenClose = the maximum of ( maximum of Open, maximum of Close) of all of most recent x bars
MinOpenClose = the minimum of ( minimum of Open, minimum of Close) of all of most recent x bars
Level_1 = ( MaxOpenClose - MinOpenClose ) * Ratio_1
Level_2 = ( MaxOpenClose - MinOpenClose ) * Ratio_2
LevelCounter_1 = Number of times, in the most recent x number of bars, the High was >= Level_1
LevelCounter_2 = Number of times, in the most recent x number of bars, the Low was <= Level_2
Trading is done based on the ratio of LevelCounter_1 and LevelCounter_2
LevelCounter_1 and LevelCounter_2 will always be >= 0 and <= x
Output all these values to the journal window with each bar.
"most recent" excludes the current "in progress" bar
2) Trading signals:
if LevelCounter_1 > LevelCounter_2 ; buy signal
if LevelCounter_1 <= LevelCounter_2 ; sell signal
3) Positions are opened at the market price; subject to that there are no more open positions as specified by the MaxOpenBuyOrders input parameter for Buys
and MaxOpenSellOrders for sell orders.
A buy position is opened if LevelCounter_1 > LevelCounter_2 for lot size = LotSize ( LotSize = input parameter)
A sell position is opened if LevelCounter_1 < LevelCounter_2 for lot size = LotSize ( LotSize = input parameter)
If the order cannot be executed successfully for whatever reason, try again in each tick, for the next 10 ticks, to do again.
4) Additional filter for position opened
Minimum average volume of last x number of bars >= MinAvgVolumeToOpen (input parameter)
5) Positions are closed when
a) StopLoss (input parameter) is reached.
or b) ProfitTarget (input parameter) is reached.
6) Position management
TrailingStop is used; while the price move in the profit direction, the stop loss should trail at the StopLoss (input parameter) value.
The Stop Loss is never moved towards the loss direction.
The robot should work on any forex pair, any time frame.
Inputs:
x // Number of most recent bars to take into consideration,e.g. 10
Ratio_1 // Used in calculation
Ratio_2 // Used in calculation
MaxOpenBuyOrders // e.g. 5
MaxOpenSellOrders // e.g. 5
LotSize // e.g. 0.01
StopLoss // e.g. 30
ProfitTarget // e.g. 100
MinAvgVolumeToOpen // e.g. 40
相似订单
I am looking for an experienced MQL5/MT5 developer to develop a custom Expert Advisor based on a complete technical architecture already prepared by the client. This is not a request to design a trading strategy from scratch . The strategy architecture, entry/exit concepts, filters, risk-management requirements and testing requirements are already documented. The main responsibility will be MQL5 development
seller must provide the following to be considered... i will answer to all who fit this description, and can purchase more than 1 EA... - brief strategy description - overall EA expectancy - 1 week limited trial version, with whatever settings you consider best (can be blocked on demo, i don't really care) - investor password from a reputable broker (if history is available... live / demo, same thing, doesn't really
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
Le robot devra : Respecter strictement les règles de risque des comptes FTMO : perte journalière maximale, perte maximale totale, taille des positions, etc. Intégrer un système de gestion du risque automatique. Être capable de gérer différents types de comptes et tailles de capital. Être basé sur ma stratégie et mes règles de trading que je fournirai au développeur. Être entièrement automatisé pour l’exécution des
I need a trading system similar to the attached files. Check attachment for details on the indicator. i guess the indicator contains some of (Rainbow MA , MTF Dashboard , Symbol Switcher , and Trend Histogram), though may not be exactly as listed
So, im a beginner and I'm pleading you to built me a bot that runs 24hrs and that can buy and sell at the same time, choose a better and profitable strategy. I will do anything thing it takes to get the bot. I hope you take my request into consideration
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable