OK. I will post my ticket here just to get something happening.
I am trying to do a simple peak-detector-with-reset (code below). There are 3 IF()s in the code. The code fails on the third IF() (the associated 'plot' variable disappears of the screen is the only symptom). There is self-referentiality in the 1st IF() that works fine. The code is accepted by the compiler as valid. There's nothing obviously wrong with the 3rd IF().
I have tried to see if other functions in the language can do what I want. They don't seem to be useful for this, but maybe I've missed something. All I want is to capture and maintain the maximum in Gad (called Gad_max) and reset it when GO is reset to 1 (happens because of the BUY single-day pulse).
I can't see why the script doesn't work.
cheers
colin
(happy to issue a ticket on this if you want, when the system works)
You mentioned in your other post that the issue had been resolved. I’m not sure what adjustment you made, but we had a look at the script and this is the adjustment we made to resolve it…