Script to test manually my indicators historical in strategy tester

MQL4 Experts Scripts

Spécifications

Hi everyone,


I want to manually test and analyze my indicators with the "Strategy tester".
It may be similar to the LFH Trading simulator. (Link: http://www.forexfactory.com/showthread.php?t=70742)

I have already tried several simulators. Unfortunately, I found no one who does what I want.

I need an EA (like LFH) and two scripts (long and short) that trigger a market order and simultaneously show two lines representing the stop and the target.
By positioning the stop, the Lot Size is calculated. The target and the stop must always be displaceable or customizable. Simply by moving the lines up or down. On the left of the target line, the risk/reward ratio should be displaced (e.g. 3.6). If I move the target, the display of the risk/reward ratio have to be adjusted or updated.

What variables should be set in the EA.
1. Risk in Percent
2. Target sell 50% or 100% of the position
3. Color Target
4. Color Stop

The lot size is calculated by the difference between the open of the next bar with the distance to the stop and the available capital.

Calculation Lot size:
Buy Example:
1.2500 = Open next bar, 1.2450 stop line, $ 10.000 account, risk 2%


Maximum position size =
  ((10,000 $ * 2% stop loss) / 50 pips SL) / ((100,000 / 1.25) * 0.0001) = 0.5 Lot

Specific number formula:
((10000 * 0.02) / 50) / ((100,000 / 1.25) * 0.0001) = 0.5 Lot
I hope I have this right.


Function next bar in the EA:
I do not care what happens in the next bar. Therefore, I need an implementation of this function is to go to the close of the bar and then the startegietester goes into pause mode. I click play again and it goes back to the close of the bar.
Example script with the problem here is the 14400. I have always adjust the variable if I go to a different period. for example from 4 hours to 5 minutes. This should take into account the new script.
// Break programs
    pausetime = TimeToStr (Time [0], TIME_DATE | TIME_MINUTES);
    Alert (pause time);
    if (pausetime> = pausetimenew)
      {
       Comment ("Next Stop" + pausetimenew);
       keybd_event (19,0,0,0);
       Sleep (1);
       keybd_event (19,0,2,0);
       pausetimenew = TimeToStr (Time [0] + 14400, TIME_DATE | TIME_MINUTES);
       // Note seconds adjust as required
      }

If you have any questions, just post here.

Répondu

1
Développeur 1
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(128)
Projets
236
65%
Arbitrage
30
37% / 23%
En retard
49
21%
Gratuit
3
Développeur 3
Évaluation
(219)
Projets
370
42%
Arbitrage
145
17% / 41%
En retard
124
34%
Gratuit
Publié : 38 codes
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(64)
Projets
144
46%
Arbitrage
20
40% / 15%
En retard
32
22%
Travail
Commandes similaires
Knight king 30+ USD
1. The bot must start when the markets start. 2.Then his capacity must be $1000. 3.and his trades must start at 0.04 slot and it must open up most available trades
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I am looking to purchase an existing Multi-Currency MT5 Expert Advisor that is capable of trading multiple currency pairs simultaneously . Please only contact me if you already have a ready-made EA and are willing to sell the full system including the complete source code . ⚠️ Important: If you do not own the EA, do not have the source code, or are planning to ask me build something from scratch, please do
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Looking for a good EA 30 - 100 USD
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I would like to convert my MT4 EA to MT5 EA, it should have all the default indicators in it but can remove the custom indicators, it should have the same logic as MT4 EA no chnages at all in the logic
Description: I am looking for an experienced MQL4 developer to create an Expert Advisor (EA) for trading DAX (GER40) based on the confluence of two indicators. I already have both indicators in .ex4/.mq4 format. Key Requirements: Indicators: Use "PivotPoints-All-In-One" and "shved_supply_and_demand" (via iCustom). Entry Logic: Open BUY/SELL only when a Pivot level (PP, S1, R1 etc.) is located inside a "Verified" or
Hello i need an expert advisor for meta trader 5 .Strategy: Trend on H1 using EMA 50. ENTRY on M5 when the price pulls back to EMA 21 or VWAP. BUY after bullish candle confirmation , SELL after bearish candle conformation.STOP LOSS 5- 8 pips ,TAKE PROFIT 10 - 15 pips.include spread filter , no trade on major news and a maximum of 3 trades per day

Informations sur le projet

Budget
20 - 100 USD
Délais
de 1 à 5 jour(s)