Maznet

MQL4 Asesores Expertos Sripts

Tarea técnica

I would like to have a script which would:
1. go to directory (Eg: C:\MT\ ) (Or other - that is a choice ) 
2. Look for files with particular naming convention like "CurrentDate.Currency.DisableShort.Range.txt" (Examples below )
3.For all EA auto tradings with that currency would change configuration that allows only "Long" trading (Disable Short) for the specified range. (Or "Short" - Disable Long)

 File name examples:

"YYYY.MM.DD.Currency.DisableShort.Range.txt"
2015.12.31.EURUSD.DisableShort.1.12865_1.12978.txt

2015.12.31.EURUSD.DisableLong.1.12855_1.12970.txt 

2015.12.31.USDCHF.DisableShort.0.92865_0.97978.txt
2015.12.31.USDCHF.DisableLong.1.10010_1.52970.txt

 Not to stop EA only to set it for Short or Long for that range specified in file name. 

If the range overlaps ,- for particular currency, overlapping range, all EA short and long would be disabled. 
Everything what is not in the range or between ranges (If not overlapping) ,- long and short allowed
If file with the date not found ,- long and short allowed 

Script or application should not stop the EA, so EA would continue to work with open positions. 

For disabled short range, would not to allow "sell stop", "sell limit" within that range.
For disabled long range, would not to allow "buy stop" buy limit" within that range.


Script or application should have a setting how often to check for the file and if the file changed,- reconfigure settings ( default could be 5 min )

Would run on MT4 (Admiral Markets platform version) 

I would like to have a source code as well

  

Additionally – Should be an option ,how to mark some EA, that script would not affect it.

Could be not Affected all scripts that has a comment witch starts with “NoEffect ………..“.

Or could be the Name of the EA file , like NoEffect_ExpertName.mq4  

That would be useful for utilities EA , like those who  sets the stop loss  or manages equity ....   

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Example 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Just I want to know, that we are on the same page, so let me rephrase with example some of the aspects.  

 example: 

If script will find files in specified directory named:

2016.03.15.EURUSD.DisableShort.1.12865_1.12978.txt

2016.03.15.EURUSD.DisableLong.1.12855_1.12970.txt 

 Many EA in metatrader 4 (downloaded from Admirals Market) for currency pair EURUSD will trade Long and Short. (Some of them may be set only Long or Short - manualy )

On day 2016.03.15 once the price reached the range between 1.12865 and 1.12978 the all EA's for that currency pair will trade only Long, and all pending Short orders within that range will be removed.

Once the price exit that range Short and Long settings for all EA's will be restored  (Like mentioned before if EA set manually only for Short in previous range it would not trade at all and later set back only for short )  .

 Same goes with Long:  

On day 2016.03.15 once the price reached the range between 1.12855 and 1.12970 the all EA's for that currency pair will trade only Short, and all pending Long orders within that range will be removed.Once the price exit that range Short and Long settings for all EA's will be restored.

If the rage is overlapping on that date for particular currency pair for overlapping range and Short and Long will be disabled for all EA's trading with that currency pair. Like in eg.:

On price range 1.12865-1.12970  - long and short would be turned off (basically apps running, managing open trades but do not perform any new trades)

If price moves to 1.12970-1.12978  Long trades for new orders would be restored for all EA on specified date for specified currency pair. 

If price moves to 1.12855-1.12865  Short trades for new orders would be restored for all EA on specified date for specified currency pair. 

Once price moves out of specified ranges, on specified date, all settings for all EA 's trading settings on specified currency pair would be restored. 

 

( EA's running on other currency pairs should not be affected by particular change for particular currency pair ) 

Script at any time should not change other EA settings,- like SL , magic number, comments etc.  

Script should change settings only then it is needed ( I mean not to overwrite same settings, every couple minutes, even there is no need to change )  

Frequency to check file, price and settings should be adjustable  ( in seconds ), default could 300 seconds (5 min)  

 

Hope that we do understand each other and everything is evaluated. 

 

 

Han respondido

1
Desarrollador 1
Evaluación
(5)
Proyectos
4
0%
Arbitraje
3
0% / 100%
Caducado
2
50%
Libre
2
Desarrollador 2
Evaluación
(121)
Proyectos
134
66%
Arbitraje
36
25% / 56%
Caducado
22
16%
Libre
3
Desarrollador 3
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
4
Desarrollador 4
Evaluación
(68)
Proyectos
111
26%
Arbitraje
17
6% / 71%
Caducado
15
14%
Libre
5
Desarrollador 5
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
Hi All i need programmer to make me 2 programs first program send sell or buy from tradingview to MT4 and MT5 not using alert on tradingview . not using WEBHOOK\ mean using trade order manually from tradingview to MT Second using alert webhook from indicators inside tradingview
I am looking for a skilled Thinkorswim script developer for a one-time project. Your task will be to combine 8 distinct Thinkorswim studies (I will provide the code for each) into one Lower Study. The final script should display histogram rows for the individual studies with a bubble color scheme of bright green, dark green, gray, dark red, and bright red
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
Looking for someone who is able to code MQL for MT5 manager plug-in? Please contact me for more info. it is mainly on when to trigger a stop out of the account
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so

Información sobre el proyecto

Presupuesto
150 - 200 USD
IVA (21%): 31.5 - 42 USD
Total: 181.5 - 242 USD
Para el ejecutor
135 - 180 USD
Plazo límite de ejecución
de 3 a 5 día(s)