2.double entryPoint
I need to define a condition within my script that checks for:
if GetCurrentBid() “touches” entryPoint......//then do something
Is there any operator available to check for the above condition, other than
( if GetCurrentBid() == entryPoint ) ? I'm just concerned that if the market is moving too fast, then the == operator may not work.
3. Sometimes I need to Cancel an order and reuse the IOrder object as given below:
entryOrder = EnterLongStop(0, true, quantity, upperValue, ""); if ( (GetCurrentBid() - lowerValue) < 0.001 ) { CancelOrder(entryOrder); entryOrder = null; entryOrder = EnterShortStop(0, true, quantity, lowerValue, ""); }
Thanks so much for the help.
Joe
Comment