Hi, I have been using IG's advanced charts to automate my trading and am back testing the results. I have written a basic system, but would like to add in a few entries such as: If next bar close is lower than current bar go long etc. Can't seem to work out the formula for this. Could anyone help or point me in the right direction? I assume the script for IG is the same as for Ninja Trader and other software. Many thanks