Noob help please SL and TS
Forums › ProRealTime English forum › ProBuilder support › Noob help please SL and TS
- This topic has 6 replies, 3 voices, and was last updated 5 months ago by DeathMetal.
-
-
05/15/2024 at 3:37 PM #232684
Hi All,
Im hoping someone can help a new starter in this field. Ive created a (very) basic auto trade system but it wont allow me to have both a Stop Loss and Trailing stop. Looking at other forum posts for a few hours I can see this is a common issue. Ive found some scripts created by other then enable this feature but dont understand how I can incorporate this into my own script?
Appreciate this is a very cheeky ask, but would someone please amend my code so I have both a stop loss (20 points/pips) and a Trailing stop (5 points/pips) that I can run. Thanks in advance
123456789101112131415161718192021// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = BollingerDown[17](close)c1 = (close CROSSES OVER indicator1)IF c1 THENBUY 1 PERPOINT AT MARKETENDIF// Conditions to exit long positionsindicator2 = BollingerUp[17](close)c2 = (close CROSSES UNDER indicator2)IF c2 THENSELL AT MARKETENDIF// Stops and targetsSET STOP pLOSS 20 pTRAILING 505/15/2024 at 5:01 PM #232694Hi Bob,
Try this…
TimeFrame: 15 minuten
Bob 15/5/2412345678910111213141516171819202122// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = BollingerDown[17](close)c1 = (close CROSSES OVER indicator1)IF c1 THENBUY 1 PERPOINT AT MARKETENDIF// Conditions to exit long positionsindicator2 = BollingerUp[17](close)c2 = (close CROSSES UNDER indicator2)IF c2 THENSELL AT MARKETENDIF// Stops and targetsSET STOP pLOSS 30SET STOP PTRAILING 8505/19/2024 at 5:35 PM #232797BTW,
your trail stop must be larger than your stop loss, otherwise only the trail stop works, so your position to be closed always ends up at your trail stop.05/20/2024 at 10:48 AM #23280505/20/2024 at 4:20 PM #232829Hi JS,
Does a trailingstop and a stoploss work together in your systems? Beacause I have found out, that it isn’t the case, see my post in the Pro order support.
Thnx!
05/20/2024 at 4:47 PM #232830Hi,
I don’t use them together in my systems, I just use a “(custom) trailing stop” in IB…
(I would make the “StopLoss” part of the TS myself…)
1 user thanked author for this post.
05/20/2024 at 4:52 PM #232831 -
AuthorPosts
Find exclusive trading pro-tools on