I am trying to develop a trading program that has several signals. for now i am concentrating on only signal number 1 . Its a simple signal that fire if price is a above a point by 2 ticks , the code is as below. The problem I am having is that the program sets the limit price and ninjatrader register it as a trade even though price did not trade at the set limit price. Target and stops are being hit even though a trade should not have taken place because price did not reach that point. Can you give me some insight as to what I am doing wrong.
Thanks
Comment