Support Board
Date/Time: Fri, 10 Jan 2025 10:20:29 +0000
Post From: Stop Limit Order
[2016-08-19 04:03:13] |
Netz - Posts: 19 |
Hello. I'm trying to enter a buy or sell order several ticks below/above the signal bar close. For example, If I get a sell signal, have a sell stop order to enter several ticks above the signal bar close. Is this how it is done in ASCIL? if (BAR SIGNAL) // Enter buy when long signal is formed. { s_SCNewOrder NewOrder; NewOrder.OrderType = SCT_ORDERTYPE_STOP_LIMIT; NewOrder.Price1 = sc.Close[sc.Index] - 4 * sc.TickSize; } if (BAR SIGNAL) // Enter sell when short signal is formed. { s_SCNewOrder NewOrder; NewOrder.OrderType = SCT_ORDERTYPE_STOP_LIMIT; NewOrder.Price1 = sc.Close[sc.Index] + 4 * sc.TickSize; } |