• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:46pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:46pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

3 Bar Fractal with mid-bar and bar on each side 11 replies

Inside bar or outside bar identifier 7 replies

SteveHopwood EAs 4 replies

Pin bar, pin bar, pin bar 0 replies

What's Wrong with this Inside Bar Indicator 1 reply

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 25
Attachments: Jollyroger: an inside bar auto-trader by SteveHopwood
Exit Attachments
Tags: Jollyroger: an inside bar auto-trader by SteveHopwood
Cancel

Jollyroger: an inside bar auto-trader by SteveHopwood

  • Last Post
  •  
  • 1 34Page 567 8
  • 1 4Page 56 8
  •  
  • Post #81
  • Quote
  • Jun 1, 2011 10:14am Jun 1, 2011 10:14am
  •  plateman
  • | Joined Jan 2010 | Status: Member | 98 Posts
Steve, it also appears not to re-draw the IB hilo lines during the day, EURGBP H1 IB at 10.00am, another at 14.00, did not re-draw, all times UK local, of course if you are in front of the screen you can move the lines manually.
 
 
  • Post #82
  • Quote
  • Jun 1, 2011 10:17am Jun 1, 2011 10:17am
  •  pipdude
  • | Joined Nov 2007 | Status: Member | 289 Posts
steve,

this has nothing to do with this thread, but i was wandering if you could help me out. i can't seem to find anyone to help me with creating an audio alert for an envelope indicator. when price touches upper or lower band alert sounds. could you possilby code one for me? your help would be greatly appreciated. thanks.
 
 
  • Post #83
  • Quote
  • Jun 1, 2011 10:33am Jun 1, 2011 10:33am
  •  JulesvH
  • | Joined Aug 2010 | Status: The Forex Farmer | 175 Posts
Quoting SteveHopwood
Disliked
Be aware folks, those of you who have not noticed, that there is a problem with re-drawing the opening price line at the start of the new day. I had to re-load the bot yesterday and today to make it display the line.

