Alex Regner
Followers: 0 Following: 0
Feeds
提问
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 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0