i set a profit target of only 5 ticks in same place as trail stop-loss, and the 15-min bar goes like 30 ticks. i want it to exit when i hit profit of 5 ticks. it works ok on short timeframes.
should i be putting my trail stop loss outside of OnBarUpdate, and if so, where? I'm new to scripting, and the only functions i have in the samples i'm using are Initialize and OnBarUpdate.
Comment