『最佳拍檔』智能決策系統

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2039|回复: 3

系統測試

[复制链接]
发表于 2009-11-22 20:08:11 | 显示全部楼层 |阅读模式
請教老大
在系統測試(Enhanced
System
Tester)如何調入買入價?
例如:我想在買入點下方20個點止損,怎麼寫?
謝謝!!!
发表于 2009-11-23 01:16:19 | 显示全部楼层
不可以 ~ 因為買入及平倉的價格都只能運用 ,  Open, High , Low, Close 計算,
所以不能用任意價格 !!
 楼主| 发表于 2009-11-23 09:30:56 | 显示全部楼层
謝謝老大!
我的意思是在Buy Order 中的買入後,在Sell Order中設置賣出及止損點時,如何調入Buy Order中的買入價?
发表于 2009-11-23 13:09:36 | 显示全部楼层
先要利用的 買入的條件, 而因為模擬買賣多以訊號後一天的 開市價做買入位,
所以只要找出昨天是訊號日,  那今天開市位便是你要的買入價 !

例如: 買入條件   C> ref(H,-1)

那找出買入價方法可以:    ValueWhen(1, ref(   C>ref(H,-1) , -1) ,   O)




Function: Value When [valuewhen()]
SYNTAX      valuewhen ( Nth, EXPRESSION, DATA ARRAY )
FUNCTION      Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence. This includes all data loaded in the chart.
EXAMPLE      The formula "valuewhen( 2, cross(c,mov(c,10,s), rsi(20) )" returns the value of the RSI on the 2nd most recent occurrence of the closing price crossing above its 10-day moving average.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|『最佳拍檔』智能決策系統

GMT+8, 2024-9-28 00:19 , Processed in 0.048163 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表