Expert Advisor that will Backtest Binary Options Strategy for Already Compiled MT4 Indicator Using Output Buffers (arrows) for Signals

Trabalho concluído

Tempo de execução 23 dias

Termos de Referência

UPDATE: I also want the EA to generate a csv file containing all trade data when the EA completes a backtest in strategy tester:
Instrument, Chart Timeframe, Trade day and time (timestamp), Day of week (mon,tues,etc), Hour of day(0-23),  Trade direction (call or put/long or short), trade expiry in minutes, trade result (win or loss)


The overall goal is to develop a backtester for external binary options indicators that give output buffers (arrows) for signals that will reveal the most profitable expiration times and what hours are best to trade.

I want you to deliver the source code and I retain rights to the code.

I want to discover for example on a 5min chart whether 1 minute, 2 minute or 8 minute, etc expiration time is most profitable. I also want to see what hours of the day are best to trade and what days of the week are best to trade. And which trade direciton is best to trade. I have attached a picture of the statistics I want to be displayed on the chart as the backtest is running. I have also attached a sample indicator to use for testing called DRAGON VX.EX4

I attempted to write the code and I have attached my attempt. The file is called botester-22-trades.mq4 however in my code I didn't begin to track days and hour of day. 

I also welcome any ideas you have to make it even better. Another option I'd like is the ability to switch between binary option mode which means you just track the midpoint between bid and ask for entry and exit and forex mode which means the EA actual enters long and short trades and closes them after the passing of the Close_Trade_Timer time so we can see how profitable it would be to run this as a forex trading strategy. In Forex mode you don't need to track all the statistics but please do include options to disable trade at certain day of week or certain hours so strategy tester can find best combination.

Here are the settings changeable by user (with default settings):

Trade Entry Mode: Intra Bar (as soon as signal appears) or Next New Bar After Signal Appears

Binary Option Mode or Forex: Binary

Output_Buffer_for_Buy_Entry: (integer) 1
Output_Buffer_for_Sell_Entry: (integer) 0
Indicator_Name: Default = "DRAGON VX"
The following settings are for the user specifying how many minutes after trade entry to close the trade. Each one is an integer?
Close_Trade_Timer_1: 4
Close_Trade_Timer_2: 6
Close_Trade_Timer_3: 8
Close_Trade_Timer_4: 10
Close_Trade_Timer_5: 12
Close_Trade_Timer_6: 14
Close_Trade_Timer_7: 15
Close_Trade_Timer_8: 17
Close_Trade_Timer_9: 19
Close_Trade_Timer_10: 20
Close_Trade_Timer_11: 25
Close_Trade_Timer_12: 30
Close_Trade_Timer_13: 35
Close_Trade_Timer_14: 40
Close_Trade_Timer_15: 45
Close_Trade_Timer_16: 50
Close_Trade_Timer_17: 55
Close_Trade_Timer_18: 60
Close_Trade_Timer_19: 70
Close_Trade_Timer_20: 80
Close_Trade_Timer_21: 90
Close_Trade_Timer_22: 120

Following settings are only for forex mode:

Disable trading on Monday: true or false

Disable trading on Tuesday: true or false

etc till Friday


Disable trading on hour 1: true or false

Disable trading on hour 2: true or false

continue until 24 hrs
------------
Now I will define a trade entry: use icustom function with ouput buffer defined Output_Buffer_for_Buy_Entry and indicator name defined by variable Indicator_Name and timeframe defined as current chart timeframe to indicate a buy entry but instead of executing an actual trade I just want to store the midpoint between bid and ask as the entry price. There must only be one buy or sell entry per candle! Only record the very first output buffer change that occurs during an entire candle's formation. Only when the candle has closed can another buy or sell entry be considered.
Here is example of icustom for buy entry:
double buffer1 = iCustom(_Symbol, _Period, "DRAGON VX", 0, Output_Buffer_for_Buy_Entry);
Here is example of icustom for sell entry:
double buffer0 = iCustom(_Symbol, _Period, "DRAGON VX", 0, Output_Buffer_for_Sell_Entry);

Now I define trade exit: the trade exits at multiple points but all 22 trades will have the exact same entry price in fact it exits as many times as there are Close_Trade_Timer variables (currently 22). The trade exits after the specified Close_Trade_Timer time in minutes has passed since the trade entry. I want statistics tracked completely separately for each 22 trade close times.
A trade is considered a win if it was a buy entry and the exit price (midpoint between bid and ask) is higher than the entry and vice versa for the sell entry trades.

