小幫手好,我想要在某一個進場條件成立下的隔天開盤買進
因此利用barlast的寫法來找出進場的價格,如下:
If volume>volume[1]*1.2
and close>open
and close>close[1]*1.03
then condition1=true
else condition1=false;
Value1=barslast(condition1);
If Value1=1 Then Value2=open;
Value2就是我的買入價格,但這種寫法如果未出場前,有條件符合的話
Value2就會被新的價格取代,而不是第一次符合的價格
請問小幫手有其他寫法嗎? (能否利用array來存取每一次的價格呢?)
1 評論