logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
blueboy65  
#1 Posted : Tuesday, April 8, 2008 12:33:58 AM(UTC)
blueboy65

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 11/14/2007(UTC)
Posts: 9
Location: Melbourne, Australia

Can someone please let me know how I can stop the EST to give me BUY and SELL Signals on the Same Day ?

Here are my System Test Parameters:

Buy Order: LinRegSlope(Mov(C,130,E),10 ) >= 0.005 AND Cross(Stoch(5,3),20)

Stop: LLV(L,20)+2*ATR(10)

Number of Units: equity:=Simulation.AccountCash+Simulation.AccountBorrowed+Simulation.PortfolioValue+Simulation.AccountReserved; (equity*.02)/(C-LLV(L,5))

Sell Order: C< Fml( "AA JB Volatility Trailing Stop") AND Ref(C,-1) < Ref( Fml( "AA JB Volatility Trailing Stop"),-1)

I think what's happening is that when the Buy Order is executed, the conditions for the Sell Order are also met hence I get the situation where the EST is placing an Buy and a Sell on the same bar !

Is there any way I can prevent this from happening in the EST or do I have to use a formula in the Buy Order to prevent this - e.g. put another condition in the Buy Order - C > "AA JB Volatility Trailing Stop" mentioned above ??

Any help would be greatly appreciated.

wabbit  
#2 Posted : Tuesday, April 8, 2008 4:20:01 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
g'day blue,

Have a read of Sprunger Guide to MS ver8.x Sys Tester found at http://forum.equis.com/files/default.aspx
blueboy65  
#3 Posted : Tuesday, April 8, 2008 8:35:08 PM(UTC)
blueboy65

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 11/14/2007(UTC)
Posts: 9
Location: Melbourne, Australia

Thanks Wabbit - but it hasn't really helped me.

I think I might have to use a "latch" of some sort - which I've been dreading because I now have to spend some time understanding how they work !

Oh well - you learn something new every day.

One question I do have is can you use latches in the EST or are they a stand alone Expert Advisor ?

Any help pointing me in the direction of understanding latches will be greatly appreciated.

blueboy65

blueboy65  
#4 Posted : Tuesday, April 8, 2008 10:52:17 PM(UTC)
blueboy65

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 11/14/2007(UTC)
Posts: 9
Location: Melbourne, Australia

OK - for future reference on those who have similar problems to myself here's how I got around the problem:

1. Used a latch - "Trade Signals V4.0" found at metastocktools.com, Coded the Buy and Sell signals with this code - with slight modifications to run in EST - ie. remove the INPUT variables.

2. Followed the instructions on "Sprunger_Guide_to_MS.doc" as recommended by Wabbit above (yes Wabbit - you were indeed right...how foolish of me to even contemplate otherwise - my hat off to you !)

...Bob's your uncle ! I'm finally getting all the signals in the right places !

blueboy65

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.