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

Notification

Icon
Error

3 Pages<123
Options
Go to last post Go to first unread
mixter  
#41 Posted : Tuesday, February 12, 2013 12:17:02 AM(UTC)
mixter

Rank: Member

Groups: Registered, Registered Users
Joined: 3/31/2009(UTC)
Posts: 24

ok. Here it is .

EST first chk this creteria :
=============================================
close is above the 5 ema low and open is below the 5 ema low
==============================================
if it is true , entry will be made.

While it is running , if the
Add-On creteria appears
===============================================
Clsoe above the 5 ema high and open below the 5 ema high
===============================================
if it is true , then one more entry will be taken .

This is I called add on - additional position alongwith my original entry set up.

If both are true , I have two positions running at the same time .

Thsi is what I am looking . ( combining both conditions ) .
--------------*****-----------

Also I want to enter if any one of this occurs, entry will be made
====================================================
close is above the 5 ema low and open is below the 5 ema low ( OR )

Clsoe above the 5 ema high and open below the 5 ema high >>>> (Buy)
===================================================

mixter
wabbit  
#42 Posted : Tuesday, February 12, 2013 5:37:57 PM(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)
Try something like :

Code:

emaHigh:=mov(H,5,E);
emaLow:=mov(L,5,E);

exit:={some criteria};

{close is above the 5 ema low and open is below the 5 ema low}
buy:=C>emaLow and O<emaLow;

{close above the 5 ema high and open below the 5 ema high}
addOn:=barssince(buy)<barssince(exit) and C>emaHigh and O<emaHigh;

{trade}
buy or addOn;



mixter wrote:

Also I want to enter if any one of this occurs, entry will be made
====================================================
close is above the 5 ema low and open is below the 5 ema low ( OR )

Clsoe above the 5 ema high and open below the 5 ema high >>>> (Buy)
===================================================

Are these initial or pyramid conditions?

I'm sure with the sample of code provided, you can figure this out for yourself.


wabbit [:D]

mixter  
#43 Posted : Tuesday, February 12, 2013 11:24:15 PM(UTC)
mixter

Rank: Member

Groups: Registered, Registered Users
Joined: 3/31/2009(UTC)
Posts: 24

Thank you .

Let me go through and get back to you with the output.

mixter

Users browsing this topic
Guest (Hidden)
3 Pages<123
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.