open/close cross ea

open/close cross ea

Postby jiva34 » Thu Nov 17, 2011 12:43 pm

Using Steve's shell, "mgft" from ff coded a strategy I was working on. I added via cut and paste the Allaverages indi that Steve put together for the bbstop ea and voila we now have what appears to be a fully functional robot.
Let's see what this miracle put together by many hands can do.

not sure what time frame is best.
The strategy in general is very sucessful on the day chart.
Would be good to get it up and running nicely for shorter term trades.

21 sma open,
21 sma close

21 lsma for trend

cross down enter short trade with lsma trend

cross up enter long trade with lsma trend

The atr and partial closing functions aren't programmed in yet. so use the other stop options provided in the shell.
stop = 1 ATR

close 1/3 at +1/2 ATR
move stop to Breakeven profit +5 pips

close 1/3 at +1 ATR

can trail stop for remaining 1/3.


exit stopped out or new signal in opposite direction.

ea is being modified trailing stops functions are buggy
You do not have the required permissions to view the files attached to this post.
User avatar
jiva34
 
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: open/close cross ea

Postby jiva34 » Thu Nov 17, 2011 4:19 pm

The jumping stop, trailing stop and candle stop don't seem to be functioning (Breakeven pips set true)
User avatar
jiva34
 
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: open/close cross ea

Postby SteveHopwood » Fri Nov 18, 2011 7:27 am

There was a logic bloop that exists in all of the stop management functions that prevented them from working if HiddenPips = 0.

I guess this bloop exists in most of the stuff I have produced recently.

I suggest you make sure this works, then copy it over the top of your version in post 1 so everyone can find it easily.

:D
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Global Prime is the official SHF broker. Click here to sign up for a live account with Global Prime and join the several thousand SHF members who wisely choose GP as their broker of choice.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Tommaso (milanese) for all the incredible work he does here.
User avatar
SteveHopwood
 
Posts: 9316
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: open/close cross ea

Postby jiva34 » Fri Nov 18, 2011 8:28 am

SteveHopwood wrote:There was a logic bloop that exists in all of the stop management functions that prevented them from working if HiddenPips = 0.

I guess this bloop exists in most of the stuff I have produced recently.

I suggest you make sure this works, then copy it over the top of your version in post 1 so everyone can find it easily.

:D

Not working quite right.

if hidden pips is set to a value a red dotted line will appear on the chart that trails the prices using trailing stop, but the trade doesn't close.

if hidden pips is 0 nothing happens...

Break even works properly hidden pips set or not.
User avatar
jiva34
 
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: open/close cross ea

Postby SteveHopwood » Fri Nov 18, 2011 9:51 am

The function that looks for trade exit conditions needed some extra code.

See if this works.

:D
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Global Prime is the official SHF broker. Click here to sign up for a live account with Global Prime and join the several thousand SHF members who wisely choose GP as their broker of choice.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Tommaso (milanese) for all the incredible work he does here.
User avatar
SteveHopwood
 
Posts: 9316
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: open/close cross ea

Postby winsteadglenn » Fri Nov 18, 2011 12:03 pm

Up 8% overnight. I like it. EU/GU/AU/UC/EJ; 2% risk. fifteen min. window . Manual close. Glenn
winsteadglenn
 
Posts: 106
Joined: Tue Nov 15, 2011 10:40 pm

Re: open/close cross ea

Postby jiva34 » Fri Nov 18, 2011 12:41 pm

SteveHopwood wrote:The function that looks for trade exit conditions needed some extra code.

See if this works.

:D

seems to be closing alright.. as long as hidden pips is given a value...

but the trailing stop lines all remain on the chart.

This is going to be a really good one..........
User avatar
jiva34
 
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: open/close cross ea

Postby SteveHopwood » Fri Nov 18, 2011 12:55 pm

The version checks for orphan tp/sl lines every 15 minutes. They might hang around for a while, but will disappear eventually.

:D
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Global Prime is the official SHF broker. Click here to sign up for a live account with Global Prime and join the several thousand SHF members who wisely choose GP as their broker of choice.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Tommaso (milanese) for all the incredible work he does here.
User avatar
SteveHopwood
 
Posts: 9316
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: open/close cross ea

Postby gaheitman » Fri Nov 18, 2011 1:16 pm

Is it worth putting explicit deletes in when the bot closes trades on it's own?

Code: [Select all]
 Please Login or Register to see this content
<


BTW, quick work updating the code to make sure there were lines in the first place!

George

jiva34 wrote:
SteveHopwood wrote:The function that looks for trade exit conditions needed some extra code.

See if this works.

:D

seems to be closing alright.. as long as hidden pips is given a value...

but the trailing stop lines all remain on the chart.

This is going to be a really good one..........
User avatar
gaheitman
 
Posts: 644
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: open/close cross ea

Postby jiva34 » Fri Nov 18, 2011 1:24 pm

stop lines on chart are not aprobloem now.
But it looks like the stop reverse function is not always working.
screenshot shows 2 times a short did not open when a buy was stopped out on a reverse signal..
You do not have the required permissions to view the files attached to this post.
User avatar
jiva34
 
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Next

Return to Automated trading systems

Who is online

Users browsing this forum: No registered users and 2 guests