Support Board
Date/Time: Sun, 22 Dec 2024 05:50:59 +0000
Post From: Compiler Error s_SCNewOrder
[2015-07-13 22:28:23] |
enemyspy - Posts: 306 |
Using the Code Below my compiler is giving me the following error: 'NewOrder' : undeclared identifier All other functions in my code are not casuing problems the defintion for s_SCNewOrder also poplulates when I hover over it. But It does not recognize the NewOrder object (Edit) Once I add the second portion of the code it stops recognizing the object, but if I delete the bottom portion and only use the top 4 lines it works. Is it not possible to use variables in order to define the stop&target offset? s_SCNewOrder NewOrder;
NewOrder.OrderQuantity = 1; NewOrder.OrderType = SCT_LIMIT; NewOrder.TimeInForce = SCT_TIF_GTC; NewOrder.Target1Offset = ((CloseBullHigh-CloseBullLow)*RiskReward.GetInt())*sc.TickSize; NewOrder.Stop1Offset = (Last-CloseBullLow-StopBuffer.GetInt())*sc.TickSize; NewOrder.OCOGroup1Quantity = 1; Date Time Of Last Edit: 2015-07-13 22:37:31
|