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

Notification

Icon
Error

Options
Go to last post Go to first unread
dorusone  
#1 Posted : Friday, August 12, 2005 11:04:54 AM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

Hello again, i want to plot on a daily chart the Buy (B is ok) and then : Hold-1 (or H-1) Hold 2 ( H-2) ...... Hold 26 (H-26) and at last : Sell ( or S) Is that possible ? Thanks a lot in advance.
wabbit  
#2 Posted : Friday, August 12, 2005 1:01:11 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)
Have a look in the Users Manual for the "BarsSince()" function Sell:=BarsSince(buy)=26=1; wabbit :D
dorusone  
#3 Posted : Saturday, August 13, 2005 8:35:37 AM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

wabbit wrote:
Have a look in the Users Manual for the "BarsSince()" function Sell:=BarsSince(buy)=26=1; wabbit :D
Hello, i did but i still donot see the solution, please be more specific Thanks
wabbit  
#4 Posted : Saturday, August 13, 2005 9:22:19 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)
Use the barssince() function to trigger an exit 'x' days after the entry... If your entry criteria is: N:={buy formula}; X:=Barssince(N)=26; this is particularly easy to implement with Patricks Latch dll file. Just do a search to find it. wabbit :D
dorusone  
#5 Posted : Saturday, August 13, 2005 9:57:49 AM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

wabbit wrote:
Use the barssince() function to trigger an exit 'x' days after the entry... If your entry criteria is: N:={buy formula}; X:=Barssince(N)=26; this is particularly easy to implement with Patricks Latch dll file. Just do a search to find it. wabbit :D
Hello again, Sorry but i donot get it . Please study my first email. 1) The entry is based upon say for example C>moa25 2) i want then to PLOT in the daily chart under the Entry Day a "B" based upon other criteria (like C>Ref(C,-1) the trade is in a HOLD phase so i like to see under day one after the Entry : "H-1" which stands for Hold-1 , then based upon the hold criteria H-2 etc until H-X where X stands for the last day this trade is in a Hold Phase what X is i donot know but the Hold Criteria will tell. so X can be 14 or 45 or 2. plotted on the chart. If the Sell criterium is triggered i like to see a S plotted on the chart. (SELL) Of course maybe it can be possible with the barssince function and the dll but my knowledge of MS will not allow me that to do so far so please try to explain it that a dummy can understand your approach. Please show me how to plot B,H and S in the chart. Thanks again
wabbit  
#6 Posted : Saturday, August 13, 2005 10:24:11 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)
To plot text on a chart you need to program the Expert Advisor. You will need three formulae in the symbols section: one for the buy symbol, one for the hold symbol(s) and one for the sell symbol. Although this is quite feasible, I recommend you have a look at using a latched formula that will plot a result (normally zero) when not in a trade and 1 when in a trade (long) or -1 in a trade (short). Do a search for latches in this forum or see: http://forum.equis.com/viewtopic.php?t=1312 I do not recommend that you plot B, H and S on the chart itself as it will quickly get untidy and hard to read. There are better ways to achieve your aim. Have a good look through all of the forum for ideas. wabbit :D P.S. If you have trouble doing this with the latch then post here your entry and exit criteria and I will help you make the proper indicator.
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.