Please track and print to the screen the following:
Close_Trade_Timer_1
Wins: (print winning trades)
Losses: (print how many trades lost)
Win Rate: (print as a percentage the total of wins/total trades taken)

Close_Trade_Timer_2
Wins: (print winning trades)
Losses: (print how many trades lost)
Win Rate: (print as a percentage the total of wins/total trades taken)

Close_Trade_Timer_3
Wins: (print winning trades)
Losses: (print how many trades lost)
Win Rate: (print as a percentage the total of wins/total trades taken)

Please repeat this for all 22 Close_Trade_Timer variables.


Respondido

1
Desenvolvedor 1
Classificação
(14)
Projetos
19
11%
Arbitragem
1
0% / 100%
Expirado
5
26%
Livre
2
Desenvolvedor 2
Classificação
(810)
Projetos
1385
72%
Arbitragem
113
29% / 48%
Expirado
343
25%
Trabalhando
3
Desenvolvedor 3
Classificação
(378)
Projetos
401
31%
Arbitragem
63
19% / 70%
Expirado
51
13%
Carregado
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
For Chart Panel : Needs a Black Back ground at present its transparent . ✔️ Trading Panel (To be reset weekly = 1-6) 1. EA Status : (on/off) 2. Total Trades Taken : 3. Number of Profitable Trades Today : 4. Number of Loosing Trades Today : 5. Number of Profitable Trades This Week : 6. Number of Loosing Trades This Week : (To be Reset every Month = 7-9) 7. Number of Profitable Trades This Month : 8. Number of Loosing
We are seeking an experienced MQL4 developer to create a forecasting indicator with a prediction accuracy above 80%. The indicator must be capable of learning from historical market data starting from the year 2000 to the present. Additionally, it should offer an option to analyze and learn from all available candlesticks on the current timeframe, allowing it to adapt to real-time market conditions. Key Requirements
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
NRTR - indicator for MetaTrader 5 NRTR (Nick Rypock Trailing Reverse) - indicator for MetaTrader 4 NRTR WATR - indicator for MetaTrader 4 NRTR GATOR - indicator for MetaTrader 5 X2MA NRTR - indicator for MetaTrader 5 NRTR - indicator for MetaTrader 5 NRTR GATOR - indicator for MetaTrader 4 NRTR - indicator for MetaTrader 4 Stalin_NRTR - indicator for MetaTrader 5 NRTR Color Line - indicator for MetaTrader 5 NRTR Rosh
Charlie 40 - 100 USD
Hi. I am looking for a Mentor that has verifiable experience trading forex and commodities. Somebody who has a couple years experience in failures and successes. I am not a beginner. I have modest success already with discretionary trading. I have had an EA created that is very promising. It has extensive testing with very good results. The idea would be to work together advancing the existing EA and build additional
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
My requirements are the following. I am ordering, I need an expert consultant on EA matters and an indicator in the trade pairs of XAUUSD and XAGUSD, we also need powerful robots for changing prices in the market. the market conditions, i.e. flexibility, then the business should be beneficial for all I need high and low line python line position to work thank you
QuantumTrader 30 - 200 USD
Request for development of machine learning robots for MetaTrader 5 (MT5) **Description**: Willing to develop experience in programming trading robots using MQL5 language and can learn machine learning on MetaTrader 5 (MT5) platform. The robot should be able to implement a multidisciplinary strategy on a set of technical indicators and multiple rules. I need to develop the robots so that they can work in an
The goal is to develop a system that mirrors trade actions (Buy/Sell) from a CTrader demo account on Cronos Markets to multiple prop firm accounts on TradeLocker, ensuring accurate replication of trades while adjusting risk proportionally. I was wondering if you could help me with copy trading an EA’s action on Cronos markets (uses CTrader) into a prop firm account that I bought with TooOne Trader (uses TradeLocker
Need a Coding Expert. Fully automated Robot for Trading with minimal losses. It should be able to open/close trades automatically according to the strategy. Also, there should be an option to select maximum leverage for Trading FOREX, COMMODITIES, ENERGIES, etc. The forecast reports of trading strategies to be shared automatically to a specified Email, WhatsApp and Telegram accounts. TO DEVELOP A TRADING MANAGEMENT

Informações sobre o projeto

Orçamento
50 - 125 USD
Desenvolvedor
45 - 112.5 USD
Prazo
para 5 dias