Does the FXCM API support OrderLimit? If not is there any broker known that does?
As far as I think to know something like this should not happen:
[1158: Fri 18-03-02 14:17:01] (1.37795)
2018-03-02 14:17:55.4555
Asset: GBPUSD_FXCM, Price: 1.37750, Spread: 0.00001, Commission: 0.00007, TickAge: 0.00002
OrderLimit: 1.37746
[GBPUSD_FXCM::S5254] Short 1@1.37694 at 14:17:55.
How to avoid it if OrderLimit is not supported? Setting any Entry away from the actual price only to open a pending trade and using a 'PriceLimit' in a TMF?
int TMF(var PriceLimit) {
if(!TradeIsOpen) {
if(TradeIsLong && TradePriceOpen > PriceLimit)
return 1;
if(TradeIsShort && TradePriceOpen < PriceLimit)
return 1;
}
}
Is this a viable way to simulate OrderLimit?