Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
thanks for your reply
The signal list is perfectly matched so I don’t think Z.shift() matters here, also Z.shift only =nan at first date right? In my example the first signal was received at 43rd bar.
… 在 2021年9月30日,下午6:44,kernc ***@***.***> 写道:
This is SignalStrategy code. Welcome to investigate. 😅
It seems the first trade signal always been ignored, but why?
Z.shift() produces one leading NaN value, but NaN != 0, hence +1. Can you confirm?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
There is no Nan in the signal :(, 6 signals and 5 trades You can see my full code in colab: https://colab.research.google.com/drive/1l4Ki7tcdlhjEqfcuhdETdxbupIwyB6KS?usp=sharing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The entry size plot shows a short signal was received at around March 1987, but no trade has been made, I don't know why
I was using the HSI index as the dataset, and the strategy is simple, if the Z-value < -threshold the short the index, if >threshold then long it, it works at Oct 87 but failed at March, I am confusing now
Beta Was this translation helpful? Give feedback.
All reactions