Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
System Tester - Sell based on buy price/candlestick values - Help needed
Rank: Newbie
Groups: 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 !
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 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
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Unverified Users Joined: 10/29/2004(UTC) Posts: 4
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Special Interest Groups
»
Advanced Coding Techniques
»
System Tester - Sell based on buy price/candlestick values - Help needed
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.