Thanks David, that worked like a charm! Randy
----- Original Message ----- From: David Smith To: [email protected] Sent: Sunday, October 21, 2007 9:22 AM Subject: RE: [amibroker] entry price coding assistance Hi Randy, You seem to want a stop entry order for tomorrow after you get a trigger, set at today's high. Try this. Trigger = code; Buy = ref(Trigger,-1) and H >= ref(H,-1); BuyPrice = max(Open, ref(H,-1)); I use this with trade delay's all set to zero. Cheers, David
