You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ive got an custom ma-crossover strategy with long and short signals. Long exit means short entry and vice versa.
I want to entry a position always one candle after the exit of the previous position (e.g. entry short one candle after exit long). A half-done solution would be through fshift(1):
But that would only help for long entries. If I do the same with short entries, obviously there is no difference between exit and entry signals anymore. How can I approach it? Do you have any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Ive got an custom ma-crossover strategy with long and short signals. Long exit means short entry and vice versa.
I want to entry a position always one candle after the exit of the previous position (e.g. entry short one candle after exit long). A half-done solution would be through fshift(1):
But that would only help for long entries. If I do the same with short entries, obviously there is no difference between exit and entry signals anymore. How can I approach it? Do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions