Getting some looping!!
Been working on this problem all night and can not find the error!! Right now Im using playback to test this script. If you forward to 9:00am (any day will do) and the pnlong() or pnlshort() entry goes off over and over again in a loop.
If I hit RELOAD on the study it stops looping and behaves correctly. Also if I turn on computeonclose it behaves correctly. I need to have it off though for what im doing. Weird..
Code is still really messy and unorganized. The script calls an external script, strategy.efs which just returns -1, 0 or 1 (short, flat, long). Frustrated and tired.. night all.
Anyway its attached to this message if anyone can give me a pointer/tip.
Been working on this problem all night and can not find the error!! Right now Im using playback to test this script. If you forward to 9:00am (any day will do) and the pnlong() or pnlshort() entry goes off over and over again in a loop.
If I hit RELOAD on the study it stops looping and behaves correctly. Also if I turn on computeonclose it behaves correctly. I need to have it off though for what im doing. Weird..
Code is still really messy and unorganized. The script calls an external script, strategy.efs which just returns -1, 0 or 1 (short, flat, long). Frustrated and tired.. night all.
Anyway its attached to this message if anyone can give me a pointer/tip.
Comment