i_OpenEquity可以畫在圖形但是不能用在strategy,有什麼解決方法嗎?
century 發表於 11-8-12 10:00 PM
I_OpenEquity (Reserved Word)Used in a study (Indicator, ShowMe, PaintBar, etc.) to return the open equity for a strategy. The open equity is the sum of the net profit or loss of closed positions and the profit or loss of the strategy's open position, if the strategy has an open position.
Remarks
The reserved word I_OpenEquity provides a way to access strategy performance-related reserved word values in a study. Most strategy performance-related reserved words, notably those without the "I_" prefix, are available for use only in strategies. In this case, I_OpenEquity is equal to the sum of a strategy's closed position p/l and any open position p/l based on the values of the strategy reserved words NetProfit and OpenPositionProfit.
所以在 strategy 裡應該是 NetProfit + OpenPositionProfit |