Trailing stops rejected
Forums › ProRealTime English forum › ProOrder support › Trailing stops rejected
- This topic has 13 replies, 3 voices, and was last updated 6 months ago by Leo440.
-
-
04/24/2024 at 12:40 PM #231886
Hello everyone,
I have an issue with trailing stops on GBP/JPY (30m and 1h) that I don’t understand. My orders are being rejected because the stop exceeds the maximum distance. When I go to IGs online platform I am able to execute the same trades without a problem.
I have tried “trailing” and “ptrailing” with the same result.
The same problem occurs on AUD/CAD (1h), where I had a “ptrailing 95” fail. I contacted IG and was told my order sent with a 950,000,000 pip stop.
I’m new to mechanical trading so any help much appreciated. Please see attached code.
Many thanks!
GBP/JPY1234if (myconditions) thenbuy PositionSize contract at marketset stop ptrailing 210endifAUD/CAD1234IF (myconditions) THENBUY PositionSize CONTRACT AT MARKETset stop ptrailing 95ENDIF04/24/2024 at 12:53 PM #23188704/24/2024 at 1:16 PM #23188804/24/2024 at 2:01 PM #231889“ptrailing” produces an undesirable equity curve!
Have you optimised the p value to give a better equity curve?
04/24/2024 at 2:14 PM #231891See attached – the top is your code as written, the bottom is changed to “trailing 210*pipsize” (95 is for AUD/CAD).
It makes sense to me that your code as written will work live and solve the problem, so I’ve activated both versions.
04/24/2024 at 3:27 PM #23189304/24/2024 at 7:47 PM #231922Tick mode is on for both. This version got rejected earlier…
rejected too1234if (my conditions) thenbuy PositionSize contract at marketSET STOP trailing 210*pipsizeendifI’m running your code verbatim on a different timeframe GraHal, so I’ll report back when it triggers.
It’s is a simple moving average crossover with a MACD filter, I don’t see how it could be messing with the stop. I will post as a last resort, once I’ve tried a couple of ideas I’ve got 😉
It seems like the pipsize is wrong on PRT? hmmmm
04/24/2024 at 8:05 PM #231924Try this version also to se if you get the same problem / Rejection …
https://www.prorealcode.com/documentation/trailing/
1 user thanked author for this post.
04/24/2024 at 11:31 PM #231927Hi,
I think you should use “SET STOP Trailing 210*pipsize*pipvalue”…
The currency is in JPY in the currency pair GBP/JPY…
(the price of GBP/JPY is about 193 so if you only use “pipsize” your 120 will be way above the maximum distance…)
EDIT: pipsize=0.01 pipvalue=0.01 (JPY)
1 user thanked author for this post.
04/24/2024 at 11:38 PM #23192804/25/2024 at 7:51 AM #23193204/25/2024 at 7:52 AM #23193404/25/2024 at 7:59 AM #231935“SET STOP Trailing 210*pipsize*pipvalue”…
Thanks JS, I’ll add that one to the pile.
Are you trading DFB Leo440
No, cfd mini
Currently trying to get an order through with this
new idea1234if (my conditions) thenbuy PositionSize contract at marketset stop $trailing 21000*positionsizeendifwish me luck!
05/02/2024 at 8:45 AM #232166“SET STOP Trailing 210*pipsize*pipvalue”…
This underperforms on 30min, outperforms on 1hr (but with a worse equity curve) and fails on 2hr 🙁
Try …
Doesn’t work either sadly.
I’m still getting the same rejection (attached). Is anyone actually trading GBP/JPY with proorder? Could this somehow be because I’m using the mini? I sent a help request through PRT and got an email back saying I should make a thread here *sigh*
Thanks again for your suggestions guys.
-
AuthorPosts
Find exclusive trading pro-tools on