Blubbb's free indicator and expert advisor thread

If you don't know where to start, start here! Don't be afraid to ask questions.

Moderator: moderators

User avatar
trueblueTEX
rank: 500+ posts
rank: 500+ posts
Posts: 532
Joined: Mon Apr 12, 2010 4:38 pm
Reputation: 0
Gender: None specified

Postby trueblueTEX » Wed Sep 15, 2010 1:42 am

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.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
blubbb
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Mon Sep 29, 2008 8:07 pm
Reputation: 0
Location: Europe
Gender: Male

Postby blubbb » Wed Sep 15, 2010 12:59 pm

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.

User avatar
trueblueTEX
rank: 500+ posts
rank: 500+ posts
Posts: 532
Joined: Mon Apr 12, 2010 4:38 pm
Reputation: 0
Gender: None specified

Postby trueblueTEX » Wed Sep 15, 2010 1:20 pm

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!! :lol:

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!!!

User avatar
blubbb
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Mon Sep 29, 2008 8:07 pm
Reputation: 0
Location: Europe
Gender: Male

Postby blubbb » Fri Sep 17, 2010 11:17 am

Great. :D

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 108 times
Blubbb_Script_ShortOnPreviousLow.mq4
(3.2 KiB) Downloaded 113 times

User avatar
trueblueTEX
rank: 500+ posts
rank: 500+ posts
Posts: 532
Joined: Mon Apr 12, 2010 4:38 pm
Reputation: 0
Gender: None specified

Postby trueblueTEX » Fri Sep 17, 2010 2:52 pm

blubbb wrote:Great. :D

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.


Thanks, blubbb!!

It will be next week before I can give them a test run!

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

PINKPANTHER5
rank: 150+ posts
rank: 150+ posts
Posts: 216
Joined: Fri Feb 13, 2009 7:52 pm
Reputation: 0
Gender: Male
Contact:

Postby PINKPANTHER5 » Fri Sep 17, 2010 6:22 pm

Blubb...


Pretty cool. Are those ea's based on Rat breakouts?

User avatar
blubbb
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Mon Sep 29, 2008 8:07 pm
Reputation: 0
Location: Europe
Gender: Male

Postby blubbb » Mon Sep 20, 2010 11:00 am

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.
Attachments
Blubbb_Ticks.mq4
(2.68 KiB) Downloaded 97 times

User avatar
blubbb
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Mon Sep 29, 2008 8:07 pm
Reputation: 0
Location: Europe
Gender: Male

Postby blubbb » Thu Sep 23, 2010 11:59 am

This (experimental) version does not reset anymore when changing timeframes.
Attachments
Blubbb_Ticks.mq4
(2.94 KiB) Downloaded 95 times

PINKPANTHER5
rank: 150+ posts
rank: 150+ posts
Posts: 216
Joined: Fri Feb 13, 2009 7:52 pm
Reputation: 0
Gender: Male
Contact:

Postby PINKPANTHER5 » Thu Sep 30, 2010 6:17 pm

BLUBB...

I have a question about your short on low EA. Which low does it short at? The low on which time frame??

User avatar
blubbb
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Mon Sep 29, 2008 8:07 pm
Reputation: 0
Location: Europe
Gender: Male

Postby blubbb » Thu Sep 30, 2010 6:52 pm

You mean the script?
The low of the previous candle in the current time frame: Low[1]. Not the low of the current candle!
So if you watch M15 and execute the script it places the order at the low of the last closed M15 candle.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “beginners forum”