Open order based on time value,.?
Hi,.. I'm a newbie in MQL4
Currently I'm able to code to Open Order based on each candle/bar (1 order/bar) , the question is now, how to make it more than one order per bar based on time interval?
Let say, in TF H1 each bar will need 1 hour to completed then if we want to make 4 orders in one H1 bar with time interval 15 minutes of each order (1 hour/4), is that possible?, how to code it,..?
Thank's in Advance,.
I am new to this important and valuable forum. Tell you that I have some years in forex trading (part time), however, I did not have the time to learn how to program for MT4 and for that reason, I come to you to ask if anyone has the following:
An automated tool that allow to program orders to "buy / sell" at the time that I want, in the number of lots that I want and with option to program the "Stop Loss, Take Profit and Trailing Stop" For example, at 16:00 automatically open order "Buy" of 0.10 lots, Stop Loss: 50pips, Take Profit: 75pips and Trailing Stop: 25pips. Additionally, if this tool had the option to program several of those options (with different numbers of lots and different SL, TP and TS) would be much better.
If anyone of you had anything like this or know where I can get it, please let me know. Thank you very much.
I would say be careful who's advice you take, there are plenty of people on here (and everywhere in life) who seem like they know what's what, but really don't have a clue.
Find out what your believes are regarding the markets then try to trade with your own believes not against them. When you go live, risk enough to make it hurt when you lose, but not too much that its really painful.
Regarding maths. I can add 2+2=5? but that's about it, who cares ;-)....
Mostly, trading isn't about maths, its about mastering risk, yourself, and your chosen method/system.
Is there an EA that can close position at any given time？
I open a trade manualy during london time , but I need an EA to close that trade for me at 4pm eastern time, if the trade has not been stopped out.
anyone has good idea how to do it?
Only Time is important here.
I was so happy to find this TimedEA but it isn't working correctly for me. It keeps opening and closing a bunch of trades. I never made any changes to it, other than changing the time of open and close.
Script to open a trade @ specific time?
I am trying to see how to write a script (or use 1 already out there) for the days I am away. What I am looking for is a script that will put an OrderSend() at a specific time. I have already written the script to do the specific trade...just looking to put the order in the night before and not let it execute until a specific time the following day. Is there a way to do it using either my computer time (or preferably the online broker time) or would I have to use like a delay feature?
If anyone has a suggestion, it would be greatly appreciated. Thanks in advance.
Just check the code in any of the breakout type of EAs as most of them have time based code in them that I am sure you could adapt to your use.
[lang=es]buenos dias soy nuevo en esto , con ese codigo se abren ordenes en un momento de tiempo determinado , pero una vez que se abre el sistema no para.
lo que hace es abrir , y cuando se cierran que llega al sl o al tp se vuelve abrir las ordenes cerradas.
yo lo he reprogramado para que abra dos ordenes de compra y dos de venta, pero necesito que haga es cuando se cierren por ejmplo las ordenes de compra ponga automaticamente otras dos ordenes de compra otra vez, y si se cierran las de venta poner otras dos de venta, puedenn ayudarmeee[/lang]
[langtitle=es]necesito ayuda amigos[/langtitle]
[lang=es]necesito un codigo para poder cerrar ordenes, tengo los codigos para abrir dos ordenes de compra y dos ordenes de venta y lo que quiero es cuando se cierren dos de compras poner inmediatamente dos de compra y si se cierran dos de venta pues poner inmediatamente dos de venta , podeis ayudarme? gracias[/lang]