Stoploss not put in place
Forums › ProRealTime English forum › ProOrder support › Stoploss not put in place
- This topic has 36 replies, 8 voices, and was last updated 10 months ago by ashehzi.
-
-
12/29/2023 at 4:20 PM #225817
Thanks @GraHal.
I can give it a try by removing NOT LONGONMARKET/SHORTONMARKET/ONMARKET to see the behaviour as I don’t take more than one trade at a time on this system. I’ve already in place Defparam CumulateOrders = False.
@PeterSt, sure, I’ve attached with all columns included. The issue is not that. You can clearly see 3 rows for 1h algo and 2 rows for 30mins. The issue I was explaining earlier was that not all stops and limits are being placed. I cannot go lower than 30 mins timeframe for this algo because of limitation of 10k for PRELOADBARS. I would 15m action with PRELOADBARS supporting 20/30k but it is what it is. I understand more PRELOADBARS means bigger memory footprint for the program on PRT servers but why not? I wonder what was the other logic to limit PRELOADBARS to 10k.
1 user thanked author for this post.
12/30/2023 at 11:24 AM #22582112/30/2023 at 3:58 PM #22582612/30/2023 at 5:17 PM #22582901/04/2024 at 8:55 PM #225969For the initial issue of no stop loss / target profit set, I think I might have found the issue.
12345IF NOT LONGONMARKET AND LongCondition THENBUY 1.0 CONTRACTS AT myLevel limitSET TARGET PLOSS lossDistanceSET TARGET PPROFIT profDistanceENDIFFor the algo using above code, I’ve following setting in place:
- Max Position: 1 Amount/Pt
- Guaranteed stop: No
- Readjust stops: Yes
In my open positions window, I noticed the following (see attached):
Under limit, it was showing Caution symbol and related info was:
- Current Position: 1
- Total qty of targets: -2
- Total qty of stop loss: 0
The total quantity of your target orders exceeds your position if executed, these orders could lead to opening a new position n opposite direction.
Now, I am wondering, if I change “SET TARGET PLOSS lossDistance” to “SET STOP PLOSS lossDistance”, will it resolve the issue completely? What am I missing here?
01/04/2024 at 9:09 PM #225972But those who are nevertheless tempted to use a set target loss statement, should NEVER launch it simultaneously with the order entry (buy, sellshort), be it at market or pending. This one is meant to be launched once in real trouble, when loss is already BIGGER than the distance supplied with the set target loss.
ashehzi you are doing what it says NOT to do in bold in above text.
if I change “SET TARGET PLOSS lossDistance” to “SET STOP PLOSS lossDistance”, will it resolve the issue completely?
Yes try above and let us know.
1 user thanked author for this post.
01/04/2024 at 11:25 PM #225974 -
AuthorPosts
Find exclusive trading pro-tools on