Sellshort limit and stop order with target

Forums ProRealTime English forum ProOrder support Sellshort limit and stop order with target

Viewing 13 posts - 1 through 13 (of 13 total)
  • #213071

    Hi,

    How do I submit a sellshort limit with target?

    SELLSHORT 1 CONTRACTS AT TRADEPRICE+100 LIMIT
    SELLSHORT 1 CONTRACTS AT TRADEPRICE-100 STOP

    #213075
    JS

    Hi,

    If Close < 60 then

    Buy 1 Contract at Close-2 Limit

    Set Target Price 65

    EndIf

     

    If Close > 60 then

    SellShort 1 Contract at Close+2 Limit

    Set Target Price 55

    EndIf

     

     

    #213194

    Hi JS,

    The order is created but the target is not set.

    #213200
    JS

    Hi,

    It works for me…?

    #213317

    Hi JS,

    It creates the order but you will notice that the target is not set. The target is only set after the order is executed. I want the order to set the target before it is executed.

    #213318
    JS

    Hi,

    It remains a target order so there must first be a buy or sell short…

    #213419

    If you try manual placing an order in IG, you can also set the target at the same time.

     

    #213439

    That is true. But what would be the use case of that with AutoTrading ? You can do the very same there, anticipating that your Limit Order etc. is filled. OK, True, it would be so that you would need to wait until the next candle is formed so you would be one candle behind. And if you now work with an e.g. 1 Hr TimeFrame, that would be late. On the other hand, logic would tell me that with a 1 Hr (or longer) TF you would not be in a hurry with setting a target – or SL for that matter. Right ?

    Or ?

    #213456

    Hi PeterSt,

    I am testing a scalping kind of algo and it creates say 2 buy limit orders and 2 buy stop orders. It sets the target price to take profit only and there is no stop losses. That means the algo shouldn’t trigger any realized losses.

    However, at times, due to say CPI announcements etc, a spike in prices occurs. The buy stop and limit orders seems to get messed up and it ends up sending sell orders for some reason which contras off the buy orders resulting in losses.

    This is the reason why I want to place orders with targets set immediately even before it triggers.

    #213458

    Yes, I envisioned (or challenged for) such a response. I was there, and having those orders in did not help at all.
    I will try to work out a more detailed response tomorrow.  Didn’t I do that tomorrow ? please remind me.

    #213486

    So Yes, I think I understand what you’re after;

    What happens during CPI etc. announcements, is that things become too wild for IG and they need to fall back to “manual mode”. I know, this is hard to believe, but it causes the various types of orders (you put in) not to be processed for a while. I once had an experience of that close to two minutes lasting and this was only a simple (fixed) SL order. For the picturing of this :

    Envision that the price goes through the roof (while you are Short) and it goes right through the SL and one meter above (ok, my monitor of concern really is 1m50 in height). Then things start to settle down there lonly at the top and then finally some person (!) dialing the knobs, appoints your SL to that price, and out you are. Say that your SL was at 100 but it goes out at 1000.
    Remedy as I was told : get yourself the guaranteed SL and thus pay extra for each trade where a SL occurs in the program code. Note : IMO for a scalper this is too expensive, but alas.

    So far, (not) so good.

    Because your stops / limits on both sides of the price will be skipped per the very same means, you can thus end up at the wrong side with the wrong pending order type and you must now surrender to that person behind the dials for the when he/she deals with you(r order). If, for example, your code virtually becomes active again (in reality it is the broker) with a pending stop above the price, you are out in one go. No touching of the price needed. Meanwhile your Limit order also is there somewhere, and that may trigger an Entry again. How ? well, if this only happens within that same one bar you went out; I think it will be so that the limit order only is killed when that bar finishes. But instead of that happening, the order is filled again. And you ? you won’t understand, already because all goes too fast to follow. Only when you video-record things, you can later see how things went (I have a couple of video’s of such situations).

    The moral should be that nothing can help against this.
    Theoretically you can try to make an up to 1 second TF system of it, but I found that this makes things even worse. Thus, mind you, in such a situation you can’t even put in orders (of whatever type) and the “pending” mechanism causes or implies that each 1 second a new order is handed to IG (this is the nature of the pending orders, controlled by your program). All these orders will be a kind of queued, which is in the end  a technical story with a relation to PRT, because it is PRT which can’t deal with orders which require feedback from the broker, which feedback stays out (lasts too long). And now even your system is killed from the PRT server.

    I hope this made sense and shed some light on the (im)possibilities.

     

    #213527

    Hi PeterSt,

    I think you are referring to stop losses during spikes which goes beyond your stop loss due to slippage. This is definitely impossible to prevent.

    In my case, I have no stop losses, I only send orders and set targets. However, during spikes, the orders sent out by prorealtime take losses at times! I suspect this is because prorealtime doesnt set the target when it is still an order.

    #213528

    Hi @SimLH,

    My example of the Stop Losses were only an example, because I am able to show you that by video. The other order types would behave the very same (they are ignored !) because the automated system of the broker (IG) is just suspended (no matter how idiotic that may seem to you).

    So … Slippage of a minute or 2 ? No, I don’t call that slippage. It surely looks the same and technically it *is* the same, but slippage because the broker just does not deal with it should have an other name. Thus, “slippage” because your any-type-of-order is not dealt with … what would we call that ?
    Anyway, it is as how you conclude it : there is nothing to prevent from that. Except for one thing : don’t be there when it may occur (Fed announcements etc.). Or accept it because of the 50% change it goes the right direction. I tried (and are running) both means. I really can’t tell which performs best. But this obviously relates to being in already for say 1 or 2 hours. Exclude that and net you will lose (on opportunities in advance of such “Fed” etc. moments).

    It definitely is a pain. If you have good ideas about this, I am all ear to try it out and let know the result.

Viewing 13 posts - 1 through 13 (of 13 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login