Hmmmmm....... just thinking, out loud, here.
What about the buy script first attempts to place a BUYLIMIT at the value of the previous HIGH (no spread included) and if that fails goes ahead and makes a Market Buy.....? One script to get the best price on a Green Rat buy.
Or even,
1) try BUYLIMIT w/o spread included
2) try BUYSTOP w/o spread included
3) if all else fails, buy at market
I guess if #2 is successful, we would have gotten a better price at Market thus been better off with #3.
I'm not asking you write all of this, I'm just asking your opinion on whether this would be a better take..
I changed the code to make a BUYLIMIT order and tested that. The buy was finally made a couple of 5min candles later and I did make a couple of pips off of it.
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.
- blubbb
- rank: 150+ posts
- Posts: 219
- Joined: Mon Sep 29, 2008 8:07 pm
- Reputation: 0
- Location: Europe
- Gender:
I always assumed a green rat would go long when the bid touches the high price. Not the ask. But since the rules don't mention that, it does not matter, I guess.
But if you like, I could implement this:
p = High[1]
p < Bid: buy limit at p
Bid <= p <= Ask: buy at market (at Ask)
p > Ask: buy stop at p
and similar for the short.
But if you like, I could implement this:
p = High[1]
p < Bid: buy limit at p
Bid <= p <= Ask: buy at market (at Ask)
p > Ask: buy stop at p
and similar for the short.
- trueblueTEX
- rank: 500+ posts
- Posts: 532
- Joined: Mon Apr 12, 2010 4:38 pm
- Reputation: 2
- Gender:
blubbb wrote:I always assumed a green rat would go long when the bid touches the high price. Not the ask. But since the rules don't mention that, it does not matter, I guess.
But if you like, I could implement this:
p = High[1]
p < Bid: buy limit at p
Bid <= p <= Ask: buy at market (at Ask)
p > Ask: buy stop at p
and similar for the short.
I think that's what I'm thinking!!
I'm just a green rat apprentice. I may be envisioning incorrectly.
Thanks, blubbb
I just made another 6.9 pips using your SL script, inching up the sl to follow a green rat!!!
- blubbb
- rank: 150+ posts
- Posts: 219
- Joined: Mon Sep 29, 2008 8:07 pm
- Reputation: 0
- Location: Europe
- Gender:
Great.
But I think you also had a great idea with these scripts.
I just did not have the time to implement the newest change. Here you go.
But I think you also had a great idea with these scripts.
I just did not have the time to implement the newest change. Here you go.
- Attachments
-
- Blubbb_Script_LongOnPreviousHigh.mq4
- (3.16 KiB) Downloaded 425 times
-
- Blubbb_Script_ShortOnPreviousLow.mq4
- (3.2 KiB) Downloaded 443 times
- trueblueTEX
- rank: 500+ posts
- Posts: 532
- Joined: Mon Apr 12, 2010 4:38 pm
- Reputation: 2
- Gender:
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
-
- rank: 150+ posts
- Posts: 216
- Joined: Fri Feb 13, 2009 7:52 pm
- Reputation: 0
- Gender:
- Contact:
- blubbb
- rank: 150+ posts
- Posts: 219
- Joined: Mon Sep 29, 2008 8:07 pm
- Reputation: 0
- Location: Europe
- Gender:
Update on Blubbb_Ticks. The indi shows you one line of text for every new tick that comes in (price, time and the change in pips).
New feature: Set PeriodSeconds to a value x other than 0. This will give you a new line of text every x seconds. Just as if you had an x second period chart in MT4.
New feature: Set PeriodSeconds to a value x other than 0. This will give you a new line of text every x seconds. Just as if you had an x second period chart in MT4.
- Attachments
-
- Blubbb_Ticks.mq4
- (2.68 KiB) Downloaded 430 times
- blubbb
- rank: 150+ posts
- Posts: 219
- Joined: Mon Sep 29, 2008 8:07 pm
- Reputation: 0
- Location: Europe
- Gender:
This (experimental) version does not reset anymore when changing timeframes.
- Attachments
-
- Blubbb_Ticks.mq4
- (2.94 KiB) Downloaded 412 times
-
- rank: 150+ posts
- Posts: 216
- Joined: Fri Feb 13, 2009 7:52 pm
- Reputation: 0
- Gender:
- Contact:
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.