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

Notification

Icon
Error

Options
Go to last post Go to first unread
GameTime  
#1 Posted : Monday, October 17, 2011 5:28:51 AM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
I’m currently designing my own trading system, and I’m having some difficulty implementing multiple stop losses.

Both stop losses are being displayed on the screen, when I only want the first Stop that is activated to be displayed while the second one never appears.

I know I could use a Latch to get this working, but was wondering if it’s possible to get this working without a latch.

My Stop Loss Formula is:

Fml("!Fixed Stop Loss & Profit Take Long")=-1
OR
Fml("!Timed Exit Signal Long")=1


As mentioned above, my Expert advisor is displaying both Exit signals when I only want the 1st to be activated, displayed.

Any help would be greatly appreciated.

Thanks in Adcance.
jjstein  
#2 Posted : Monday, October 17, 2011 5:59:19 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Assuming your "Stop Loss Formula" code above defines the Expert Symbol, try this:

(
Fml("!Fixed Stop Loss & Profit Take Long")=-1
and
Fml("!Timed Exit Signal Long")<>1
)
or
(
Fml("!Timed Exit Signal Long")=1
and
Fml("!Fixed Stop Loss & Profit Take Long")<>-1
)

FWIW, your use of "1" and "-1" is a bit confusing -- if you're going to use "-1" for SHORT and "+1" for LONG, it doesn't seem consistent...


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.