Ignored
Me too. When I don't, it says open price 0.00000 so trend is up.
Just have to recompile it between 6 GMT (start time) and my "start hourm" and it draws the line and works fine.
Steve, maybe you can change the "draw the line function" or something x minutes after the "start time" (I'm no coder, but trying to help )
 
 
  • Post #84
  • Quote
  • Jun 1, 2011 12:59pm Jun 1, 2011 12:59pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
The problem turned out to be one of those circular thingies. I was making Dibs delete the open price line when out of trading hours. Dibs was finding there was no open price line and adding one, then deleting it again because it was outside trading hours........

I figure it would be useful to have a permanent record of the inside bars on which Dibs is making its calculations. In this version, it leaves behind a short dotted line to replace the longer ones when these are deleted.

Getting there.

Attached File(s)
File Type: mq4 Dibs method auto trading robot by Steve Hopwood.mq4   61 KB | 293 downloads
 
 
  • Post #85
  • Quote
  • Jun 1, 2011 1:28pm Jun 1, 2011 1:28pm
  •  hiredwhip
  • | Joined Nov 2009 | Status: Member | 4,980 Posts
Quoting SteveHopwood
Disliked
The problem turned out to be one of those circular thingies. I was making Dibs delete the open price line when out of trading hours. Dibs was finding there was no open price line and adding one, then deleting it again because it was outside trading hours........

I figure it would be useful to have a permanent record of the inside bars on which Dibs is making its calculations. In this version, it leaves behind a short dotted line to replace the longer ones when these are deleted.

Getting there.

Ignored
Nice
 
 
  • Post #86
  • Quote
  • Jun 1, 2011 2:02pm Jun 1, 2011 2:02pm
  •  JulesvH
  • | Joined Aug 2010 | Status: The Forex Farmer | 175 Posts
Nice indeed.

Steve,
do you want us to let it run on demo a few more days or ready to brainstorm about exits?
And, according to that, do you want to start a new tread or continue in this one and edit post one? Well, I guess it's up to you. Time will tell

I had one exit-idea (bath moment ) I want to share, just in case I forget it while busy with work. What if we use the CTS as soon as the "start_houre" ends (maybe with using a higher TF for the candles than 1h to give the remaining trades room to breathe) Maybe I have to visual test this idea first, but just wanted to share it so people can shoot at it.

J
 
 
  • Post #87
  • Quote
  • Jun 1, 2011 2:16pm Jun 1, 2011 2:16pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting JulesvH
Disliked
Nice indeed.

Steve,
do you want us to let it run on demo a few more days or ready to brainstorm about exits?
And, according to that, do you want to start a new tread or continue in this one and edit post one? Well, I guess it's up to you. Time will tell
Ignored
What I would like to do is make sure Dibs is running as expected and required by the end of this week. If we are satisfied that this is so, I shall start a new thread whose primary function will be to look at trade exit. I shall invite the traders in the Dibs thread to contribute.

So, please hang on to your thoughts for now.

Cheers

 
 
  • Post #88
  • Quote
  • Jun 1, 2011 8:01pm Jun 1, 2011 8:01pm
  •  infinite123
  • | Joined Nov 2008 | Status: Member | 13 Posts
hi steve,
just been testing the your brilliant ea.
there seems to be problem i think. the ea put out a buy stop #34 way
out of place.

take a look at the attachment
Attached Image (click to enlarge)
Click to Enlarge

Name: buy stop 34.gif
Size: 40 KB
 
 
  • Post #89
  • Quote
  • Jun 1, 2011 8:18pm Jun 1, 2011 8:18pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting infinite123
Disliked
hi steve,
just been testing the your brilliant ea.
there seems to be problem i think. the ea put out a buy stop #34 way
out of place.

take a look at the attachment
Ignored
Hehe. It is not going to fill any time now, that's for sure.

I will worry about this if it happens in forward testing on demo. Strategy tester is notoriously unreliable.

The trade price calculation includes the spread, so a spike in this will cause a ridiculous fill price. If necessary, I will add a max spread input.

 
 
  • Post #90
  • Quote
  • Jun 1, 2011 10:04pm Jun 1, 2011 10:04pm
  •  infinite123
  • | Joined Nov 2008 | Status: Member | 13 Posts
Hi Steve,
thanks for the quick reply.

Just a suggestion, I see from page 1 of the thread

• Place a stop loss on both orders at the low of the inside bar.
• Place a take profit on one of the orders at the same distance from the open as the stop loss but in the opposite direction of course.
• Do NOT place a TP on the other order.
One of two things will eventually happen:
1. Both orders will close at the stop loss for a small loss or
2. The order with the TP will close at a profit
Since your closed order was profitable for the exact same amount as the stop loss on the unclosed order that order is in effect “FREE” and heading in the direction of the expected trend. Even if it reverses and closes at it’s SL the trades are a break even


I understand that instead of two orders we made it into one.

But going with the original idea as above, can the bot be made to Place a stop loss on the order at the low of the inside bar?
can the bot be made to Place a take profit on half the order at the same distance from the open as the stop loss but in the opposite direction.



From the strategy testing it seems like your bot is already profitable as
it is.
But if its possible to add the above options into the bot then we will
really be testing the dibs method of getting into FREE trades.


I apologise in advance if i have misunderstood in my setting up of
your bot or if I am out of line in my request.

As i hold you in the highest esteem as THE BEST programmer on
forexfactory(been following your threads for a few years)
 
 
  • Post #91
  • Quote
  • Jun 1, 2011 11:45pm Jun 1, 2011 11:45pm
  •  Jollyroger
  • | Joined Dec 2008 | Status: Member | 182 Posts
[quote=infinite123;4660109]Hi Steve,

I understand that instead of two orders we made it into one.

But going with the original idea as above, can the bot be made to Place a stop loss on the order at the low of the inside bar?
can the bot be made to Place a take profit on half the order at the same distance from the open as the stop loss but in the opposite direction.

I'm not Steve but I might save him some time by pointing out that the bot does precisely what you are asking him to code although slightly differently.
The bot places a single order with a stop loss and a TP equal to the parameters of the IB. If the order hits the stop you're out with a small loss. If the order hits the TP....HALF the order is closed for a profit and the balance is the "Free" trade. You just have to remember to adjust both parameters when setting up the bot.

Hope this helps!

Roger
 
 
  • Post #92
  • Quote
  • Jun 2, 2011 12:01am Jun 2, 2011 12:01am
  •  Jollyroger
  • | Joined Dec 2008 | Status: Member | 182 Posts
Steve:
Great job!
Suggestion.....Can a Time Frame parameter be added to the bot since IB's occur in a TF's? I was thinking particularly of the 4 hr and daily. Running the bot on a higher TF would in many cases give you a wider spread (and larger drawdowns) but might allow many orders rejected for "invalid trade parameters" to be placed.

I have no idea of the complexity involved in coding this but I thought I'd throw it in the pot since the bot seems to hold great promise. I have many "free" trades running and am using your jumping stop close and they are generating many pips. Will report detailed results Friday.

Roger
 
 
  • Post #93
  • Quote
  • Jun 2, 2011 1:00am Jun 2, 2011 1:00am
  •  skoda2008
  • | Joined Mar 2010 | Status: Member | 224 Posts
Regarding problems with the stop losses. Mine hasn't been sending a stop loss with the original orders, but works okay when the trailing / breakeven stop losses kick in.

Looking at the logs it appears that it is trying to send the stop losses, but it gets rejected with Error 3, invalid parameters.

My broker requires two stage orders for market orders, but single stage orders for pending. I had ECN = on, as is usually required, but have now switched to ECN = false. Since they are all pending orders with this EA, I expect this will now work as planned...

Otherwise it is performing well, and quite profitable so far too!
 
 
  • Post #94
  • Quote
  • Jun 2, 2011 11:06am Jun 2, 2011 11:06am
  •  forexgame
  • | Joined Feb 2011 | Status: Member | 20 Posts
Hi Roger and Steve,

What I am understand, the stop loss is the low or the high of IB. The screen below displays that the "buy" did not stop out even the price has hit the low of IB. Kindly need answer from both of you.
Attached Image (click to enlarge)
Click to Enlarge

Name: dibs.gif
Size: 24 KB
 
 
  • Post #95
  • Quote
  • Jun 2, 2011 12:11pm Jun 2, 2011 12:11pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting skoda2008
Disliked
Regarding problems with the stop losses. Mine hasn't been sending a stop loss with the original orders, but works okay when the trailing / breakeven stop losses kick in.

Looking at the logs it appears that it is trying to send the stop losses, but it gets rejected with Error 3, invalid parameters.

My broker requires two stage orders for market orders, but single stage orders for pending. I had ECN = on, as is usually required, but have now switched to ECN = false. Since they are all pending orders with this EA, I expect this will now work as...
Ignored
Nice one. The Ecn stuff is unnecessary and is removed here.

Cheers.

Attached File(s)
File Type: mq4 Dibs method auto trading robot by Steve Hopwood.mq4   61 KB | 263 downloads
 
 
  • Post #96
  • Quote
  • Jun 2, 2011 12:29pm Jun 2, 2011 12:29pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting Jollyroger
Disliked
Steve:
Suggestion.....Can a Time Frame parameter be added to the bot since IB's occur in a TF's? I was thinking particularly of the 4 hr and daily. Running the bot on a higher TF would in many cases give you a wider spread (and larger drawdowns) but might allow many orders rejected for "invalid trade parameters" to be placed.

I have no idea of the complexity involved in coding this but I thought I'd throw it in the pot since the bot seems to hold great promise. I have many "free" trades running and am using your jumping stop close and they...
Ignored
I gave this some thought. I do not see how this can be done.

 
 
  • Post #97
  • Quote
  • Jun 2, 2011 12:38pm Jun 2, 2011 12:38pm
  •  Jollyroger
  • | Joined Dec 2008 | Status: Member | 182 Posts
Quoting forexgame
Disliked
Hi Roger and Steve,

What I am understand, the stop loss is the low or the high of IB. The screen below displays that the "buy" did not stop out even the price has hit the low of IB. Kindly need answer from both of you.
Ignored
I haven't a clue. Did you check your experts and journal folder?

Two comments: Download the latest modification from Steve and replace your current EA with it. Also I noted that your scree states that there is insufficient margin to make trades. Suggest you change bot to the Kiwi margin filter which should solve the margin problem.
 
 
  • Post #98
  • Quote
  • Jun 2, 2011 12:42pm Jun 2, 2011 12:42pm
  •  Jollyroger
  • | Joined Dec 2008 | Status: Member | 182 Posts
Quoting SteveHopwood
Disliked
I gave this some thought. I do not see how this can be done.

Ignored
Thanks Steve. The daily can easily be traded manually and the 4 hour also.
 
 
  • Post #99
  • Quote
  • Jun 2, 2011 4:58pm Jun 2, 2011 4:58pm
  •  paulbt38
  • | Joined Mar 2010 | Status: Member | 244 Posts
Not sure if the pendings are being deleted right. I manually deleted the first pending in the pic below but my understanding of the rules are that the trade would be deleted after the next bar when it wasn't triggered. The yellow line didn't get deleted then for some reason it set up another pending trade?

Cheers

Paul
Attached Image (click to enlarge)
Click to Enlarge

Name: screenprint.JPG
Size: 187 KB
 
 
  • Post #100
  • Quote
  • Jun 2, 2011 5:18pm Jun 2, 2011 5:18pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting paulbt38
Disliked
Not sure if the pendings are being deleted right. I manually deleted the first pending in the pic below but my understanding of the rules are that the trade would be deleted after the next bar when it wasn't triggered.
Ignored
Cheers Paul. This is something I did not see, and I do not quite understand.

Does this mean:

 

  1. opening of bar 1: pending trade sent
  2. opening of bar 2: deletes pending if not filled

or

 

  1. opening of bar 1: pending trade sent
  2. bar 2: waits to see if trade fills
  3. opening of bar 3: deletes pending if not filled


I will look at the yellow line thingy. Not much point in having it lying around if there is no pending trade in place.

 
 
  • Commercial Content
  • /
  • Jollyroger: an inside bar auto-trader by SteveHopwood
  • Reply to Thread
    • 1 34Page 567 8
    • 1 4Page 56 8
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023