Hello,
I need an EA which will read a .txt file, which is generated and periodically updated by another software. Based on the data in this .txt file, EA will place pending orders in MT5 and afterwards will make some adjustments in that .txt file.
More details:
EA Inputs:
"a". Path to the .txt file
"b". Frequency of the update (in minutes; say every 5 minutes)
"c". Volume_lots (ideally there should be an option to choose different lot sizes for different currency pairs, we can further discuss how to implement)
EA logic:
1. Every "b" minutes check the "a" file
2. Go row by row in the .txt file, if there is "ord.opened" in the row #1, extract the following data from that row: Instrument, Order Type (it will be either buy stop or sell stop order) Entry Price, SL, TP and place first pending order with respective "c" volume.
3. Loop continues, EA goes to rows #2,3,4,5 until it finds second "ord.opened" in row #6, extracts the data and places second pending order.
4. Once there is no more "ord.opened" in the file, EA replaces all "ord.opened" to "ord.transferred" in that "a" .txt file
5. After all replacements are completed, EA waits next "b" minutes to go through that same "a" file
6. EA needs to keep own log of what has been completed.
Here is an extract from a typical .txt file, EA needs to ignore all other data and take into action only rows that contain ord.opened:
NZDJPY[07.08.2024 05:00:00] tcs.created #1L0[07.08.2024 04:00:00] ALB= 5.5923454841686744, La= 85.416, Lb= 81.404, f1= 4.112, f2= 2.224; dval= 8.8372100787898464; Bid N bar: 1732992400000[2024-08-07 01:00:00.000+0000] O: 86.194 C: 87.364 H: 88.824 L: 86.988 V: 20900.54
NZDJPY[07.08.2024 05:00:00] tcs.accepted #1L1[07.08.2024 04:00:00] ALB= 2.5923454841686744, La= 86.416, Lb= 86.404, f1= 0.112, f2= 0.224
NZDJPY[01.01.1970 02:00:00] ord.opened #1L1.1.SELLSTOP_BYASK[01.01.1970 02:00:00] Price= 86.528, SL= 87.528, TP= 84.65, Amount= 0.300000, BE= 115.264
NZDJPY[01.01.1970 02:00:00] ord.opened #1L1.2.SELLSTOP_BYASK[01.01.1970 02:00:00] Price= 86.926, SL= 87.926, TP= 84.65, Amount= 0.300000, BE= 113.044
NZDJPY[07.08.2024 05:00:00] ord.modified #1L1.1.SELLSTOP_BYASK[07.08.2024 05:00:00] Price= 86.528, SL= 87.528, TP= 84.65, Amount= 0.306000, BE= 115.264
NZDJPY[07.08.2024 05:00:00] ord.modified #1L1.2.SELLSTOP_BYASK[07.08.2024 05:00:00] Price= 86.926, SL= 87.926, TP= 84.65, Amount= 0.306000, BE= 113.044
GBPUSD[13.08.2024 10:00:00] tcs.created #1L0[13.08.2024 09:00:00] ALB= 2.001332726501847032, La= 1.27768, Lb= 1.27758, f1= 2.1E-4, f2= 3.0E-5; dval= 2.120512508433541; Bid N bar: 1703528800000[2024-08-13 06:00:00.000+0000] O: 1.27811 C: 1.28035 H: 1.28094 L: 1.27811 V: 6809.91
GBPUSD[13.08.2024 10:00:00] tcs.accepted #1L1[13.08.2024 09:00:00] AlB= 1.001332726501847032, La= 1.27768, Lb= 1.27758, f1= 2.1E-4, f2= 3.0E-5
GBPUSD[01.01.1970 02:00:00] ord.opened #1L1.1.SELLSTOP_BYASK[01.01.1970 02:00:00] Price= 1.27789, SL= 1.29126, TP= 1.2767, Amount= 0.200000, BE= 1.32126
GBPUSD[01.01.1970 02:00:00] ord.opened #1L1.2.SELLSTOP_BYASK[01.01.1970 02:00:00] Price= 1.27824, SL= 1.29179, TP= 1.2767, Amount= 0.200000, BE= 1.3179
GBPUSD[13.08.2024 13:37:21] ord.filled #1L1.2.SELL[13.08.2024 10:00:00] Price= 1.27816, SL= 1.29179, TP= 1.2767, Amount= 0.200000, BE= 1.3179
Похожие заказы
I want a programmer to create me a trading bot that will work on both MT4 an MT5 the bot must have TP an SL an it must open multiple trades at the same time the bot must work on the minimum amount of atleast $10 an must work on any broker an the programmer must send me a demo so I can test the bot before purchasing it
I want an EA to look for buys below the previous day close (PDC) and look for sells above the PDC. Short trades above the PDC will be executed once price has traded above a Bollinger Band (BB) high (Bollinger Band must be configurable), and then closes back under. Market sell on the close inside. SL set using multiple of ATR (ATR configurable). Position size is to be calculated based on a configurable percentage of
BOT USING MOVING AVARAGE BUY - MARKET HAS TO MOVES ABOVE 100 MA LINE AND CLOSE ABOVE 100 MA LINE. NEXT CANDLE SHOULD ALSO BE BULISH AND CLOSE BULLISH BEFORE MAKING A BUY ON THE THIRD CANDLE A SECOND BUY SHOULD BE MADE WHEN MARKET MOVES AND CLOSE ABOVE 200 MA LINE. NEXT CANDLE SHOULD ALSO BE BULISH AND CLOSE BULLISH BEFORE MAKING A BUY ON THE THIRD CANDLE. A THIRD BUY SHOULD BE MADE WHEN MARKET MOVES AND CLOSE
i’m looking to have a trading robot built in MQL5 that utilizes the following strategy: Strategy Overview : Supply and Demand Strategy : The bot should identify key supply (resistance) and demand (support) zones based on historical price action . The strategy should buy at demand zones (support) and sell at supply zones (resistance). RSI Confirmation : Use RSI (Relative Strength Index) as a filter to avoid
3 step alert indicator. Which include 3 ema x,y,z and a daily pivot point step-1 x,y ema crossover step-2 check z ema step-3 check daily pivot point than send alert (very simple system )
hello - i have a fully functioning code I have built out for ninjatrader 8 - i actually have 4 of them I am looking for someone to be able to help me to convert the code from ninjatrader 8 C# code to a metatrader 5 and also metatrader 4 code. so i have provided 3 files one is an IFVG strategy and simply trades price action based on inversed fair value the other one is a MACD strategy but it uses the custom MACD
Hello, I am seeking some assistance with a NinjaTrader 8 strategy. I have been programming NT8 for about 6 months now, having come from many years of experience with MT4. As I gather is common with programming Ninjascript, I frequently have difficulties with getting the historical processing to work correctly; getting it working the same as forward testing. I have hit a wall with my current project and am looking for
I am looking for someone to program an automated breakout trading system for MNQ/NQ in C#. The strategy is based on a breakout from a range defined between 07:00–08:00 CET, which serves as the entry signal. Trading Parameters: Variable take-profit and stop-loss levels, with a break-even adjustment after partial profit targets are reached. Indicators: Volume delta, RSI, and VIX as optional filters. The system should
DEVELOPMENT FOR MOMENTUM REVERSAL STRATEGY TRADE MUST ONLY BE ACTIVATED WITHIN THE TRADE ZONE WHICH IS 40 PIPPETTE ABOVE THE LOW OF THE DAY NO TRADE MUST BE TAKEN IF RSI/CCI CONFIRMS OVERSOLD/OVERBOUGHT CONDITION CCI MAIN FUNCTION IS TO UPDATE THE TRADE ZONE AS IT REACTS FASTER THAN RSI THE TREND LINES MUST NOT BE INFINITE, MUST NOT EXCEED THE DAY PERIOD ADD INPUT OPTION TO ALLOW TRADER TUNE THE FOLLOWING DISABLE
hi, i need an ea that simply copy my trades that i send on my telegram channel-group, and from that make the trade on the metatrader 4 or 5 , i prefer 5. Also i need that every trade maded are marked with an ID which will be assigned using the information for the message so the bot know which trade to close, and which to modify ( in case of modify the order also change the id) and also making it possible to close