About to give up… is PRT not the code for a simple breakout strategy?
Forums › ProRealTime English forum › ProOrder support › About to give up… is PRT not the code for a simple breakout strategy?
- This topic has 18 replies, 9 voices, and was last updated 1 week ago by
PeterSt.
-
-
02/13/2025 at 11:31 PM #243810
I guessed that was the case, but I haven’t proved that it is, yet!, but now you mention it!
If the price ‘just’ triggered the order(short) at the entry level,
then you would expect the entry would be below the entry level by halve the spread.
Since the price never changes, exit was halve the spread above the entry level,
These to points make up the whole spread distance. ( spread = 0.7 + 0.7 = 1.4 )
That could explain what happened, but not why the chart doesn’t represent that or why it happened.
Thanks #GraHal, another possible piece of the puzzle.
On another point, I haven’t seen any information explaining about the icon’s in the image.
Not really rocket science, but somethings been bugging me for a while about them, especially the X, maybe I’m a bit slow!
I think what may have puzzled me was if both a back-test is run in chart with its orders displayed and Recent orders displayed as well, the orders same or similar can display both.
However if you hide one set, then you can get different closed icons
.When in back-test, the order icons for ENTRY; STOP; TARGET; Trailing STOP, sh0w as expected if there triggered.
However, if a order is closed for another reason, FLATAFTER; a REVERSED ORDER, the closed order is the X icon.
In the proOrder(demo), other than the ENTRY(arrow), only the X is used for all closing of trades regardless of why, and probably if QUIT or STOPPED.
Still observing, but I think that so far.
Regards
02/14/2025 at 12:08 AM #243813Another question would be , was the spread 1.4, maybe it was halve of that, or some combination which made up 0.7.
Being in an entry and then exit you would have expected the whole spread as a loss, especially if price didn’t move.
Or maybe, the entry is represented at the entry level, but the profit starts at -spread down.
02/14/2025 at 12:12 AM #243814Thanks for the granular feedback everyone. As someone on the learning journey, all information is good, there’s no such thing as bad feedback, the onus is on us to work through the relevant / applicable parts and perhaps also tuck away the gems!
I only wish I’d started years back.
@druby what you said about controls is important to see what’s what, that rang very true for me. I’ve landed on using flags quite a bit (happenstance but had no choice either) and reminds me of another poster @PeterSt and how they mentioned there importance, it’s now a wip/sop for me in setting and maintaining env. I think it was @JS that said in a reply that PRT is a most forgiving code but that can also be a hinderance potentially – still scares me to think about it!Keep up the feedback everyone it allows the ‘un-initiated’ to grow a bit and understand the path a little better.
02/14/2025 at 5:12 AM #243818Another question would be , was the spread 1.4, maybe it was halve of that, or some combination which made up 0.7.
Hi @druby – From Live (I never do Demo) I know that the spread is taken at the Entry or at the Exit or at both. This is “at will”. And when divided over Entry and Exit, I don’t know the division (I never sorted that out) – probably 50/50 indeed.
I also never sorted out whether the division over Entry and Exit, or just going to one of these, is related to the type of Entry and Exit thinking of Market order vs Limit and Stop order. Point is, I use a combination of everything on either side and it depends on the situation which is used when. You may probably find out yourself, thinking of which would be the most efficient for IG, because this is how they work (trying to make the most money out of everything). Example (just making this up !), it would be quite noticeable for you if the spread was taken from an Entry-Limit; for Market you wouldn’t know (or it would be hard to find out). The Exit would be even more noticeable for you if it would be a Target Profit (as in : Ha, I am making $100 right now and, hey, what ? now the Exit occurs on TP and now it is only 98.5 ??), so when a TP is noticed by IG, the spread would be taken fully from the Entry (and the loss of 1.5 would be there instantly, which is hardly noticeable – only with more effort). Please remember, I am making up the examples/reasons; all I do know for sure is that where it is taken, can change. Also to remember : in Live.Your reflections on what actually happens with in-bar trades and the spread causing a trade right on the spot, is something I contemplated myself, but don’t have am answer to other than this one : how to the by IG set minimum distance can be related to this and how would they possibly NOT have this under their control in such a particular occasion/setup. Thus, Entry is at 22100 and the OCO connected Limit is at 22095 because it so happens but the implied (half) spread is at 33 and thus the entry could imply a loss to 22100 – 33 = 22067. Please do notice : the gain would show -33 right away in normal Live circumstances and thus the (OCO) Limit would be in order instantly. This is what IG may try to prevent with their 4 points (etc.) minimum distance, but it would be (could be) too difficult to arrange for this in this setup. … And backtest (and Demo ?) would just do it.
These matters can not ever be tested in Backtest or other means without the market being there, so it can only be done in Live, and even then you would have a very hard time to reason what happened in some situations. Btw, I call this “bouncing”, which would be “physical” when using very short timeframes like 1 second and when you’d allow a new (possible) entry each next second after the exit. It would be out of control.
Notice that for IG this would not be possible because of the spread, while for IB it would not be possible for you to control it because of the required interaction with Exchanges which take (latency) time.
These are all complex matters, happening at the tick level and beyond (Quotes) which may work (out) in PRT but which can not be made visible and controlled really. Only indirectly.In the realm of all this, I drafted a post for the OP on Feb 1, which ended with this :
The mere point is : what you attempt is super complicated instead of simple (which latter are your own words), but you don’t see this (yet). It is like somebody said in this or the other thread : you would have to know the ticks. This translated : you would need to know what is/was first : price dropping or price rising. My idea : you can’t know this, unless you looked at it live. So … did you ?
Hint : of course not (but you could). And moral : you think simple things cannot be done in PRT, while I think all can be done once you know what is going on behind the scenes.
What I would definitely do in your situation – I mean with this idea is … Don’t do it at all.but I never posted it (though still have it on screen).
-
AuthorPosts
Find exclusive trading pro-tools on