Comment on Code your Technical Analysis strategy

bhuvanprabha commented on 30 Apr 2013, 07:16 PM

How to code the following
1 – Highest price value (price value can be open, high. low close of bars) over last n bars
2 – Lowest price value (price value open, high. low close of bars) over last n bars
3 – Remove excess signals (ie, if I am already in sell and again if one of my sell entry conditions is met, I do not want o be prompted to sell again – similar to exrem in AFL)
4 – How many bars before the current bar did the previous high of low appeared (in relation to points 1 and 2 above)
5 – Can I use REF to refer back to values of indicators. If possible, how to get the previous peak value of indicator and the low value of indicator.
6 – How to code the wait (wait 2 more bars after a condition is met before entry)

View the full comment thread »