Support Board
Date/Time: Sun, 22 Dec 2024 23:25:23 +0000
Post From: adding adx to ASCIL code ?
[2015-05-11 13:31:33] |
User120827 - Posts: 77 |
hi how can I add smething akin to " adx>20 " to this code as a filter ? thanks / code
if (InputDateTime1 > StartDateTime && InputDateTime1 < EndDateTime) if (sc.CrossOver(line1, line2) == CROSS_FROM_BOTTOM) { // mark the crossover on the chart BuyEntry[sc.Index] = 1; // Create a market order and enter long. s_SCNewOrder order; order.OrderQuantity = 1; order.OrderType = SCT_ORDERTYPE_MARKET; sc.BuyEntry(order); } |