Download MetaTrader 5

Indicators with alerts/signal - page 4

To add comments, please log in or register
hawk248
10
hawk248  

to dotalu

Hey Domenic

its clear enought now i think

partly what confused me is you spoke of limit orders while in face those will be stop orders

i think that i;ll implement the Option 1

it can build the zone by looking at the open price of the 1M open time

and you can set that to 00:01 time, it will be your broker's server time not your local time btw so make sure you set it correctly

the problem with mt4 is that EA's do not register when the take profit or stop loss was hit

that leaves two options

1. Forcing the code into the infinite loop, constantly checking the order history

2. Close trades with the EA rather then tp/sl so that EA knows when the trades were closed in profit or at a loss

i think i'll implement the second method, but that leave you with the problem that if the EA is not switched on at the time when tp or sl is reached, then trade will not get closed

let me know if thats acceptable

dotalu
9
dotalu  
hawk248:
Hey Domenic

its clear enought now i think

partly what confused me is you spoke of limit orders while in face those will be stop orders

i think that i;ll implement the Option 1

it can build the zone by looking at the open price of the 1M open time

and you can set that to 00:01 time, it will be your broker's server time not your local time btw so make sure you set it correctly

the problem with mt4 is that EA's do not register when the take profit or stop loss was hit

that leaves two options

1. Forcing the code into the infinite loop, constantly checking the order history

2. Close trades with the EA rather then tp/sl so that EA knows when the trades were closed in profit or at a loss

i think i'll implement the second method, but that leave you with the problem that if the EA is not switched on at the time when tp or sl is reached, then trade will not get closed

let me know if thats acceptable

Hi hawk248,

yes you are right about the stop orders

Your idea sounds very interesting. It would be nice if you could write the EA

so i can test if it works.

Thank you very much for your help!!!!

hawk248
10
hawk248  

dotalu_v1

Hey Domenic

this EA you asked for turnout to be much more of a challange then i ever imagined

its very easy to do what you ask for manually, very simple system in itself

but but exteremely difficult to find code implementation that works

Here is my current implementation

the rules atm are such:

if the current price (Bid) is less than "few_pips" away from the price of the 1 minutes open bars, indicated by "hours" and "mins" parameters.

then set the but stop "x_pips" above that price and sell stop "x_pips" below

with Takeprofit == "TP" and Stoploss == "SL"

this is not the complete set of features you asked for, this is only the start

i just need you to get it working on your machine first

you can cause it to set trades by setting "few_pips" settign too high

and manipulating the time setting so that you can force it to trade and check if it works for you

i have made it work on my 5 digit broker

now its your turn

let me know how it goes

Files:
dotalu
9
dotalu  
hawk248:
Hey Domenic

this EA you asked for turnout to be much more of a challange then i ever imagined

its very easy to do what you ask for manually, very simple system in itself

but but exteremely difficult to find code implementation that works

Here is my current implementation

the rules atm are such:

if the current price (Bid) is less than "few_pips" away from the price of the 1 minutes open bars, indicated by "hours" and "mins" parameters.

then set the but stop "x_pips" above that price and sell stop "x_pips" below

with Takeprofit == "TP" and Stoploss == "SL"

this is not the complete set of features you asked for, this is only the start

i just need you to get it working on your machine first

you can cause it to set trades by setting "few_pips" settign too high

and manipulating the time setting so that you can force it to trade and check if it works for you

i have made it work on my 5 digit broker

now its your turn

let me know how it goes

Hey hawk248,

at first, i want to thank you for your effort!!!

I will try the EA and give a reply to you, as soon as i know something!

So again, thank you!!!

I wish you good trades an a nice day..

Dominic

dotalu
9
dotalu  
hawk248:
Hey Domenic

this EA you asked for turnout to be much more of a challange then i ever imagined

its very easy to do what you ask for manually, very simple system in itself

but but exteremely difficult to find code implementation that works

Here is my current implementation

the rules atm are such:

if the current price (Bid) is less than "few_pips" away from the price of the 1 minutes open bars, indicated by "hours" and "mins" parameters.

then set the but stop "x_pips" above that price and sell stop "x_pips" below

with Takeprofit == "TP" and Stoploss == "SL"

this is not the complete set of features you asked for, this is only the start

i just need you to get it working on your machine first

you can cause it to set trades by setting "few_pips" settign too high

and manipulating the time setting so that you can force it to trade and check if it works for you

i have made it work on my 5 digit broker

now its your turn

let me know how it goes

Hey hawk248,

i have tried the EA. It works great!!!

I noticed, that the EA does only open buy and sell orders, if no order is in place at all.

That means, if the buy order was filled and the stop loss gets hit. The EA does not open a new buy order because the sell order is still there. The EA only sets new orders if there is no order at all.

Could you please include this funktion into the EA?

It would be very nice of you if you could also inplement the other required funktions for example the day-stop if the stop loss gets hit for example 10 times.

Thanks very much in advance!!!

Dominic

rrkpatel
4
rrkpatel  

hello

hi

yes i m intrested for your EA coding.1000$ for this EA coding.

thingking you

Jns
3
Jns  

Help requested

Hi I'm looking for someone to code an indicator which I have.

I need an alert and email setup on it, and possibly turned into an EA as I would like the EA to exit my second position automatically based on the indicator mentioned above.

If this is possible to do could you please PM me.

Thanks in advance

wilfredoaa
15
wilfredoaa  
karthikencore
14
karthikencore  

Hello Traders

I thought this thread didn't generate much interest and stopped checking it. I had a chance to check it today and was surprised about the requests.

@hawk248: Thanks for taking over and helping others. From now on I'll also start contributing.

nomad4x
4
nomad4x  

RSI Alert

Looking for an alert, on RSI when it crosses the 50 line (above and below) to sound only once.

I had searched and came up with this thread, https://www.mql5.com/en/forum/173492

But this doesn't answer my question. In a since, my question is similar to mart-harts, except based on RSI.

Thanks

To add comments, please log in or register