Have the following piece of code
Code: Select all
[IntrabarOrderGeneration = True]
vars: IntraBarPersist sell_level(0);
sell_level = maxlist(sell_level, c[0]-sellstop);
sell_level is declared as intrabarpersist so that if the current 'c[0]-sellstop' (sellstop=0.0002) is greater then sell_level updates otherwise it should hold the previous value.Line1: sell level[0] is 1.31530, c[0],1.31550
Line2: sell level[0] is 1.31528, c[0],1.31548
Line3: sell level[0] is 1.31527, c[0],1.31547
Line4: sell level[0] is 1.31526, c[0],1.31546
Im seeing here that the variable does not seem to hold the max value but in effect is 'c[0]-sellstop' ?
Intrabarpersist does not seem to be working?
Tried this with intrabarpersist on/off similar behaviour?