Automated stop close triggered by indicator – how?
Forums › ProRealTime English forum › ProRealTime platform support › Automated stop close triggered by indicator – how?
- This topic has 11 replies, 4 voices, and was last updated 2 years ago by PhilHowells.
-
-
02/03/2022 at 9:11 AM #187434
Hi
I am a total newbie when it come to code and automating my trades. However, I can and do set an associated order to an alert to enter a position. My question is how I can close a trade doing the same thing. It doesn’t appear obvious to me.
If I set an alert and a trigger against my position to try and close two things happen. If I don’t enable force entry it just alerts me but no trigger. If I do enable force entry then I end up with two trades running that cancel each other out.
Is there a way to do this without generating code using the regular alert triggers?
Thank you. Phil.
02/03/2022 at 1:37 PM #187458Hi, I just tried this on my account with Force entry disabled an was able to open a trade with an order associated to the alert, and then close that same trade with an order associated to the second alert.
If you are sure you’re setting your alert correctly you should send a technical report (Help > Technical support) to your support team from your real account to ask them to look into it.
02/03/2022 at 1:58 PM #187461Is there a way to do this
If still having trouble then might be worth posting a screenshot of your settings for the Alert and RafaelN can tell you if you have the right settings?
When posting screenshot, state whether a Long or Short trade you are trying to close.
02/03/2022 at 2:28 PM #187463Hi guys Thanks for trying to help. I just tried again as well and when I do it it opens two trades. I hope you can see the chart with the settings because it’s blank on my side (if not I will post on its own).
I want to trade both ways but when I just tried it i bought to open and then sold. I don’t see that it would make any difference but I was using the Parabolic Sar to open and close.
02/03/2022 at 3:21 PM #187466opens two trades.
Are you saying … the settings on your screenshot open a Buy / Long and then when you set up another separate Alert and the conditions are met that a Sell / Short is opened (instead of what you want and what RafaelN said he got which is to Close the Long?)?
Please confirm you had Force Open set as Disabled on both Alerts you set up??
Also remove / untick the Stop Loss when you try again and let us know what you get? Try this on your Demo Account naturally (esp as it is close to USA open right now! ) 🙂
02/04/2022 at 9:22 AM #187502Hi
I tried that.
Unticking the stop loss does close the trade as intended, which is great. However, when the conditions of the alert are met it doesn’t close automatically. Instead, it opens a window which I need to confirm which is obviously no good when walking the dog or at half three in the morning. This feels easy to sort out – am I doing something very simple wrong?
Incidentally, when starting to use the alerts to enter trades I quickly worked out that I had to have a stop loss activated for it to work automatically so this is a problem that I have always had.
Again, thanks for your help.
Phil
02/04/2022 at 10:05 AM #187509Unticking the stop loss does close the trade as intended
So not fully as intended then as you say you have to confirm a message box?
I had to have a stop loss activated for it to work automatically
Appears to conflict with with the 1st quote above??
02/04/2022 at 11:28 AM #187515I remembered … there is a setting on PRT (or is it IG?) where you can disable the requirement for confirmation to open / close / change status of a trade.
See if you can find it as then you may also see other settings that may prove useful in the future … I know I still find settings I had forgotten about! 🙂
If you can’t find the disable setting, let us know.
02/04/2022 at 1:18 PM #187523I think you mean this one ?
But you first need to open the IG Desktop platform.
Whether this is sufficient to PRT (!) to use one-click, I don’t know.Might I still be on the right track, also see the 3rd attachment. For me this defaults to 1 (or I forgot I set it), but I do know that I get the confirmation message for an explicit manual trade. I never tried the 1-Click On from the 1st attachment …
On a side note, don’t switch this on if you can’t trade by intuition yet, because you will make mistakes, and with the one-click active you don’t have any confirmation opportunity. … *If* this is what you’re asking for in the first place …
PS: To find the setting from the 3rd attachment, just open PRT Settings and type “1-click” in the search box.
1 user thanked author for this post.
02/04/2022 at 1:44 PM #18752702/04/2022 at 2:07 PM #187530Duh …
I never tried the 1-Click On from the 1st attachment …
Now *that* was confusing. First I said I set something it to 1 (I should have said “checked” – I’m probably too much into PRT switches) and next I think it is On, while it is Off.
So indeed I never tried the On from the first attachment. But I also never tried On from the third attachment.Well, with Peter (and Eva) being finished off anyway, I only now see an ever back odd situation in a post with/from @nonetheless, where I claimed some “not so easy to met” requirements to have the 1-click trading activated (we soon talked about being pedantic with a smiley), but I only now see that this requirements for IG don’t exist ? For IB they sure do …
I hope my trades will work out better than my previous post.
02/04/2022 at 4:55 PM #187543Hi. The one click thing solved the issue. Thank you so much. I am very grateful. All the best Phil
1 user thanked author for this post.
-
AuthorPosts