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

Notification

Icon
Error

Options
Go to last post Go to first unread
Spaceant  
#1 Posted : Friday, June 13, 2008 4:59:16 AM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

Hi all MS users,

Is there any DLL or tool that can be used to suppressed the second and repetitive signals of the intrabar signals, when I turn on the live expert?

As I have developed a system which is based on a kind of breakout strategy, the logic is to get the first breakout signal and I want to suppress the repetitive ones before the bar is complete. The key reason is that when MS is connected to a third party software to conduct automated trading, only the one signal is required, i.e the first signal.

Any expert has similar experience and please share with us!

Regards,

Sa

p/s would Equis staff comment on this as well?

Wabbit, I know that you know the solution, but u r busy right now....

wabbit  
#2 Posted : Friday, June 13, 2008 5:03:44 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)
Spaceant wrote:
Wabbit, I know that you know the solution, but u r busy right now....


Finished exams yesterday... so give me a few days to rest, relax and PARTY!! then I will get into writing all the codes that have been on the back-burner for a while... (there are more than a few projects outstanding!)


wabbit [:D]


Justin  
#3 Posted : Monday, June 16, 2008 12:50:07 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

Here are a couple formulas you may find useful. You would want to substitute your own formulas into the fields.

2 state:

bc:=Cross(C,Mov(C,20,S)){buy signal condition};
sc:=Cross(Mov(C,20,S),C){sell signal condition};
trade:=If( bc=1, 1, If(sc=1, 0, PREV));
cross( trade= x, 0.5)


3 state:

bc:=C > Mov(C,20,S)+1{enter long condition};
be:=Cross(Mov(C,20,S),C){close long condition};
sc:=C < Mov(C,20,S)-1{enter short condition};
se:=Cross(C,Mov(C,20,S)){close short condition};
trade:=If( bc=1, 1, If(sc=1, -1, If((be AND PREV=1)
OR (se AND PREV=-1),0,PREV)));
Cross( trade= x, 0.5)


You will need to change the Trade=X, in the above formulas to Trade= 1, Trade= -1, or Trade= 0, depending on the condition you are defining.
Spaceant  
#4 Posted : Tuesday, June 17, 2008 3:00:18 AM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

Hi Pyradius,

You may have misunstood what I mean. You codes are PREV based latches that will omit the repetitve buy or sell signals before buy exit or sell exit signals are given. These repetitive signals are located in the soming bars before the exit signals given. Actually, I have used Forum Latch to suppress the upcoming repetitive signals in the coming bars although it doesn't follow the same logic as yours. With Forum Latch, a long signal will force to close a short position if any even before a short exit signal, and similarly, a short signal will force to close a long position if any even before a long exit signal is given.

What I mean is that I want a tool or a DLL that can suppress the repetitive signals on the "same trigger bar" (or the same intraday bar). There are repetitive signals when I switch on the Tools \ Options \ Real-time \ Enable real-time (Enable live bars & Recalculate expert live for "Each Tick"). I need to check these options as I need MS to give the intrabar signal instead of end-of-bar / complete bar signal.

For example, in a 5-min chart, if my long condition is that price > 1000, and the last bar close price is 999; and say the current bar open is 999 and next tick is 1001. MS (with the above setting) will issue an alert with the expert when price is 1001. Assume the price has never fall back to below 1001 for the upcoming ticks to complete the current bar, MS will continue issuing long alerts as long as a new tick is being updated and price is bigger than 1000 while before the current bar is completed. I want the second and other repetitive signals to be suppressed.

How can this been done?

Regards,

Gary

Spaceant  
#5 Posted : Wednesday, June 18, 2008 4:49:17 AM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

Hi Pyradius,

Ooups..... my statment is wrong! Your PREV Latch is same as FORUM Latch..

SA

*PP  
#6 Posted : Thursday, June 19, 2008 1:45:44 AM(UTC)
*PP

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/1/2006(UTC)
Posts: 135
Location: Romania

Hi Gary,

From what i know thers no solution to this, maybe a new and improved metastock version.

*PP

Justin  
#7 Posted : Thursday, June 19, 2008 1:06:59 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

Sorry about that, I thought you meant subsequent bars, not on the same bar. As far as I know this is not possible within MetaStock, even through external programming methods.
*PP  
#8 Posted : Thursday, June 19, 2008 1:55:18 PM(UTC)
*PP

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/1/2006(UTC)
Posts: 135
Location: Romania

Spaceant wrote:

.... The key reason is that when MS is connected to a third party software to conduct automated trading, only the one signal is required, i.e the first signal.

Gary if you tell me what you have in mind i may be able to help. There are a few posibilities to automate trade from within metastock with several broker platforms. (i.e when signal is generated in metastock the trade is automaticaly executed in other platform)

*PP

Spaceant  
#9 Posted : Thursday, June 19, 2008 5:29:22 PM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

*PP wrote:

Hi Gary,

From what i know thers no solution to this, maybe a new and improved metastock version.

*PP

Paul,

Take a look at this link in which Wabbit has a comment on this using a counter to detect a new bar and count the signals.

http://forum.equis.com/forums/thread/26728.aspx

Well, this is one of the areas that Equis should address in their new version.....

Sa

Spaceant  
#10 Posted : Monday, June 23, 2008 11:07:12 PM(UTC)
Spaceant

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/16/2005(UTC)
Posts: 182

*PP wrote:
Spaceant wrote:

.... The key reason is that when MS is connected to a third party software to conduct automated trading, only the one signal is required, i.e the first signal.

Gary if you tell me what you have in mind i may be able to help. There are a few posibilities to automate trade from within metastock with several broker platforms. (i.e when signal is generated in metastock the trade is automaticaly executed in other platform)

*PP

Paul,

I have sent you an e=mail, please check

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.