PureBytes Links
Trading Reference Links
|
Hi,
Just returned to find all those great suggestions which I will work on. many thanks for all the help.
I looked at flip(array1,array2) but in my case I want it to work with the same array not a different one.ie I want to hold a value from the first occurence until the second occurence of the same condition.
eg
Cond=high>ref(high,-1); /* the condition being monitored is high today greater than high yesterday */
val=valuewhen(cond,high,1); /* the value of high when condition occurs */
then something like flip(cond,cond); or holdtill(cond,val); /* a way to keep the last value of high constant until the condition occurs again, then change to the new value and hold again until etc */
Maybe I'm missing an obvious way to do this.
Ps to the person who suggested I learn AFL, this is what I am trying to do with all your help.
Regards Don.
|