photo

Alex Regner


Last seen: 2 years ago Active since 2022

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How can I add a stop loss and take profit for algorithmic trading in MATLAB?
s = zeros(size(S1Close1)); sl1 = cctbbo20L < BBosline; ss1 = cctbbo20S > BBobline; sl2 = MA2>=DEMA; ss2 = MA2<=DEMA; sl3 = ...

3 years ago | 1 answer | 0

1

answer

Question


Check if condition happened in previous values
cctbbo = 100.*(Close + 2.*movstd(Close,[BBOlength 0]) - movavg(Close, 'simple', BBOMAlength ))./(4 .*movstd(Close,[BBOlength 0])...

3 years ago | 1 answer | 0

1

answer