To be able to close them I would need to write an EA that waits for break even. If I remember correctly I already wrote one... that was quite some time ago. I'll search my hard drive.
But you have to keep in mind that this would be no "real" SL or substitute for one: If your internet connection dies, the power fails or you shut down the system, the EA of course couldn't do anything.
Edit: Sorry, I wrote nonsense. What I meant was a solution for all the open trades at once. I didn't read you wanted it for one pair only. Then it would be possible with a script, of course. The script would calculate the "resultant" of all the trades and set the SL accordingly. It's not yet implemented in the version I posted.
Blubbb's free indicator and expert advisor thread
Moderator: moderators
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
it would be an interesting addition to your SL to handle multiple trades.
If not a SL EA, probably just an indicator to have it visually so you make a decision to act accordingly.
If not a SL EA, probably just an indicator to have it visually so you make a decision to act accordingly.
blubbb wrote:To be able to close them I would need to write an EA that waits for break even. If I remember correctly I already wrote one... that was quite some time ago. I'll search my hard drive.
But you have to keep in mind that this would be no "real" SL or substitute for one: If your internet connection dies, the power fails or you shut down the system, the EA of course couldn't do anything.
Edit: Sorry, I wrote nonsense. What I meant was a solution for all the open trades at once. I didn't read you wanted it for one pair only. Then it would be possible with a script, of course. The script would calculate the "resultant" of all the trades and set the SL accordingly. It's not yet implemented in the version I posted.
WILL GET MY MONEY BACK FROM THOSE BASTARDS, AND I MEAN IT !!!!!
"WAIT FOR PRICE, WAIT FOR PRICE, WAIT FOR PRICE"
"WAIT FOR PRICE, WAIT FOR PRICE, WAIT FOR PRICE"
I've tried ECN false and true, and no orders appear.
I have no errors in those tabs either... well, when it tries to fill them, I can see the inputs, then in the next line "unit reason 0" and the next one "removed".
All settings are default, jut moved ECN. Any clue?
I have no errors in those tabs either... well, when it tries to fill them, I can see the inputs, then in the next line "unit reason 0" and the next one "removed".
All settings are default, jut moved ECN. Any clue?
blubbb wrote:Well, a limit or stop order should appear...
If it doesn't, then there's an error somewhere. Does the "Experts" or "Journal" tab show any messages that could help?
I know there are some brokers where you cannot place an order and at the same time set a SL or TP. The order has to be placed first, then modified. The script has a variable called "ECN". Setting this to "true" accomplishes this.
WILL GET MY MONEY BACK FROM THOSE BASTARDS, AND I MEAN IT !!!!!
"WAIT FOR PRICE, WAIT FOR PRICE, WAIT FOR PRICE"
"WAIT FOR PRICE, WAIT FOR PRICE, WAIT FOR PRICE"
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- blubbb
- rank: 150+ posts
- Posts: 219
- Joined: Mon Sep 29, 2008 8:07 pm
- Reputation: 0
- Location: Europe
- Gender:
Many use the CustomCandle indi for this. It's a candle overlay indi.
I implemented handling multiple orders in the Breakeven script :
I implemented handling multiple orders in the Breakeven script :
- Attachments
-
- Blubbb_Script_Breakeven.mq4
- (2.51 KiB) Downloaded 146 times
blubbb wrote:Well, a limit or stop order should appear...
If it doesn't, then there's an error somewhere. Does the "Experts" or "Journal" tab show any messages that could help?
I know there are some brokers where you cannot place an order and at the same time set a SL or TP. The order has to be placed first, then modified. The script has a variable called "ECN". Setting this to "true" accomplishes this.
Thanks blubbb, I believe I've got a handle on this now. We'll see Sun. evening. Thanks again.
"The simplicity of the markets is it's greatest disguise"
T
T
http://kreslik.com/forums/viewtopic.php ... &start=270
blubbb, scroll down to the bottom of this page. Are these two scripts worth anything? I couldn't figure out how to change the SL and PT inputs. The inputs are set to SL 50 and TP 100. I'm not sure if this 50/100 is the actual value or is a zero dropped. Thanks,
blubbb, scroll down to the bottom of this page. Are these two scripts worth anything? I couldn't figure out how to change the SL and PT inputs. The inputs are set to SL 50 and TP 100. I'm not sure if this 50/100 is the actual value or is a zero dropped. Thanks,
"The simplicity of the markets is it's greatest disguise"
T
T
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.