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

Notification

Icon
Error

Options
Go to last post Go to first unread
simos  
#1 Posted : Saturday, April 3, 2010 4:37:21 AM(UTC)
simos

Rank: Member

Groups: Registered, Registered Users
Joined: 1/7/2010(UTC)
Posts: 11
Location: Greece

Hi all,

I'm trading derivatives and I'm trying to setup a system of the EST (Enhanced System Tester).
I need to add a trick in my formula and i hope you guys can assist me.

In a buy signal {Cross(Mov(C,50,E),Mov(C,100,E))} i want to make a trade only if the current price of one of the next bars is 15 points higher than the high of the bar i got the signal. I hope this makes sense.:)
As you can guess i want to do the opposite thing in a sell signal ( if the current price of one of the next bars is 15 points lower than the low of the bar...)
Please check the photo I'm sending and i hope i can give you a visual of what i mean.








In any case if the current price of one of the next bars has not reached 15 points higher or lower (according the signal) than the bar i got the signal, I don't want to make that trade.
I will really appreciate your assistance.

wabbit  
#2 Posted : Saturday, April 3, 2010 7:56:23 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)
Add to your entry criteria, the combination of ValueWhen() and BarsSince(), something akin to:

Code:

x:=Cross(Mov(C,50,E),Mov(C,100,E));
long:=H > (ValueWhen(1,x,H)+0.0015) AND BarsSince(x)<=15;


You might also like to explore the use of pending trade orders to get you into the trade at the required price?


There's lots of options here.



wabbit [:D]

simos  
#3 Posted : Sunday, April 4, 2010 3:39:47 AM(UTC)
simos

Rank: Member

Groups: Registered, Registered Users
Joined: 1/7/2010(UTC)
Posts: 11
Location: Greece

Hi wabbit,

First of all i would like to thank you for your fast reply.

I did some tests using the formula you suggested but I'm not having proper results.
After some search i noticed that i don't need the BarsSince() because i want to make a trade at any point in the future when a signal occurs and not within a specific amount of bars.(Please correct me if I got this wrong).
Also i got this working by replacing the 0.0015 with 15. Is it because I'm using units and not dollars?

Another question is if I can have a trade during a bar and not at the OHLC of the bar?

Once again i must say that I'm very grateful for your help.


wabbit  
#4 Posted : Sunday, April 4, 2010 7:12:46 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)
wabbit wrote:
You might also like to explore the use of pending trade orders to get you into the trade at the required price?



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.