Hi there,
It’s all in the topic title; is there a way?
I had thought to use the 1second timeframe but unfortunately, you need too much data – which is not supported by PRT – in order to achieve this so I’m a bit stuck..
Can someone help me out? The idea is to avoid short/long hunters of course..
Cheers,
JSParticipant
Senior
Hi @Albaran
You can link an order (bestens) to Alerts, the order is hidden until the alert is triggered.
Orders linked to Alerts are deleted if they have not been executed when you close the platform.
My bad, I posted my topic in the wrong forum..
It was a question for automated trading..
It’s all in the topic title; is there a way?
It was a question for automated trading..
Hi Albaran – possibly you think too difficult …
Personally I can’t even imagine a limit order with Autotrading because it would be a kind of redundant operation; the program code would wait for a price to occur (from the one bar to the next and so on), and when it’s there it enters. This could obviously be done with a Limit order as well, but for me this would feel “out of control”.
In the end you wouldn’t be waiting for a price to occur, but for a situation to happen. For example if a short average crosses a long average and a trend you like to see is occurring. Then enter. There are no Limit Orders anywhere and no-one would be able to see what you are heading for.
Is this the answer you were looking for ?
JSParticipant
Senior
Hi @Albaran
Example for automated trading:
DefParam CumulateOrders = False
A1 = Average[25](Close)
A2 = Average[50](Close)
Cond1 = A1 Crosses Over A2
Cond2 = A1 Crosses Under A2
If Cond1 then
Buy 1 Contract at Close - 2 Limit
EndIf
If Cond2 then
Sell 1 Contract at Close + 2 Limit
EndIf
The order will be in the order book at the moment one of the conditions is triggered, till then the (limit) order is “hidden”.
For Buy orders set the Limit below the Close (actual price)
For Sell order set the Limit above the Close
If you want to buy (sell) above (below) the actual price use Stop orders.
JSParticipant
Senior
Edit:
If Cond2 then
SellShort 1 Contract at Close + 2 Limit
EndIf
EricParticipant
Master
MTF (multi timeframe) and market orders?
JSParticipant
Senior
Hi @Eric
The question was about “Hiding Limit orders”
The order will be in the order book at the moment one of the conditions is triggered, till then the (limit) order is “hidden”.
Actually it is a nice subject. Anyway, this is exactly what Albaran does not want. My suggestion (implied by my previous post) – copied from your example, would be like this :
DefParam CumulateOrders = False
A1 = Average[25](Close)
A2 = Average[50](Close)
Cond1 = A1 Crosses Over A2
Cond2 = A1 Crosses Under A2
If Cond1 then
Buy 1 Contract at Close - 2
EndIf
If Cond2 then
SellShort 1 Contract at Close + 2
EndIf
Thus
MTF (multi timeframe) and market orders?
Something like that. However :
I had thought to use the 1second timeframe but unfortunately, you need too much data – which is not supported by PRT
then we’d have that issue, which seems the main issue for Albaran.
@Albaran, the Premium version of PRT supports 1M bars, which would be 1 month for 1 second bars.
Summarised, when a Limit order is put on an e.g. 1 minute time frame, it can be hunted for 1 minute. 😉
Now how to solve this ? …
The question was about “Hiding Limit orders”
which you did not hide. Haha.
Do we really think any big traders would waste time directly hunting our little Orders?
Even if we manage to hide an Order (but still there) then when the big boys gobble up the big visible Orders then our (invisible) Order would get gobbled up at same time anyway!? 🙂
JSParticipant
Senior
@PeterSt
Do you really think your suggestion will work?
If Cond1 then
Buy 1 Contract at Close – 2
EndIf
// Pseudo Code
DefParam CumulateOrders = True // !
If Not OnMarket then
A1 = Average[25](Close)
A2 = Average[50](Close)
Cond1 = A1 Crosses Over A2
Cond2 = A1 Crosses Under A2
If Cond1 then
Buy 1 Contract at Close - 2 At Market
EndIf
If Cond2 then
SellShort 1 Contract at Close + 2 At Market
EndIf
else
// OnMarket.
If abs(CountOfPosition) = 1 then
If LongOnMarket then
Buy 100000 Contract At Market
else
SellShort 100000 Contract At Market
endif
// Still too few for GraHal's likings ? then add more !! That'll teach them.
endif
endif
Do you really think your suggestion will work?
With At Market, yes. 🙂
And decent price calculation, obviously. It’s about the gist.
JSParticipant
Senior
Sorry but this is total nonsense:
If Cond1 then
Buy 1 Contract at Close – 2 At Market
EndIf