![](/img/trans.png)
[英]How can I get data from a time frame other than period setting in strategy tester (MT4)
[英]How can I get the Time[0] in different timeframes?
如何在不同的時間范圍內獲得 Time[0]? 我只使用一張圖表,在此先感謝您的幫助。
例如,我當前打開的圖表在 1H 時間范圍內,我想在 1H 時間范圍內、30M 時間范圍內和 15 分鍾時間范圍內獲取蠟燭打開時間,而不更改當前打開圖表的時間范圍。
要獲取指定時間范圍柱的時間值,請使用iTime()
function。
示例(兩個警報具有相同的結果):
Alert("Time[0]: ", Time[0]);
Alert("iTime[0]: ", iTime(Symbol(), PERIOD_CURRENT, 0));
對於指定的時間范圍,請使用enum timeframes 。
還要檢查iTime 文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.