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
My long_signal and short_signals columns are True and False and I allow accumulation so e.g. if two longs signals occur subsequently then I would just increase my position by a fixed 100. However my exits signals are integers and that means I should exit longs or short by more than. E.g. if my long_exit signal is 1 then I should reduce my position by 100, if its 2 I should reduce the position by 200.
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
-
I have a Pandas DataFrame with Close, long_signal, short_signal, short_exits, long_exits columns.
I am trying to build Portfolio from signal by using:
My long_signal and short_signals columns are True and False and I allow accumulation so e.g. if two longs signals occur subsequently then I would just increase my position by a fixed 100. However my exits signals are integers and that means I should exit longs or short by more than. E.g. if my long_exit signal is 1 then I should reduce my position by 100, if its 2 I should reduce the position by 200.
How to incorporate this?
Beta Was this translation helpful? Give feedback.
All reactions