I am trying to learn ninja script programming by myself. As a first step I wanted to make a script which enters short if previous bar is green (close higher than open) and enters long if previous bar is red (close lower than open). It seemed very simple to make it in the wizard, but the script does not make what it should make.
Can you help me?
Comment