Page 1 of 1

If_Then_order

PostPosted: Thu Feb 07, 2019 5:11 pm
by Apprentice
Based on request.
viewtopic.php?f=27&t=67324
If Then Order Statement.png


If_Then_order.mq4
(16.76 KiB) Downloaded 652 times

Re: If_Then_order

PostPosted: Fri Feb 08, 2019 8:55 pm
by Fx4mt.com
Thank you! Can you elaborate on the Magic Number?

Much appreciated! Very excited to try this out. Very grateful.

Re: If_Then_order

PostPosted: Sat Feb 09, 2019 4:43 am
by Apprentice
https://docs.mql4.com/trading/ordersend
Order magic number. May be used as user defined identifier.

The unique ID can come in handy if you have a more then one active strategy.

Re: If_Then_order

PostPosted: Sun Feb 10, 2019 6:06 am
by rudyyy
oh. my. gosh.

I've been wanting something like this for months and I just happen to stumble upon this site THREE DAYS after you post this?!?!

THANK YOU!

Re: If_Then_order

PostPosted: Tue Feb 12, 2019 5:55 am
by rudyyy
Hi Apprentice,

I was testing this out today and noticed a few times that a trade would not trigger. Is there a min distance that a price trigger needs to be from current price when the EA is activated? Obviously outside the spread, but even a few pips away it was still giving me issues. Im not sure what caused certain orders to activate and others not.

Any feedback or tips would be appreciated

Re: If_Then_order

PostPosted: Thu Feb 14, 2019 6:06 am
by Apprentice
Can you provide a trading log? EA will print the reason why the order was not created.

Re: If_Then_order

PostPosted: Mon Feb 18, 2019 5:55 pm
by Fx4mt.com
Hi Apprentice, he and I have been emailing back and forth a bit and I can't speak for him, but it appears as though all orders are executing properly on my end.

Quick question, on the stop loss and limit inputs, if these were left to 0 would that mean that no stop loss or limit would be entered?