I've developed a strategy that backtests fine, but when I went live with it, it enterd a position and then exited 6 seconds later for no apparent reason. There were some pop ups (coudn't tell if they were from NT or broker - something to the effect of overfill). I have set a variable to set the quantity to trade - a very minimal amount just for testing live and in no way was over what my account could handle. I have attached the initialize and onbarupdate methods below - thank you for any and all assistance.
hbmiles2000

Comment