The variables 'wanted4' and 'wanted6' in the following dataex correctly shows how the output should be:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str3(buy_signal wanted4 wanted6) "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "BUY" "" "" "BUY" "" "" "" "" "" "" "" "" "" "" "" "BUY" "" "" "BUY" "" "" "BUY" "BUY" "BUY" "BUY" "" "" "BUY" "" "" "BUY" "" "" "BUY" "SELL" "" "BUY" "BUY" "" "BUY" "" "SELL" "BUY" "" "BUY" "BUY" "" "" "BUY" "SELL" "" "BUY" "BUY" "" "" "" "" "BUY" "" "" "BUY" "" "SELL" "" "SELL" "" "BUY" "" "" "BUY" "" "" "BUY" "BUY" "BUY" "" "" "" "" "" "" "" "" "" "" "SELL" "" "BUY" "" "" "BUY" "" "SELL" "BUY" "BUY" "BUY" "" "" "" "BUY" "" "" "BUY" "" "" "BUY" "SELL" "" "BUY" "BUY" "" "" "" "SELL" "BUY" "" "" "BUY" "" "" "BUY" "SELL" "BUY" "" "" "" "BUY" "" "" "" "" "" "BUY" "" "" "BUY" "" "" "" "" "SELL" "" "" "" "" "" "" "BUY" "" "" "" "" "" "" "" "" "" "" "" "BUY" "" "" "BUY" "" "" "BUY" "BUY" "BUY" "" "" "" "" "" "" "" "" "" "" "SELL "" "BUY" "" "" "BUY" "" "SELL" end
0 Response to Obtain new variable after 3 consecutive signals and generate new values after 6 and 8 periods
Post a Comment