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



Go to last post Go to first unread
#1 Posted : Thursday, August 21, 2014 6:58:30 AM(UTC)

Rank: Newbie

Joined: 8/20/2014(UTC)
Posts: 2

Hi all,

This is my first post in this community and I'm glad to be here. I am an experienced programmer with over 30 years, but I'm newbie in MetaStock. I really thought it would be easier and now I feel a little frustrated.

I'm trying for weeks to write custom setups for System Tester backtests, but with great difficulty, especially on programing sells based on buy price/candlestick values.

It would be very interesting that MS had functions as EntryBarLow(), EntryBarHigh(), EntryPrice().
I'm currently using the formula below with no success:

EntryBarHigh: ValueWhen = (1, fml ("@ MyEntryFormula"), H);

I cannot locate the values ​​of the entry candlestick because there are multiple buy signals previous to the sell signal.

Can someone please let me know how to locate the entry candlestick values and entry price?
Cheers !

#2 Posted : Thursday, August 21, 2014 1:26:30 PM(UTC)

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 1 time(s) in 1 post(s)
You first have to define a system or latch in a binary type of code.
then you can use valuewhen(1,entry,H) and so forth
#3 Posted : Friday, August 29, 2014 9:00:37 AM(UTC)

Rank: Newbie

Groups: Registered, Registered Users, Unverified Users
Joined: 10/29/2004(UTC)
Posts: 4

Was thanked: 1 time(s) in 1 post(s)

Profit/Loss Stop

- ProfitStop/StopLoss indicator example for use in self-referenced EntryPrice-related exit

Users browsing this topic
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.